summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-06-28 23:58:22 +0100
committer Paul Duffin <paulduffin@google.com> 2021-06-29 11:08:48 +0100
commit427b778acc74e60adfc4efc93c3fce870194fbf7 (patch)
tree401a88625cc4f7bac802d57e1febfc0b7cf0f9ec /PREUPLOAD.cfg
parent5626be27c70e597c773f1057f3dbd40f4857c02b (diff)
Enable media provider to perform its own hidden API processing
Previously, the hidden API encoding of the media provider boot dex jars, i.e. those dex jars that media provider 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 provider's bootclasspath_fragment. This change involves the following: * Addition of the fragments property to the media provider's bootclasspath_fragment module to list all the other bootclasspath_fragment modules on which this depends. * 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 provider from the flag files in frameworks/base/boot/hiddenapi directory into the media provider 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 provider 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.mediaprovider - 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: I32e2d726f831a25dd12605a82dde01bd885bb460
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index c8dbf77fa..5b80e3623 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -3,3 +3,6 @@ clang_format = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
+
+[Hook Scripts]
+hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}