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