Is there any way to access device settings programmatically?
For Example: Settings > Developer Options > USB debugging > True/False
Thanks in advance.
Edit: USB debugging is just an example. Can I access every settings which is exist in Settings in device.
But you need root access to do this. Only system apps have permission to change secure settings
Edit:
Try this to Show all ANRs
and for Don’t keep activities
but ActivityManagerNative is hidden in standard api set. you will need to do either reflection or use this method to get android.jar.
Again I guess this needs root access