开发者

Writing file manager for Android with root rights

I am writing web interfaced file manager for Android. It works really decent I can navigate over Android file system using web browser. However here is one problem, the manager can't step in certain directories, for example if I step into '/cache', method File("/cache").listFiles() return null. 开发者_开发技巧I can imagine that the problem leads to permissions. However I know that there is root file manager application, so certainly this problem can be addressed. Could somebody suggest a solution?


As per this answer, you need to start a subprocess with root permissions and then execute the shell commands via Java I\O.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜