SandHook: tweak compilable control flag
This commit is contained in:
parent
c97a9c8a68
commit
75f81a8177
|
|
@ -61,6 +61,7 @@ public class Router {
|
||||||
}
|
}
|
||||||
Router.startBootstrapHook(isSystem);
|
Router.startBootstrapHook(isSystem);
|
||||||
XposedInit.initForZygote(isSystem);
|
XposedInit.initForZygote(isSystem);
|
||||||
|
SandHookConfig.compiler = !isSystem;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
Utils.logE("error during Xposed initialization", t);
|
Utils.logE("error during Xposed initialization", t);
|
||||||
XposedBridge.disableHooks = true;
|
XposedBridge.disableHooks = true;
|
||||||
|
|
@ -114,6 +115,5 @@ public class Router {
|
||||||
public static void injectConfig() {
|
public static void injectConfig() {
|
||||||
EdXpConfigGlobal.sConfig = new SandHookEdxpConfig();
|
EdXpConfigGlobal.sConfig = new SandHookEdxpConfig();
|
||||||
EdXpConfigGlobal.sHookProvider = new SandHookProvider();
|
EdXpConfigGlobal.sHookProvider = new SandHookProvider();
|
||||||
SandHookConfig.compiler = !startsSystemServer;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue