mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 18:55:35 +08:00
feat: update demo
This commit is contained in:
@@ -208,7 +208,7 @@ object HookEntry : IYukiHookXposedInit {
|
|||||||
}
|
}
|
||||||
// Find Class to hook
|
// Find Class to hook
|
||||||
// 得到需要 Hook 的 Class
|
// 得到需要 Hook 的 Class
|
||||||
findClass(name = "$packageName.ui.MainActivity").hook {
|
"$packageName.ui.MainActivity".toClass().hook {
|
||||||
// Inject the method to be hooked
|
// Inject the method to be hooked
|
||||||
// 注入要 Hook 的方法
|
// 注入要 Hook 的方法
|
||||||
injectMember {
|
injectMember {
|
||||||
@@ -335,7 +335,7 @@ object HookEntry : IYukiHookXposedInit {
|
|||||||
}
|
}
|
||||||
// Find Class to hook
|
// Find Class to hook
|
||||||
// 得到需要 Hook 的 Class
|
// 得到需要 Hook 的 Class
|
||||||
findClass(name = "$packageName.test.Main").hook {
|
"$packageName.test.Main".toClass().hook {
|
||||||
// Inject the method to be hooked
|
// Inject the method to be hooked
|
||||||
// 注入要 Hook 的方法
|
// 注入要 Hook 的方法
|
||||||
injectMember {
|
injectMember {
|
||||||
|
Reference in New Issue
Block a user