Android Edit Sysctl Settings

2019-08-14 21:55发布

问题:

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