We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2209c18 commit 0d61724Copy full SHA for 0d61724
app/src/main/java/com/swift/sandhook/testHookers/JniHooker.java
@@ -1,5 +1,6 @@
1
package com.swift.sandhook.testHookers;
2
3
+import android.os.Build;
4
import android.util.Log;
5
6
import com.swift.sandhook.annotation.HookMode;
@@ -16,7 +17,12 @@ public class JniHooker {
16
17
@HookMode(HookMode.INLINE)
18
public static int onJni(@ThisObject TestClass thiz) {
19
Log.e("JniHooker", "hooked success ");
- return onJniBackup(thiz);
20
+ if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) {
21
+ return onJniBackup(thiz);
22
+ } else {
23
+ //can not call jni origin in 4.4 tmp
24
+ return 0;
25
+ }
26
}
27
28
@HookMethodBackup("jni_test")
0 commit comments