Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2bbee98d authored by Paul Duffin's avatar Paul Duffin
Browse files

Retry: Add hidden API flags to com.android.media-bootclasspath-fragment

Previous attempt had the wrong Merged-In property which caused it to
skip stage-aosp-master and all downstream branches.

Previously, the hidden API encoding of the media boot dex jars, i.e.
those dex jars that media contributes to the bootclasspath were done
as part of the monolithic hidden API processing. This change causes
the encoding to be done by the media's bootclasspath_fragment.

This change involves the following:
* Addition of the api.stub_libs property to specify the API provided
  by the media's bootclasspath_fragment module.
* Addition of the additional_stubs property to add stubs for APIs that
  are not provided by another bootclasspath_fragment.
* Moving hidden API flag file entries related to media from the flag
  files in frameworks/base/boot/hiddenapi directory into the media
  directory with an appropriate OWNERS file to allow them to be managed
  by the Soong and compat team.
* Addition of a PREUPLOAD.cfg hook script to ensure that the flag files
  are sorted.

The build automatically checks that the hidden API flags which are
computed by media and encoded into its boot dex jars match those that
are generated by the monolithic processing so this is guaranteed to be
safe.

Bug: 179354495
Test: m com.android.media
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I6df6533d7287cc88421c44ef7942edc5d261dba3
Merged-In: I4f4c97995136f326597ee996d4f84e2b34187d1a
parent 7d7efd1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment