Android Edit Sysctl Settings

别来无恙 提交于 2019-12-24 16:18:22

问题


In my app i need to edit sysctl settings in Android. I've seen few apps that can do this, for example but i have no idea how do they do this programmatically, any ideas how to do this?


回答1:


I think i found the answer: sysctl.conf is located in the /system/etc folder. Ask for the root and edit it like any other text file.

  • Ask for the root - How can I get root permissions through the Android SDK?
  • Edit text file - http://www.java-samples.com/showtutorial.php?tutorialid=1523


来源:https://stackoverflow.com/questions/33099422/android-edit-sysctl-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!