「Thanox Profile」修訂間的差異

出自Silica Library | 間奏時光
跳至導覽 跳至搜尋
第82行: 第82行:
}]
}]
</pre>
</pre>
== 后台墓碑 ([https://www.myflv.cn/course/271.html 第三方来源]) ==
  变量名:<code>Standby</code><br>
<pre>
[{
"name": "冻结进程",
"description": "当应用进入后台时冻结进程",
"priority": 1,
"condition": "frontPkgChanged == true && thanos.getActivityManager().isPkgSmartStandByEnabled(from)==true && !globalVarOf$whiteApps.contains(from)",
"actions": [
  "su.exe(\"appops set \" +from + \" RUN_ANY_IN_BACKGROUND ignore\");",
  "su.exe(\"appops set \" +from + \" RUN_IN_BACKGROUND ignore\");",
  "su.exe(\"appops set \" +from + \" WAKE_LOCK ignore\");",
  "activity.setInactive(from);",
  "su.exe(\"am make-uid-idle \" +from);",
  "su.exe(\"am set-standby-bucket \" +from +\" restricted\");",
  "actor.delayed(1000,\"if(activity.getFrontAppPackage()!=from){su.exe(\\\"kill -19 `pgrep -f \\\"+ from+ \\\"`\\\")}\");"
]
}]
</pre>
== 解除后台墓碑 ([https://www.myflv.cn/course/271.html 第三方来源]) ==
  变量名:<code>Standby</code><br>
<pre>
[{
"name": "解冻进程",
"description": "当应用进入前台时解冻进程",
"priority": 1,
"condition": "frontPkgChanged == true && thanos.getActivityManager().isPkgSmartStandByEnabled(to)==true && !globalVarOf$whiteApps.contains(to)",
"actions": [
  "su.exe(\"appops set \" +to + \" RUN_ANY_IN_BACKGROUND default\");",
  "su.exe(\"appops set \" +to + \" RUN_IN_BACKGROUND default\");",
  "su.exe(\"appops set \" +to + \" WAKE_LOCK default\");",
  "su.exe(\"kill -18 `pgrep -f \"+ to + \"`\");",
  "su.exe(\"am set-standby-bucket \" +to +\" rare\");"
]
}]
</pre>
== ARN 消除模块 (Xposed) ([https://www.myflv.cn/course/271.html 第三方来源]) ==
  [https://silica.im/downloads/NoANR_1.0_sign.apk 下载]

於 2022年5月5日 (四) 02:25 的修訂

Thanox Pro 情景模式

開機自啟動 (啟動應用進程)

  變量名:Background

[{
 "name": "System Boot Ready Background Running",
 "description": "Global Variant: Background",
 "priority": 1,
 "condition": "systemReady == true",
 "actions": ["foreach (el : globalVarOf$Background) {activity.launchProcessForPackage(el);}"]
}]

開機自啟動 (打開應用主界面)

  變量名:Foreground
  主要用在一些僅啟動進程不足以正常運行的 APP,如 小米健康运动 (只開進程手錶無法收到任何通知)。

[{
 "name": "System Boot Ready Foreground Running",
 "description": "Global Variant: Foreground",
 "priority": 1,
 "condition": "systemReady == true",
 "actions": ["foreach (el : globalVarOf$Foreground) {activity.launchMainActivityForPackage(el);}"]
}]

進程守護 (啟動應用進程)

  變量名:Background

[{
 "name": "Keep Background Running",
 "description": "Global Variant: Background",
 "priority": 1,
 "condition": "pkgKilled == true && globalVarOf$Background.contains(pkgName)",
 "actions": ["activity.launchProcessForPackage(pkgName)"]
}]

進程守護 (打開應用主界面)

  變量名:Foreground
  主要用在一些僅啟動進程不足以正常運行的 APP,如 小米健康运动 (只開進程手錶無法收到任何通知)。

[{
 "name": "Keep Foreground Running",
 "description": "Global Variant: Foreground",
 "priority": 1,
 "condition": "pkgKilled == true && globalVarOf$Foreground.contains(pkgName)",
 "actions": ["activity.launchMainActivityForPackage(pkgName)"]
}]

後台墓碑

  變量名:Standby

[{
 "name": "Auto Standby",
 "description": "Global Variant: Standby",
 "priority": 2,
 "condition": "frontPkgChanged == true && globalVarOf$Standby.contains(from)",
 "actions": [
   "activity.setInactive(from);",
   "su.exe(\"am set-standby-bucket \" +from +\" restricted\");",
   "su.exe(\"name=$(pgrep -f \" +from +\")\");","su.exe(\"kill -19 $name\");"
  ]
}]

解除後台墓碑

  變量名:Standby

[{
 "name": "Auto Cancel Standby",
 "description": "Global Variant: Standby",
 "priority": 1,
 "condition": "frontPkgChanged == true && globalVarOf$Standby.contains(to)",
 "actions": [
  "su.exe(\"name=$(pgrep -f \" +to +\")\");","su.exe(\"kill -18 $name\");",
  "su.exe(\"am set-standby-bucket \" +to +\" rare\");"
 ]
}]

後台墓碑 (第三方來源)

  變量名:Standby

[{
 "name": "冻结进程",
 "description": "当应用进入后台时冻结进程",
 "priority": 1,
 "condition": "frontPkgChanged == true && thanos.getActivityManager().isPkgSmartStandByEnabled(from)==true && !globalVarOf$whiteApps.contains(from)",
 "actions": [
  "su.exe(\"appops set \" +from + \" RUN_ANY_IN_BACKGROUND ignore\");",
  "su.exe(\"appops set \" +from + \" RUN_IN_BACKGROUND ignore\");",
  "su.exe(\"appops set \" +from + \" WAKE_LOCK ignore\");",
  "activity.setInactive(from);",
  "su.exe(\"am make-uid-idle \" +from);",
  "su.exe(\"am set-standby-bucket \" +from +\" restricted\");",
  "actor.delayed(1000,\"if(activity.getFrontAppPackage()!=from){su.exe(\\\"kill -19 `pgrep -f \\\"+ from+ \\\"`\\\")}\");"
 ]
}]

解除後台墓碑 (第三方來源)

  變量名:Standby

[{
 "name": "解冻进程",
 "description": "当应用进入前台时解冻进程",
 "priority": 1,
 "condition": "frontPkgChanged == true && thanos.getActivityManager().isPkgSmartStandByEnabled(to)==true && !globalVarOf$whiteApps.contains(to)",
 "actions": [
  "su.exe(\"appops set \" +to + \" RUN_ANY_IN_BACKGROUND default\");",
  "su.exe(\"appops set \" +to + \" RUN_IN_BACKGROUND default\");",
  "su.exe(\"appops set \" +to + \" WAKE_LOCK default\");",
  "su.exe(\"kill -18 `pgrep -f \"+ to + \"`\");",
  "su.exe(\"am set-standby-bucket \" +to +\" rare\");"
 ]
}]

ARN 消除模塊 (Xposed) (第三方來源)

  下載