最后有thanox的,可以用下规则,亲测可用,至于QQ,本来就稳,不用了[受虐滑稽][受虐滑稽],不过我用thanox冻结了些服务管理,推送啥的也没问题
[
{
"name": "微信",
"description": "微信被杀死时,微信进程",
"priority": 1,
"condition": "pkgKilled == true && (pkgName == \"com.tencent.mm\" || pkgName == \"com.tencent.mm.booter.CoreService\")",
"actions": [
"ui.showShortToast(\"启动微信...\");",
"activity.launchProcessForPackage(\"com.tencent.mm\")",
"activity.launchProcessForPackage(\"com.tencent.mm\")"
]
}
]
[
{
"name": "微信进程优化",
"description": "优化保留双进程",
"priority": 2,
"condition": "frontPkgChanged == true && from == \"com.tencent.mm\"",
"actions": [
"Thread.sleep(2000);",
"su.exe(\"ps -ef|grep com.tencent.mm:|grep -v :push|grep -v grep|awk &039;|xargs kill -9\")"
]
}
]