Reland "Change JNI behavior related to hiddenapi."

This reverts commit dbcf4a2a597309f33914fb60dc09e1056032794a.

Bug: 178680596
Bug: 122551864
Bug: 184067905

Reason for revert: Limit the lookup of an accessible interface to an
interface part of the SDK.

Change-Id: If08269908044bc0f2abe1967b6d952b1e828179b
diff --git a/test/Android.bp b/test/Android.bp
index 44f84cd..33fa5d8 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -663,6 +663,7 @@
         "708-jit-cache-churn/jit.cc",
         "720-thread-priority/thread_priority.cc",
         "800-smali/jni.cc",
+        "817-hiddenapi/test_native.cc",
         "909-attach-agent/disallow_debugging.cc",
         "1001-app-image-regions/app_image_regions.cc",
         "1002-notify-startup/startup_interface.cc",