Commit ab0c1683 authored by swift_gan's avatar swift_gan Committed by ganyao114

revert code

parent 7a2d02e3
...@@ -17,15 +17,10 @@ public class PendingHookHandler { ...@@ -17,15 +17,10 @@ public class PendingHookHandler {
static { static {
//init native hook //init native hook
if (!SandHookConfig.edxpEnv) { canUsePendingHook = SandHook.initForPendingHook();
canUsePendingHook = SandHook.initForPendingHook();
}
} }
public static boolean canWork() { public static boolean canWork() {
if (SandHookConfig.edxpEnv) {
return true;
}
return canUsePendingHook && SandHook.canGetObject() && !SandHookConfig.DEBUG; return canUsePendingHook && SandHook.canGetObject() && !SandHookConfig.DEBUG;
} }
...@@ -42,10 +37,6 @@ public class PendingHookHandler { ...@@ -42,10 +37,6 @@ public class PendingHookHandler {
if (clazz_ptr == 0) if (clazz_ptr == 0)
return; return;
Class clazz = (Class) SandHook.getObject(clazz_ptr); Class clazz = (Class) SandHook.getObject(clazz_ptr);
onClassInit(clazz);
}
public static void onClassInit(Class clazz) {
if (clazz == null) if (clazz == null)
return; return;
Vector<HookWrapper.HookEntity> entities = pendingHooks.get(clazz); Vector<HookWrapper.HookEntity> entities = pendingHooks.get(clazz);
......
...@@ -15,8 +15,6 @@ public class SandHookConfig { ...@@ -15,8 +15,6 @@ public class SandHookConfig {
public volatile static ClassLoader initClassLoader; public volatile static ClassLoader initClassLoader;
public volatile static int curUser = 0; public volatile static int curUser = 0;
public volatile static boolean delayHook = true; public volatile static boolean delayHook = true;
//is for edxposed?
public volatile static boolean edxpEnv = false;
public volatile static String libSandHookPath; public volatile static String libSandHookPath;
public volatile static LibLoader libLoader = new LibLoader() { public volatile static LibLoader libLoader = new LibLoader() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment