深度doze并屏蔽传感器延迟版来了
[
{
"name": "深度doze:亮屏退出打盹",
"description": "亮屏退出深度打盹模式并恢复传感器",
"priority": 1,
"condition": "screenOn == true",
"actions":
[
"su.exe(\"dumpsys deviceidle disable all\");",
"su.exe(\"dumpsys deviceidle unforce\");" ,
"su.exe(\"service call sensor_privacy 8 i32 0\");",
"su.exe(\"dumpsys battery reset\");"
]
}
]
和
[
{
"name": "深度doze:息屏进入打盹(延迟版)",
"description": "息屏1分钟后进入深度打盹模式Doze并屏蔽传感器",
"priority": 2,
"delay": 60000,
"condition": "screenOff == true",
"actions": [
"su.exe(\"dumpsys deviceidle enable deep\");",
"su.exe(\"dumpsys deviceidle force-idle deep\");",
"su.exe(\"service call sensor_privacy 8 i32 1\");"
]
}
]
和
[
{
"name": "深度doze:亮屏退出打盹(延迟版)附加模块",
"description": "解决延迟后反复开关屏产生bug的问题",
"priority": 1,
"delay": 61000,
"condition": "screenOn == true",
"actions":
[
"su.exe(\"dumpsys deviceidle disable all\");",
"su.exe(\"dumpsys deviceidle unforce\");" ,
"su.exe(\"service call sensor_privacy 8 i32 0\");",
"su.exe(\"dumpsys battery reset\");"
]
}
]
技术有限,不会搞成延迟时亮屏打断doze,只能这样曲线救国