[core] Remove API level check for inline hook (#660)

This commit is contained in:
Wang Han 2021-05-23 13:04:08 +08:00 committed by GitHub
parent 5084205647
commit c3cc4b2b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -25,7 +25,6 @@
#include <dl_util.h>
#include <art/runtime/jni_env_ext.h>
#include <dobby.h>
#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) {