W
W
wowastrom2020-05-07 03:49:36
Android
wowastrom, 2020-05-07 03:49:36

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

2 answer(s)
S
S-trace, 2020-05-10
@wowastrom

> 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.

D
Dim Boy, 2020-05-07
@twix007

ask questions in the profile forum for your mobile device, all the information is there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question