mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 18:55:35 +08:00
Update demo
This commit is contained in:
@@ -60,7 +60,7 @@ public class HookEntry implements IYukiHookXposedInit {
|
|||||||
// 在 Java 中调用 Kotlin 的 lambda 在 Unit 情况下也需要 return null
|
// 在 Java 中调用 Kotlin 的 lambda 在 Unit 情况下也需要 return null
|
||||||
YukiHookAPI.INSTANCE.encase(e -> {
|
YukiHookAPI.INSTANCE.encase(e -> {
|
||||||
e.loadZygote(l -> {
|
e.loadZygote(l -> {
|
||||||
l.hook(Activity.class, h -> {
|
l.hook(Activity.class, false, h -> {
|
||||||
h.injectMember(h.getPRIORITY_DEFAULT(), "Default", i -> {
|
h.injectMember(h.getPRIORITY_DEFAULT(), "Default", i -> {
|
||||||
i.method(m -> {
|
i.method(m -> {
|
||||||
m.setName("onCreate");
|
m.setName("onCreate");
|
||||||
|
Reference in New Issue
Block a user