Skip to content

Commit

Permalink
适配新版 Google Play 服务 v2
Browse files Browse the repository at this point in the history
  • Loading branch information
TigerBeanst committed Sep 8, 2022
1 parent 6ad4508 commit ac67f3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ac67f3e

Please sign in to comment.