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
10 files changed