mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
Update demo
This commit is contained in:
@@ -251,13 +251,13 @@ class HookEntry : IYukiHookXposedInit {
|
|||||||
}
|
}
|
||||||
// 注入要 Hook 的方法
|
// 注入要 Hook 的方法
|
||||||
injectMember {
|
injectMember {
|
||||||
allMethods(name = "getTestResultFirst")
|
method { name = "getTestResultFirst" }.all()
|
||||||
// 执行替换 Hook
|
// 执行替换 Hook
|
||||||
replaceTo(any = "I am hook all methods first")
|
replaceTo(any = "I am hook all methods first")
|
||||||
}
|
}
|
||||||
// 注入要 Hook 的方法
|
// 注入要 Hook 的方法
|
||||||
injectMember {
|
injectMember {
|
||||||
allMethods(name = "getTestResultLast")
|
method { name = "getTestResultLast" }.all()
|
||||||
// 执行替换 Hook
|
// 执行替换 Hook
|
||||||
replaceTo(any = "I am hook all methods last")
|
replaceTo(any = "I am hook all methods last")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user