feat: update demo

This commit is contained in:
2023-10-02 22:41:55 +08:00
parent ea86a2b60a
commit b8bb903ff7

View File

@@ -208,7 +208,7 @@ object HookEntry : IYukiHookXposedInit {
}
// Find Class to hook
// 得到需要 Hook 的 Class
findClass(name = "$packageName.ui.MainActivity").hook {
"$packageName.ui.MainActivity".toClass().hook {
// Inject the method to be hooked
// 注入要 Hook 的方法
injectMember {
@@ -335,7 +335,7 @@ object HookEntry : IYukiHookXposedInit {
}
// Find Class to hook
// 得到需要 Hook 的 Class
findClass(name = "$packageName.test.Main").hook {
"$packageName.test.Main".toClass().hook {
// Inject the method to be hooked
// 注入要 Hook 的方法
injectMember {