#Magisk模块# #THANOX# 自己写了进阶版的深度doze情景,解决了手机在运动状态下不进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": "息屏进入深度打盹模式Doze并屏蔽传感器",
"priority": 1,
"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\");"
]
}
]
两个分开添加