Don't hook ShouldUseInterpreterEntrypoint on T+ (#49)

This commit is contained in:
Wang Han 2023-10-06 14:34:28 +08:00 committed by GitHub
parent cd7c81128b
commit 7a6940e722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,8 +131,8 @@ public:
static bool Init(const HookHandler &handler) { static bool Init(const HookHandler &handler) {
int sdk_int = GetAndroidApiLevel(); int sdk_int = GetAndroidApiLevel();
if (sdk_int >= __ANDROID_API_N__) [[likely]] { if (sdk_int >= __ANDROID_API_N__ && sdk_int < __ANDROID_API_T__) {
!HookSyms(handler, ShouldUseInterpreterEntrypoint); HookSyms(handler, ShouldUseInterpreterEntrypoint);
} }
if (!HookSyms(handler, FixupStaticTrampolinesWithThread, FixupStaticTrampolines, if (!HookSyms(handler, FixupStaticTrampolinesWithThread, FixupStaticTrampolines,