酷安APP 发现科技新生活

Jinamin

2023-03-28 红米Note 9

MIUI系统在重启或者某些情况下,电池优化白名单中的企鹅等流氓等应用会被恢复。每次启动或熄屏自动删除电池优化白名单,重新设置为自己的,使MIUI无机会恢复厂家设置的流氓名单:
[
{
"name": "电池优化白名单",
"description": "开机或灭屏设置电池优化白名单,全局变量PowerWhiteList",
"priority": 1,
"condition": "systemReady == true || screenOff == true",
"actions": [
"su.exe(\"for i in `dumpsys deviceidle whitelist | cut -d ',' -f 2 `;do dumpsys deviceidle whitelist -$i; done \")",
"for (String p : globalVarOf$PowerWhiteList) {su.exe(\"dumpsys deviceidle whitelist +\" +p)}"
]
}
]

Thanox
23
22