mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 10:45:49 +08:00
Changed Xposed Scope
This commit is contained in:
@@ -41,13 +41,15 @@ class HookEntry : IYukiHookXposedInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onHook() = encase {
|
override fun onHook() = encase {
|
||||||
|
loadApp(SYSTEMUI_PACKAGE_NAME) {
|
||||||
when {
|
when {
|
||||||
/** 不是 ColorOS 系统停止 Hook */
|
/** 不是 ColorOS 系统停止 Hook */
|
||||||
isNotColorOS -> loggerW(msg = "Aborted Hook -> This System is not ColorOS")
|
isNotColorOS -> loggerW(msg = "Aborted Hook -> This System is not ColorOS")
|
||||||
/** Hook 被手动关闭停止 Hook */
|
/** Hook 被手动关闭停止 Hook */
|
||||||
prefs.get(DataConst.ENABLE_MODULE).not() -> loggerW(msg = "Aborted Hook -> Hook Closed")
|
prefs.get(DataConst.ENABLE_MODULE).not() -> loggerW(msg = "Aborted Hook -> Hook Closed")
|
||||||
/** 开始 Hook */
|
/** 开始 Hook */
|
||||||
else -> loadApp(SYSTEMUI_PACKAGE_NAME, SystemUIHooker)
|
else -> loadHooker(SystemUIHooker)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user