Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个应用程序,它应该修改一些它无权访问的文件:另一个应用程序的数据库、default.prop 等。
目前,它是通过“su”请求和临时“chmod 0777”对所需文件完成的。但我认为这不是最好的解决方案。
有没有更好的方法来做这样的操作?
例如,我应该如何检查工具箱(如果没有busybox)是否支持shell命令(chown、chmod、grep、find)?