Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kooritea committed Sep 8, 2022
2 parents 8399bef + 029e56a commit 6ad4508
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,11 @@ private void findAndUpdateHookTarget(final SharedPreferences sharedPreferences){
final SharedPreferences.Editor editor = sharedPreferences.edit();
try{
Class<?> heartbeatChimeraAlarm = XposedHelpers.findClass("com.google.android.gms.gcm.connection.HeartbeatChimeraAlarm",loadPackageParam.classLoader);
final Class<?> timerClass = heartbeatChimeraAlarm.getConstructors()[0].getParameterTypes()[3];
Class<?> timerClass = heartbeatChimeraAlarm.getConstructors()[0].getParameterTypes()[3];
editor.putString("timer_class", timerClass.getName());
if(timerClass.getDeclaredMethods().length == 0){
timerClass = timerClass.getSuperclass();
}
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 6ad4508

Please sign in to comment.