Answer the question
In order to leave comments, you need to log in
By enabling root on Android, can I programmatically change all the settings?
Hello
I know that in theory, if I enable root on the phone, I can change the settings on the phone. But can I disable programmatically, for example, "Google settings", or GPS?
And most importantly, where can I look, how can this be done (namely the code)? I just don’t fully understand how this happens, certain permissions start working there, or a new code will be needed separately for this.
Answer the question
In order to leave comments, you need to log in
> can I disable programmatically, for example, "Google settings", or GPS?
Yes.
> where can I look how it can be done (exactly the code)?
Look up how it's done through the adb shell and then write code that will call su and feed it the appropriate commands on stdin.
> I just do not fully understand how this happens, certain permissions start to work there, or a new code will be needed separately for this.
A new code will be needed, the application itself (which is apk) will not work with root rights (from the word in any way) - only by calling su and passing commands to it will it be possible to do something on behalf of root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question