Is there any way to access device settings programmatically?
For Example: Settings > Developer Options > USB debugging > True/False
Thanks in advance.
<
I know that this question is old but is interesting.
Nandeesh's solution works well. But it does not work if you want to change certain settings such as USB Debugging. You have to use the following permission.
But, it doesn't work with non system apps. However, it is POSSIBLE to do this if you have root access. You can try this solution where the author solves the exact same thing.
You can also try https://github.com/alseambusher/adb-toggle