开发者

Writing file manager for Android with root rights

开发者 https://www.devze.com 2023-03-19 02:01 出处:网络
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

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

精彩评论

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