libnativeloader: remove stubs for now.

Seems to break VMDebug test.

Also add missed strdup in returned error message.

bug: 122957265
Test: VMDebug
Change-Id: I64727d707f20c0e6afcb5455edf20c99011a81dc
This commit is contained in:
Nicolas Geoffray 2019-01-16 20:20:27 +00:00
parent 1d69860960
commit d06cb94d25
2 changed files with 1 additions and 10 deletions

View File

@ -23,15 +23,6 @@ cc_library {
"llndk.libraries.txt",
"vndksp.libraries.txt",
],
target: {
android: {
version_script: "libnativeloader.map.txt",
},
},
stubs: {
symbol_file: "libnativeloader.map.txt",
versions: ["1"],
},
}
cc_library_headers {

View File

@ -632,7 +632,7 @@ void* OpenNativeLibrary(JNIEnv* env, int32_t target_sdk_version, const char* pat
*needs_native_bridge = false;
void* handle = dlopen(path, RTLD_NOW);
if (handle == nullptr) {
*error_msg = dlerror();
*error_msg = strdup(dlerror());
}
return handle;
}