[core] Remove duplicated UID check (#1219)

This commit is contained in:
Wang Han 2021-10-04 01:05:58 +08:00 committed by GitHub
parent 226d14a3cd
commit f0c4eeeea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 31 deletions

View File

@ -142,6 +142,7 @@ public class ParasiticManagerHooker {
return null;
}
});
XposedBridge.hookAllMethods(ActivityThread.class, "installProvider", new XC_MethodHook() {
private Context originalContext = null;
@ -184,7 +185,6 @@ public class ParasiticManagerHooker {
}
});
if (Process.myUid() == BuildConfig.MANAGER_INJECTED_UID) {
XposedHelpers.findAndHookMethod(WebViewFactory.class, "getProvider", new XC_MethodReplacement() {
@Override
protected Object replaceHookedMethod(MethodHookParam param) {
@ -216,7 +216,6 @@ public class ParasiticManagerHooker {
}
});
}
}
private static void checkIntent(ILSPManagerService managerService, Intent intent) {
if (managerService == null) return;