Commit a958238f authored by swift_gan's avatar swift_gan

fix call origin method in hookBridge

parent 6d5b4e2a
...@@ -296,7 +296,7 @@ public class HookStubManager { ...@@ -296,7 +296,7 @@ public class HookStubManager {
long[] newArgs = entity.getArgsAddress(stubArgs, param.args); long[] newArgs = entity.getArgsAddress(stubArgs, param.args);
param.setResult(entity.getResult(callOrigin.call(newArgs))); param.setResult(entity.getResult(callOrigin.call(newArgs)));
} else { } else {
param.setResult(SandHook.callOriginMethod(originMethod, thiz, param.args)); param.setResult(callOrigin(entity, originMethod, thiz, param.args));
} }
} catch (Throwable e) { } catch (Throwable e) {
XposedBridge.log(e); XposedBridge.log(e);
...@@ -339,7 +339,7 @@ public class HookStubManager { ...@@ -339,7 +339,7 @@ public class HookStubManager {
Object[] snapshot = additionalHookInfo.callbacks.getSnapshot(); Object[] snapshot = additionalHookInfo.callbacks.getSnapshot();
if (snapshot == null || snapshot.length == 0) { if (snapshot == null || snapshot.length == 0) {
return SandHook.callOriginMethod(origin, thiz, args); return SandHook.callOriginMethod(origin, backup, thiz, args);
} }
XC_MethodHook.MethodHookParam param = new XC_MethodHook.MethodHookParam(); XC_MethodHook.MethodHookParam param = new XC_MethodHook.MethodHookParam();
......
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