From c3cc4b2b5c363055836ffcd06ea4443187ad5eef Mon Sep 17 00:00:00 2001 From: Wang Han Date: Sun, 23 May 2021 13:04:08 +0800 Subject: [PATCH] [core] Remove API level check for inline hook (#660) --- core/src/main/cpp/main/src/native_hook.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/src/main/cpp/main/src/native_hook.cpp b/core/src/main/cpp/main/src/native_hook.cpp index 25ec1724..5c76f89f 100644 --- a/core/src/main/cpp/main/src/native_hook.cpp +++ b/core/src/main/cpp/main/src/native_hook.cpp @@ -25,7 +25,6 @@ #include #include #include -#include "utils.h" #include "symbol_cache.h" #include "logging.h" #include "native_api.h" @@ -54,16 +53,8 @@ namespace lspd { } installed = true; LOGI("Start to install inline hooks"); - int api_level = GetAndroidApiLevel(); - if (UNLIKELY(api_level < __ANDROID_API_L__)) { - LOGE("API level not supported: %d, skip inline hooks", api_level); - return; - } - LOGI("Using api level %d", api_level); InstallRiruHooks(); - // install ART hooks InstallArtHooks(handle_libart); -// InstallNativeAPI(); } void InstallArtHooks(void *art_handle) {