Programmatically edit build.prop properties on Android

I would like to know if it is possible or not to open the build.prop file programmatically from an Android application and edit some properties inside it. Are there certain restrictions on this file in Android, and can this be done without root access?

If someone can point me in the right direction or provide me with an example, that would be great.

+6
source share
2 answers

ROOT permission is required to open and edit the build.prop file.

Check out this app on the Play Store. build.prop editor . Since it is open source and the code is very simple, you can use it as a pointing point: https://github.com/nathanpc/Build.prop-Editor

+5
source

yes, ROOT permission is required and you can gain root access by adding the following lines

Process p = Runtime.getRuntime().exec("su");

for more information, follow the link below http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your-app/

+1
source

All Articles