Skip to content
Permalink
Browse files
Fixed bug 4002 - Android, nativeRunMain() fails on some phone with ar…
…m64-v8a

Sylvain

The issue is totally reproducible on P8 Lite.

"The dlopen() call doesn't include the app's native library directory. The behavior of  dlopen() by Android is not guaranteed".

Workaround in getMainSharedObject()

Just replace
    return library;
with
    return getContext().getApplicationInfo().nativeLibraryDir + "/" + library;
  • Loading branch information
slouken committed Sep 5, 2018
1 parent 80021c2 commit a0b3dcc26aae845f6dea3d2199ab263e772dc077
Showing 1 changed file with 1 addition and 1 deletion.
@@ -121,7 +121,7 @@ protected String getMainSharedObject() {
} else {
library = "libmain.so";
}
return library;
return getContext().getApplicationInfo().nativeLibraryDir + "/" + library;
}

/**

0 comments on commit a0b3dcc

Please sign in to comment.