Commit 23b25448 authored by swift_gan's avatar swift_gan

tweak hook policy

parent 7a779f00
......@@ -180,14 +180,14 @@ Java_com_swift_sandhook_SandHook_hookMethod(JNIEnv *env, jclass type, jobject or
if (origin->isAbstract()) {
isInlineHook = false;
} else if (origin->isNative()) {
isInlineHook = SDK_INT < ANDROID_O;
} else if (gHookMode != AUTO) {
if (gHookMode == INLINE) {
isInlineHook = origin->compile(env);
} else {
isInlineHook = false;
}
} else if (SDK_INT >= ANDROID_O) {
isInlineHook = false;
} else if (!origin->isCompiled()) {
if (SDK_INT >= ANDROID_N) {
isInlineHook = origin->compile(env);
......
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