Fix allMethods hooking replace bug

This commit is contained in:
2022-03-30 13:40:48 +08:00
parent cc8dbb8995
commit e895759172
5 changed files with 73 additions and 5 deletions

View File

@@ -154,6 +154,18 @@ class HookEntry : YukiHookXposedInitProxy {
args().set("I am hook constructor param")
}
}
// 注入要 Hook 的方法
injectMember {
allMethods(name = "getTestResultFirst")
// 执行替换 Hook
replaceTo("I am hook all methods first")
}
// 注入要 Hook 的方法
injectMember {
allMethods(name = "getTestResultLast")
// 执行替换 Hook
replaceTo("I am hook all methods last")
}
}
}
}