Thanox Profile

出自Silica Library | 間奏時光
於 2022年4月19日 (二) 07:15 由 Silica對話 | 貢獻 所做的修訂
跳至導覽 跳至搜尋

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)"]
}]