libcore: Add hooks for Dynamite module support in GmsCompat

These hooks are necessary for GmsCompat to support Google Play Services'
dynamic module system (Dynamite) without weakening the SELinux sandbox
to allow other apps to open module APKs from
/data/user_de/0/com.google.android.gms/app_chimera/m.

To minimize changes in libcore, each hook is a simple interface method
call that delegates the actual hook code to GmsCompat in
frameworks/base.

Change-Id: I49c7c2b2fe8b356137dbc90955a7b63684253457
4 files changed