Commit 8eed3a00 authored by swift_gan's avatar swift_gan

tweak cache flush

parent 69ada1b7
......@@ -105,11 +105,12 @@ bool doHookWithInline(JNIEnv* env,
if (!hookMethod->isCompiled()) {
hookMethod->compile(env);
}
if (SDK_INT >= ANDROID_N) {
originMethod->disableCompilable();
originMethod->flushCache();
}
originMethod->tryDisableInline();
originMethod->flushCache();
SandHook::HookTrampoline* hookTrampoline = trampolineManager.installInlineTrampoline(originMethod, hookMethod, backupMethod);
......
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