Fix OPPO Android P from @wuxianlin
This commit is contained in:
parent
669a5b6f1a
commit
63753d942f
|
|
@ -5,7 +5,7 @@ apply plugin: 'com.android.library'
|
||||||
|
|
||||||
// Values set here will be overriden by AppVeyor, feel free to modify during development.
|
// Values set here will be overriden by AppVeyor, feel free to modify during development.
|
||||||
def buildVersionName = 'v0.4.6.1'
|
def buildVersionName = 'v0.4.6.1'
|
||||||
def buildVersionCode = 10000
|
def buildVersionCode = 233
|
||||||
|
|
||||||
if (System.env.APPVEYOR_BUILD_VERSION != null) {
|
if (System.env.APPVEYOR_BUILD_VERSION != null) {
|
||||||
buildVersionName = "v${System.getenv('appveyor_build_version')}"
|
buildVersionName = "v${System.getenv('appveyor_build_version')}"
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ namespace edxp {
|
||||||
}
|
}
|
||||||
hook_func = reinterpret_cast<HookFunType>(hook_func_symbol);
|
hook_func = reinterpret_cast<HookFunType>(hook_func_symbol);
|
||||||
|
|
||||||
if (api_level >= ANDROID_P) {
|
if (api_level > ANDROID_P) {
|
||||||
ScopedDlHandle dl_handle(kLibDlPath.c_str());
|
ScopedDlHandle dl_handle(kLibDlPath.c_str());
|
||||||
void *handle = dl_handle.Get();
|
void *handle = dl_handle.Get();
|
||||||
HOOK_FUNC(mydlopen, "__loader_dlopen");
|
HOOK_FUNC(mydlopen, "__loader_dlopen");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue