Not all shared libraries have a JNI_OnLoad.
Change-Id: I7b3b6a48ed5631db6659461072ed4aa735bfd033
(cherry picked from commit 85affca81271f573c75c32316aa6faa8e52448b1)
diff --git a/runtime/jni_internal.cc b/runtime/jni_internal.cc
index a12ba9a..d1de6e6 100644
--- a/runtime/jni_internal.cc
+++ b/runtime/jni_internal.cc
@@ -2857,6 +2857,7 @@
void* sym = dlsym(handle, "JNI_OnLoad");
if (sym == NULL) {
VLOG(jni) << "[No JNI_OnLoad found in \"" << path << "\"]";
+ was_successful = true;
} else {
// Call JNI_OnLoad. We have to override the current class
// loader, which will always be "null" since the stuff at the