[core] Widen MANAGER_INJECTED_UID usage (#1129)

This commit is contained in:
Wang Han 2021-09-18 11:48:29 +08:00 committed by GitHub
parent fd2162bffa
commit acbd6adc77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class ParasiticManagerHooker {
} }
}); });
if (Process.myUid() == 1000) { if (Process.myUid() == BuildConfig.MANAGER_INJECTED_UID) {
XposedHelpers.findAndHookMethod(WebViewFactory.class, "getProvider", new XC_MethodReplacement() { XposedHelpers.findAndHookMethod(WebViewFactory.class, "getProvider", new XC_MethodReplacement() {
@Override @Override
protected Object replaceHookedMethod(MethodHookParam param) { protected Object replaceHookedMethod(MethodHookParam param) {