From 63753d942f6367efe68f5cbc40ba4d2cf9aaff80 Mon Sep 17 00:00:00 2001 From: Jim Wu Date: Wed, 8 Jan 2020 15:21:49 +0800 Subject: [PATCH] Fix OPPO Android P from @wuxianlin --- edxp-core/build.gradle | 2 +- edxp-core/src/main/cpp/main/src/native_hook.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edxp-core/build.gradle b/edxp-core/build.gradle index f07980b2..2d0af077 100644 --- a/edxp-core/build.gradle +++ b/edxp-core/build.gradle @@ -5,7 +5,7 @@ apply plugin: 'com.android.library' // Values set here will be overriden by AppVeyor, feel free to modify during development. def buildVersionName = 'v0.4.6.1' -def buildVersionCode = 10000 +def buildVersionCode = 233 if (System.env.APPVEYOR_BUILD_VERSION != null) { buildVersionName = "v${System.getenv('appveyor_build_version')}" diff --git a/edxp-core/src/main/cpp/main/src/native_hook.cpp b/edxp-core/src/main/cpp/main/src/native_hook.cpp index fe3ea4c7..4028971b 100644 --- a/edxp-core/src/main/cpp/main/src/native_hook.cpp +++ b/edxp-core/src/main/cpp/main/src/native_hook.cpp @@ -66,7 +66,7 @@ namespace edxp { } hook_func = reinterpret_cast(hook_func_symbol); - if (api_level >= ANDROID_P) { + if (api_level > ANDROID_P) { ScopedDlHandle dl_handle(kLibDlPath.c_str()); void *handle = dl_handle.Get(); HOOK_FUNC(mydlopen, "__loader_dlopen");