Closed Jon8RFC closed 3 years ago
Duplicate #238
For anyone else with the skills to write the code for a pull request...
Using root, this will grant a non-system app the permissions to change system settings in developer options, from within the application itself: http://lifepluslinux.blogspot.com/2015/10/using-writesecuresettings-permission-on.html
Just need to find the appropriate call, or whatever it is, to change the wifi scan throttling flag, similarly to how the same person above changed the ADB Debug setting for their widget/app: https://github.com/alseambusher/adb-toggle
An option to allow for disabling and re-enabling the wifi scan throttling, automatically, if the app has root permissions granted.
I couldn't find a specific example since I'm not a software developer, but I found this (for another setting within developer options) which may help to create the appropriate code:
With that, an "EXIT" button and/or an exit sequence (by using the Android "back" soft key to back out of the app) which would also re-enable the scan throttling upon closing the app.
This would be an excellent way to preserve battery life, automatically.