[core] Remove duplicated UID check (#1219)
This commit is contained in:
parent
226d14a3cd
commit
f0c4eeeea7
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue