Clean up JNI dlsym lookup trampoline.
Make sure the GenericJniTrampoline recognizes the trampoline
in primary boot image oat file. Rename that trampoline, add
a test and flag some issues in the code.
Test: New test 178-app-image-native-method.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: testrunner.py --host -t 178-app-image-native-method
Bug: 112189621
Change-Id: I8f8cd11998af536fd3842dd4183a25f0367655a6
diff --git a/test/Android.bp b/test/Android.bp
index f10d378..de2ab3f 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -543,6 +543,7 @@
"169-threadgroup-jni/jni_daemon_thread.cc",
"172-app-image-twice/debug_print_class.cc",
"177-visibly-initialized-deadlock/visibly_initialized.cc",
+ "178-app-image-native-method/native_methods.cc",
"1945-proxy-method-arguments/get_args.cc",
"203-multi-checkpoint/multi_checkpoint.cc",
"305-other-fault-handler/fault_handler.cc",