Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fix hooking packages
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed May 23, 2015
1 parent 1bb335a commit 92e3eca
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/biz/bokhorst/xprivacy/XPrivacy.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class XPrivacy implements IXposedHookLoadPackage, IXposedHookZygoteInit {
private static String mSecret = null;
private static List<String> mListHookError = new ArrayList<String>();
private static List<CRestriction> mListDisabled = new ArrayList<CRestriction>();
private static boolean mInitError = true;

public void initZygote(StartupParam startupParam) throws Throwable {
Util.log(null, Log.WARN, "Init path=" + startupParam.modulePath);
Expand Down Expand Up @@ -117,7 +116,6 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
hookSystem(param.thisObject, loader);
}
});
mInitError = false;
} catch (Throwable ex) {
Util.bug(null, ex);
}
Expand All @@ -133,7 +131,6 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
hookSystem(param.thisObject, null);
}
});
mInitError = false;
}

hookZygote();
Expand All @@ -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);
Expand Down

0 comments on commit 92e3eca

Please sign in to comment.