mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-01 16:25:31 +08:00
...
This commit is contained in:
@@ -65,9 +65,11 @@ class YukiHookLoadPackage : IXposedHookLoadPackage {
|
||||
/** Hook 模块激活状态 */
|
||||
loadApp(name = YukiHookAPI.modulePackageName) {
|
||||
YukiHookModuleStatus::class.java.hook {
|
||||
injectMethod {
|
||||
name = "isActive"
|
||||
returnType = BooleanType
|
||||
injectMember {
|
||||
method {
|
||||
name = "isActive"
|
||||
returnType = BooleanType
|
||||
}
|
||||
replaceToTrue()
|
||||
}.onFailure { _, t -> Log.e(YukiHookAPI.TAG, "Try to Hook ModuleStatus Failed", t) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user