Keep-alive guide
Google Pixel / Android One (stock)
google
⚠️ These settings have no public API — you set
them once by hand (or fully automate with root). It takes about a minute.
1
Battery optimization → Don't optimize
In the battery-optimization list, set this app to “Don’t optimize.”
Developer: intent used
generic.battery_optimization_list2
App info → allow background
Open Battery and choose “Unrestricted” / “Keep running after screen off.”
Developer: intent used
generic.app_details
Automate this brand:
The CLI/GUI grant Doze whitelist, standby bucket and background appops
automatically, then open each screen above for you to confirm.
↑ Back to top
CLI:
python3 adb/dkma.py com.your.appGUI:
python3 gui/server.pyRoot:
sh root/dkma-root.sh com.your.app