From ac67f3ee65e7055751424538814afb63ead6d7b5 Mon Sep 17 00:00:00 2001 From: TigerBeanst Date: Thu, 8 Sep 2022 19:32:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=96=B0=E7=89=88=20Google?= =?UTF-8?q?=20Play=20=E6=9C=8D=E5=8A=A1=20v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java b/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java index b692ed0..1b9c17d 100644 --- a/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java +++ b/app/src/main/java/com/kooritea/fcmfix/xposed/ReconnectManagerFix.java @@ -217,10 +217,10 @@ private void findAndUpdateHookTarget(final SharedPreferences sharedPreferences){ try{ Class heartbeatChimeraAlarm = XposedHelpers.findClass("com.google.android.gms.gcm.connection.HeartbeatChimeraAlarm",loadPackageParam.classLoader); Class timerClass = heartbeatChimeraAlarm.getConstructors()[0].getParameterTypes()[3]; - editor.putString("timer_class", timerClass.getName()); - if(timerClass.getDeclaredMethods().length == 0){ + if (timerClass.getDeclaredMethods().length == 0) { timerClass = timerClass.getSuperclass(); } + editor.putString("timer_class", timerClass.getName()); for(Method method : timerClass.getDeclaredMethods()){ if(method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == long.class && Modifier.isFinal(method.getModifiers()) && Modifier.isPublic(method.getModifiers())){ editor.putString("timer_settimeout_method", method.getName());