diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index 22d13d12a..56ff8d2d7 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -29,7 +29,6 @@ public class XPrivacy implements IXposedHookLoadPackage, IXposedHookZygoteInit { private static String mSecret = null; private static List mListHookError = new ArrayList(); private static List mListDisabled = new ArrayList(); - private static boolean mInitError = true; public void initZygote(StartupParam startupParam) throws Throwable { Util.log(null, Log.WARN, "Init path=" + startupParam.modulePath); @@ -117,7 +116,6 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { hookSystem(param.thisObject, loader); } }); - mInitError = false; } catch (Throwable ex) { Util.bug(null, ex); } @@ -133,7 +131,6 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { hookSystem(param.thisObject, null); } }); - mInitError = false; } hookZygote(); @@ -145,7 +142,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable { // Check for LBE security master - if (Util.hasLBE() || mInitError) + if (Util.hasLBE()) return; hookPackage(lpparam.packageName, lpparam.classLoader);