From adf19477cdd7593ee2b2224a5e4bf2adb5ad9869 Mon Sep 17 00:00:00 2001 From: nw Date: Tue, 21 Nov 2023 22:44:54 +0800 Subject: [PATCH] Fixed auto start issue (#128) * Add support for Android 14/HyperOS * Update hook class in AutoStartFix --- .../main/java/com/kooritea/fcmfix/xposed/AutoStartFix.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/kooritea/fcmfix/xposed/AutoStartFix.java b/app/src/main/java/com/kooritea/fcmfix/xposed/AutoStartFix.java index 441976a..6a3af2a 100644 --- a/app/src/main/java/com/kooritea/fcmfix/xposed/AutoStartFix.java +++ b/app/src/main/java/com/kooritea/fcmfix/xposed/AutoStartFix.java @@ -60,7 +60,7 @@ protected void beforeHookedMethod(MethodHookParam methodHookParam) { try{ // hyperos - Class BroadcastQueueImpl = XposedHelpers.findClass("com.android.server.am.BroadcastQueueModernStub",loadPackageParam.classLoader); + Class BroadcastQueueImpl = XposedHelpers.findClass("com.android.server.am.BroadcastQueueModernStubImpl",loadPackageParam.classLoader); XposedUtils.findAndHookMethodAnyParam(BroadcastQueueImpl,"checkApplicationAutoStart",new XC_MethodHook() { @Override protected void beforeHookedMethod(MethodHookParam methodHookParam) { @@ -68,7 +68,7 @@ protected void beforeHookedMethod(MethodHookParam methodHookParam) { if("com.google.android.c2dm.intent.RECEIVE".equals(intent.getAction())){ String target = intent.getComponent() == null ? intent.getPackage() : intent.getComponent().getPackageName(); if(targetIsAllow(target)){ - XposedHelpers.callMethod(methodHookParam.thisObject, "checkAbnormalBroadcastInQueueLocked", methodHookParam.args[0]); + //XposedHelpers.callMethod(methodHookParam.thisObject, "checkAbnormalBroadcastInQueueLocked", methodHookParam.args[0]); printLog("Allow Auto Start: " + target); methodHookParam.setResult(true); }