Thanox情景模式

个人备份

  1. 开机启动微信及推送进程

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    [
    {
    "name": "开机启动微信及推送进程",
    "description": "自用",
    "priority": -1,
    "condition": "systemReady == true",
    "delay": 1000,
    "actions": [
    "su.exe(\"am start-foreground-service com.tencent.mm/com.tencent.mm.booter.CoreService\")",
    "su.exe(\"am start-foreground-service com.tencent.mm/com.tencent.mm.service.ProcessService$MMProcessService\")",
    "foreach (zq : globalVarOf$mio){activity.launchProcessForPackage(zq)}"
    ]
    }
    ]

    适用于墓碑(如Freezer)开机冻结过于迅速而导致微信推送进程未完全启动

  2. 自动划掉最近任务中没有运行的应用

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    [
    {
    "name": "自动划卡",
    "description": "自动划掉最近任务中没有运行的应用",
    "priority": 1,
    "condition": "pkgKilled == true",
    "delay": 2000,
    "actions": [
    "if(thanos.activityManager.isPackageRunning(pkgName) == false && task.hasTaskFromPackage(pkgName) == true){task.removeTasksForPackage(pkgName) ;}"
    ]
    }
    ]

    来源冰梦的博客