Do not depend on SDK_INT (#1689)

Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
This commit is contained in:
LoveSy 2022-02-14 19:46:45 +08:00 committed by GitHub
parent 808d941846
commit 142c308261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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