Keep-alive guide

OnePlus (OxygenOS / ColorOS)

oneplus
⚠️ These settings have no public API — you set them once by hand (or fully automate with root). It takes about a minute.
1

Lock in Recents + don't optimize

Lock the app card in Recent apps, then set Battery optimization to “Don’t optimize.”

Developer: intent used
generic.battery_optimization_list
2

Disable deep optimization

Turn off “Deep / Advanced optimization” for this app.

Developer: settings screen(s) opened
com.oneplus.security/.chainlaunch.view.ChainLaunchAppListActivity
The tools try these in order and fall back to the app's info page.
3

App info → allow background

Open Battery and choose “Unrestricted” / “Keep running after screen off.”

Developer: intent used
generic.app_details
Automate this brand:
CLI: python3 adb/dkma.py com.your.app
GUI: python3 gui/server.py
Root: sh root/dkma-root.sh com.your.app
The CLI/GUI grant Doze whitelist, standby bucket and background appops automatically, then open each screen above for you to confirm.
↑ Back to top