#Thanox情景模式# #THANOX# QQ/微信后台优化 情景模式
仅保留推送和通话
回到后台3s后清理后台进程
QQ:
[
{
"name": "QQ进程优化",
"description": "优化保留双进程和通话",
"priority": 2,
"condition": "frontPkgChanged == true && from == \"com.tencent.mobileqq\"",
"actions": [
"Thread.sleep(3000);",
"su.exe(\"ps -ef|grep com.tencent.mobileqq:|grep -v :MSF|grep -v :video|grep -v grep|awk '{print $2}'|xargs kill -9\")",
"ui.showShortToast(\"已清理QQ\")"
]
}
]
-----------------------------------------------------------------
微信:
[
{
"name": "微信进程优化",
"description": "优化保留双进程",
"priority": 2,
"condition": "frontPkgChanged == true && from == \"com.tencent.mm\"",
"actions": [
"Thread.sleep(3000);",
"su.exe(\"ps -ef|grep com.tencent.mm:|grep -v :push|grep -v grep|awk '{print $2}'|xargs kill -9\")",
"ui.showShortToast(\"已清理微信\")"
]
}
]