OSDN Git Service

Package whitelist for hiddenapi checks.
authorMathew Inwood <mathewi@google.com>
Tue, 20 Feb 2018 16:04:25 +0000 (16:04 +0000)
committerMathew Inwood <mathewi@google.com>
Wed, 21 Feb 2018 12:50:45 +0000 (12:50 +0000)
commit4693a75eda3c95794789f729bc1202d3e3df47e0
treee137dd945c7b5219c6b15b65e8a43959272dd3ff
parent78cab5a5961b37d984069697dd0ba684184de6bd
Package whitelist for hiddenapi checks.

Some packages in the system image are not built against the SDK, so
enforcing hiddenapi checks for these will break them. Add a whitelist
for such packages.

For now, just add the contacts provider to the whitelist. The list will be
further populated later.

Test: Added test app package name to whitelist to verify.

Bug: 73244707
Change-Id: I94746b7f12dd9371d5068bb235eb853f63ee4d97
core/java/android/content/pm/ApplicationInfo.java
core/java/com/android/server/SystemConfig.java
data/etc/Android.mk
data/etc/hiddenapi-package-whitelist.xml [new file with mode: 0644]