mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 18:55:35 +08:00
fix: demo bugs
This commit is contained in:
@@ -154,7 +154,7 @@ object HookEntry : IYukiHookXposedInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@LegacyResourcesHook
|
@OptIn(LegacyResourcesHook::class)
|
||||||
override fun onHook() {
|
override fun onHook() {
|
||||||
// Start your hook
|
// Start your hook
|
||||||
// Can be shortened to encase {}
|
// Can be shortened to encase {}
|
||||||
|
@@ -31,6 +31,7 @@ import android.app.Activity;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import com.highcapable.yukihookapi.YukiHookAPI;
|
import com.highcapable.yukihookapi.YukiHookAPI;
|
||||||
|
import com.highcapable.yukihookapi.hook.core.api.priority.YukiHookPriority;
|
||||||
import com.highcapable.yukihookapi.hook.factory.ReflectionFactoryKt;
|
import com.highcapable.yukihookapi.hook.factory.ReflectionFactoryKt;
|
||||||
import com.highcapable.yukihookapi.hook.log.YLog;
|
import com.highcapable.yukihookapi.hook.log.YLog;
|
||||||
import com.highcapable.yukihookapi.hook.xposed.bridge.event.YukiXposedEvent;
|
import com.highcapable.yukihookapi.hook.xposed.bridge.event.YukiXposedEvent;
|
||||||
@@ -83,7 +84,7 @@ public class HookEntry implements IYukiHookXposedInit {
|
|||||||
m.param(Bundle.class);
|
m.param(Bundle.class);
|
||||||
return Unit.INSTANCE;
|
return Unit.INSTANCE;
|
||||||
});
|
});
|
||||||
l.hook(result, h -> {
|
l.hook(result, YukiHookPriority.DEFAULT, h -> {
|
||||||
h.after(a -> {
|
h.after(a -> {
|
||||||
Activity instance = ((Activity) a.getInstance());
|
Activity instance = ((Activity) a.getInstance());
|
||||||
instance.setTitle(instance.getTitle() + " [Active]");
|
instance.setTitle(instance.getTitle() + " [Active]");
|
||||||
|
Reference in New Issue
Block a user