[core] Prevent manager from being hooked by modules (#75)

This commit is contained in:
tehcneko 2021-02-05 20:38:06 +08:00 committed by GitHub
parent 5c63665a74
commit 364785e152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,6 @@ public class LoadedApkGetCL extends XC_MethodHook {
lpparam.classLoader = classLoader;
lpparam.appInfo = loadedApk.getApplicationInfo();
lpparam.isFirstApplication = this.isFirstApplication;
XC_LoadPackage.callAll(lpparam);
if (packageName.equals(ConfigManager.getInstallerPackageName())) {
if (InstallerVerifier.verifyInstallerSignature(loadedApk.getApplicationInfo())) {
@ -63,6 +62,8 @@ public class LoadedApkGetCL extends XC_MethodHook {
} else {
InstallerVerifier.hookXposedInstaller(classLoader);
}
} else {
XC_LoadPackage.callAll(lpparam);
}
} catch (Throwable t) {