From 2f09c3bc5bf00ae3450f958c0b5f91b742e83bf6 Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Fri, 16 Feb 2018 13:32:19 +0000 Subject: [PATCH] Populate hiddenapi whitelist. This list of packages is derived from all packages in the tree that do not specify LOCAL_SDK_VERSION in their Android.mk. It was done by: 1. Modifying biuld/core/package_internal.mk to output a warning for all packages that do not specify LOCAL_SDK_VERSION, including some metadata about the target. 2. Parsing the output fom the build, then filtering out those that specify a test certificate, or with LOCAL_MODULE_TAGS := tests, that depend on android.test.runner or whose name includes "Test" 3. Look up the java package name of each & build the list from these. Test: N/A, this change is a no-op while all system apps are excluded from the checks. BUG: 73244707 Change-Id: Ie3dcb1b4b83c32e93609bc58dc7a1cd513eeea64 --- data/etc/hiddenapi-package-whitelist.xml | 75 ++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/data/etc/hiddenapi-package-whitelist.xml b/data/etc/hiddenapi-package-whitelist.xml index 54d8a23316631..1d46d42a97504 100644 --- a/data/etc/hiddenapi-package-whitelist.xml +++ b/data/etc/hiddenapi-package-whitelist.xml @@ -21,6 +21,81 @@ which apps should be allowed to access the entire private API. --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +