Skip to content

Commit

Permalink
Don't hook ShouldUseInterpreterEntrypoint on T+ (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviraxp authored Oct 6, 2023
1 parent cd7c811 commit 7a6940e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsplant/src/main/jni/art/runtime/class_linker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class ClassLinker {
static bool Init(const HookHandler &handler) {
int sdk_int = GetAndroidApiLevel();

if (sdk_int >= __ANDROID_API_N__) [[likely]] {
!HookSyms(handler, ShouldUseInterpreterEntrypoint);
if (sdk_int >= __ANDROID_API_N__ && sdk_int < __ANDROID_API_T__) {
HookSyms(handler, ShouldUseInterpreterEntrypoint);
}

if (!HookSyms(handler, FixupStaticTrampolinesWithThread, FixupStaticTrampolines,
Expand Down

0 comments on commit 7a6940e

Please sign in to comment.