背景:
应用白名单操作
# 开启LightDoze功能
adb shell dumpsys deviceidle enable light
#每执行一次,将会进入到LightDoze下一状态
adb shell dumpsys deviceidle step light
# 查看当前Doze白名单
adb shell dumpsys deviceidle whitelist
#将app加入白名单
adb shell dumpsys deviceidle whitelist +<package> #如:adb shell dumpsys deviceidle whitelist +com.oray.sunlogin.service
#将app移除白名单
adb shell dumpsys deviceidle whitelist -<package> #如:adb shell dumpsys deviceidle whitelist -com.oray.sunlogin.service
参考一:https://blog.csdn.net/licaomengRICE/article/details/48735957
参考二:https://asutorufa.github.io/posts/1e63e0e/
参考三:https://blog.csdn.net/FightFightFight/article/details/81392488