#Thanox情景模式# #强制打盹# thanox情景模式分享:Doze息屏深度打盹;作业直接抄就行。
简单说明一下:不会出现电量不更新的情况。息屏立即打盹。
打盹状态检测代码复制到终端以su权限回车运行:
dumpsys deviceidle
thanox打盹作业在下面:
[
{
"name": "Doze打盹:息屏进入打盹",
"description": "息屏进入深度打盹模式Doze",
"priority": 1,
"condition": "screenOff == true",
"actions": [
"sh.exe(\"dumpsys deviceidle enable deep\");",
"sh.exe(\"dumpsys deviceidle force-idle deep\");"
]
}
]
[
{
"name": "Doze打盹:亮屏退出打盹",
"description": "亮屏退出深度打盹模式",
"priority": 1,
"condition": "screenOn == true",
"actions":
[
"sh.exe(\"dumpsys deviceidle disable all\");",
"sh.exe(\"dumpsys deviceidle unforce\");" ,
"sh.exe(\"dumpsys battery reset\");"
]
}
]