Only hook `performDestroyActivity` on Android 8.1- (#1923)

This commit is contained in:
LoveSy 2022-05-07 16:31:32 +08:00 committed by GitHub
parent ffabc92423
commit c99c3b1165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ public class ParasiticManagerHooker {
}
};
XposedBridge.hookAllMethods(ActivityThread.class, "performStopActivityInner", stateHooker);
XposedHelpers.findAndHookMethod(ActivityThread.class, "performDestroyActivity", IBinder.class, boolean.class, int.class, boolean.class, stateHooker);
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1)
XposedHelpers.findAndHookMethod(ActivityThread.class, "performDestroyActivity", IBinder.class, boolean.class, int.class, boolean.class, stateHooker);
}
private static void checkIntent(ILSPManagerService managerService, Intent intent) {