Merge "Move to C API of libnativeloader."
am: 9bc4066ba3
Change-Id: I402edc150c0031a284c15da684494c5773581978
This commit is contained in:
@@ -281,15 +281,18 @@ loadNativeCode_native(JNIEnv* env, jobject clazz, jstring path, jstring funcName
|
||||
std::unique_ptr<NativeCode> code;
|
||||
bool needs_native_bridge = false;
|
||||
|
||||
char* nativeloader_error_msg = nullptr;
|
||||
void* handle = OpenNativeLibrary(env,
|
||||
sdkVersion,
|
||||
pathStr.c_str(),
|
||||
classLoader,
|
||||
libraryPath,
|
||||
&needs_native_bridge,
|
||||
&g_error_msg);
|
||||
&nativeloader_error_msg);
|
||||
|
||||
if (handle == nullptr) {
|
||||
g_error_msg = nativeloader_error_msg;
|
||||
NativeLoaderFreeErrorMessage(nativeloader_error_msg);
|
||||
ALOGW("NativeActivity LoadNativeLibrary(\"%s\") failed: %s",
|
||||
pathStr.c_str(),
|
||||
g_error_msg.c_str());
|
||||
|
||||
Reference in New Issue
Block a user