“Thanox Profile”的版本间差异

来自Silica Library | 間奏時光
跳到导航 跳到搜索
第2行: 第2行:
[https://play.google.com/store/apps/details?id=github.tornaco.android.thanos.pro Thanox Pro] 情景模式
[https://play.google.com/store/apps/details?id=github.tornaco.android.thanos.pro Thanox Pro] 情景模式


== 开机自启动 (启动应用进程) ==
== 开机自启动 ==
   变量名:<code>Background</code>
   变量名:<code>Foreground</code> 与 <code>Background</code><br>
  一般情况下请使用 <code>Background</code>,<code>Foreground</code> 主要用在一些仅启动进程不足以正常运行的 APP,如 <code>小米健康运动</code> (只开进程手表无法收到任何通知)。
<pre>
<pre>
[{
[{
  "name": "System Boot Ready Background Running",
  "name": "System Boot Ready Running",
  "description": "Global Variant: Background",
  "description": "Global Variant: Foreground, Background",
  "priority": 1,
  "priority": 1,
  "condition": "systemReady == true",
  "condition": "systemReady == true",
  "actions": ["foreach (el : globalVarOf$Background) {activity.launchProcessForPackage(el);}"]
  "actions": 
}]
[
</pre>
  "foreach (el : globalVarOf$Background) {activity.launchProcessForPackage(el);}",
 
  "foreach (el : globalVarOf$Foreground) {activity.launchMainActivityForPackage(el);}"
== 开机自启动 (打开应用主界面) ==
]
  变量名:<code>Foreground</code><br>
  主要用在一些仅启动进程不足以正常运行的 APP,如 <code>小米健康运动</code> (只开进程手表无法收到任何通知)。
<pre>
[{
"name": "System Boot Ready Foreground Running",
"description": "Global Variant: Foreground",
"priority": 1,
"condition": "systemReady == true",
"actions": ["foreach (el : globalVarOf$Foreground) {activity.launchMainActivityForPackage(el);}"]
}]
}]
</pre>
</pre>

2022年5月11日 (三) 06:50的版本

Thanox Pro 情景模式

开机自启动

  变量名:ForegroundBackground
  一般情况下请使用 BackgroundForeground 主要用在一些仅启动进程不足以正常运行的 APP,如 小米健康运动 (只开进程手表无法收到任何通知)。

[{
 "name": "System Boot Ready Running",
 "description": "Global Variant: Foreground, Background",
 "priority": 1,
 "condition": "systemReady == true",
 "actions": 
 [
  "foreach (el : globalVarOf$Background) {activity.launchProcessForPackage(el);}",
  "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\");"
 ]
}]

ARN 消除模块 (Xposed) (第三方来源)

  下载