mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
Update demo
This commit is contained in:
@@ -202,8 +202,10 @@ class HookEntry : IYukiHookXposedInit {
|
||||
}
|
||||
// 在方法执行之前拦截
|
||||
beforeHook {
|
||||
// 设置 0 号 param
|
||||
// 设置 0 号 param (推荐)
|
||||
args().first().set("I am hook method param")
|
||||
// 下面这种方式也是可以的
|
||||
// args[0] = "I am hook method param"
|
||||
}
|
||||
}
|
||||
// 注入要 Hook 的方法
|
||||
|
Reference in New Issue
Block a user