hidden_api: Call back into libcore on hidden api detection

This change also removes some unnecessary RI specific logic for
building src-ex since it isn't required.

Bug: 73896556
Test: run-test --host 674-hiddenapi
Test: StrictModeTest

Co-Authored-By: Andreas Gampe <agampe@google.com>

(cherry picked from commit 757a9d0a2e97d43bafeb8a95cc3c51102be99586)

Merged-In: Ib2b4dfad55c5d829630bfe2adb4a468124bea61c
Change-Id: Ida0943990aa1b3bad0c674bc31ff46766ae493a6
6 files changed