查看frameworks/base/data/etc/platform.xml
配置说明
allow-in-power-save :始终在省点白名单,即使在省电模式或者非前台应用。
allow-in-power-save-except-idle : 用于指定进程在省电模式下(非Idle)仍可上网。
//查看设置
adb shell dumpsys deviceidle whitelist
1.开启Doze
adb shell dumpsys deviceidle enable
2.拔掉电池后会进入待机模式
adb shell dumpsys battery unplug
3.调试Doze状态
Active ---idle_pending---sensing--location---idle --idle_mantenance
adb shell dumpsys deviceidle step
4.Dump Doze 状态分析,Doze 模式下的信息,包括电池电量优化白名单等
adb shell dumpsys deviceidle