//强制进入idle模式
adb shell dumpsys deviceidle force-idle
//退出idle模式
adb shell dumpsys deviceidle unforce
白名单配置
Users can manually configure the whitelist in Settings > Battery > Battery Optimization. Alternatively, the system provides ways for apps to ask users to whitelist them.
https://developer.android.google.cn/training/monitoring-device-state/doze-standby.html