From 142c308261066131c83e1f8d7d12d4c65e8a5ec2 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 14 Feb 2022 19:46:45 +0800 Subject: [PATCH] Do not depend on SDK_INT (#1689) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com> --- core/src/main/cpp/main/include/art/runtime/class_linker.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/cpp/main/include/art/runtime/class_linker.h b/core/src/main/cpp/main/include/art/runtime/class_linker.h index 2794a5c0..4321c811 100644 --- a/core/src/main/cpp/main/include/art/runtime/class_linker.h +++ b/core/src/main/cpp/main/include/art/runtime/class_linker.h @@ -128,11 +128,7 @@ namespace art { RETRIEVE_MEM_FUNC_SYMBOL(SetEntryPointsToInterpreter, "_ZNK3art11ClassLinker27SetEntryPointsToInterpreterEPNS_9ArtMethodE"); - if (api_level >= __ANDROID_API_T__) { - lspd::HookSyms(handle, ShouldStayInSwitchInterpreter); - } else { - lspd::HookSyms(handle, ShouldUseInterpreterEntrypoint); - } + lspd::HookSyms(handle, ShouldUseInterpreterEntrypoint, ShouldStayInSwitchInterpreter); if (api_level >= __ANDROID_API_R__) { // In android R, FixupStaticTrampolines won't be called unless it's marking it as