Skip to content

Commit 876e016

Browse files
author
weishu.tws
committed
[Exposed]: fix the call origin exception.
see exposed-xposedapi also.
1 parent 5fb7933 commit 876e016

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

exposed-core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ android {
2323

2424
dependencies {
2525
compile fileTree(dir: 'libs', include: ['*.jar'])
26-
compile 'me.weishu.exposed:exposed-xposedapi:0.3.3' // The Xposed API
26+
compile 'me.weishu.exposed:exposed-xposedapi:0.4.0' // The Xposed API
2727
compile ('me.weishu:epic:0.5.5') { // The AOP Framework
2828
exclude group: 'me.weishu.exposed', module: 'exposed-xposedapi'
2929
}
3030
compile 'com.getkeepsafe.relinker:relinker:1.2.3' // for load library
3131
}
3232

3333
group = 'me.weishu.exposed'
34-
version = '0.6.2'
34+
version = '0.6.3'
3535

3636
apply plugin: 'com.novoda.bintray-release'
3737

exposed-core/src/main/java/me/weishu/exposed/ExposedBridge.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import java.lang.reflect.Array;
3535
import java.lang.reflect.Constructor;
3636
import java.lang.reflect.Field;
37+
import java.lang.reflect.InvocationTargetException;
3738
import java.lang.reflect.Member;
3839
import java.lang.reflect.Method;
3940
import java.util.Arrays;
@@ -339,6 +340,12 @@ public static XC_MethodHook.Unhook hookMethod(Member method, XC_MethodHook callb
339340
return ExposedHelper.newUnHook(callback, unhook.getHookedMethod());
340341
}
341342

343+
public static Object invokeOriginalMethod(Member method, Object thisObject, Object[] args)
344+
throws NullPointerException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
345+
346+
return DexposedBridge.invokeOriginalMethod(method, thisObject, args);
347+
}
348+
342349
private static Member replaceForCHA(Member member) {
343350

344351
if (member.getDeclaringClass() == Application.class && member.getName().equals("attach")) {

0 commit comments

Comments
 (0)