Skip to content

Commit

Permalink
Merge pull request #83 from TigerBeanst/master
Browse files Browse the repository at this point in the history
适配新版 Google Play 服务 v2
  • Loading branch information
kooritea authored Sep 9, 2022
2 parents 6ad4508 + ac67f3e commit e2df5a4
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 e2df5a4

Please sign in to comment.