Commit 0d617246 authored by swift_gan's avatar swift_gan

can not call jni origin in 4.4

parent 2209c181
package com.swift.sandhook.testHookers; package com.swift.sandhook.testHookers;
import android.os.Build;
import android.util.Log; import android.util.Log;
import com.swift.sandhook.annotation.HookMode; import com.swift.sandhook.annotation.HookMode;
...@@ -16,7 +17,12 @@ public class JniHooker { ...@@ -16,7 +17,12 @@ public class JniHooker {
@HookMode(HookMode.INLINE) @HookMode(HookMode.INLINE)
public static int onJni(@ThisObject TestClass thiz) { public static int onJni(@ThisObject TestClass thiz) {
Log.e("JniHooker", "hooked success "); Log.e("JniHooker", "hooked success ");
return onJniBackup(thiz); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) {
return onJniBackup(thiz);
} else {
//can not call jni origin in 4.4 tmp
return 0;
}
} }
@HookMethodBackup("jni_test") @HookMethodBackup("jni_test")
......
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