OSDN Git Service

Package whitelist for hiddenapi checks.
authorMathew Inwood <mathewi@google.com>
Fri, 16 Feb 2018 11:49:20 +0000 (11:49 +0000)
committerMathew Inwood <mathewi@google.com>
Thu, 22 Feb 2018 11:05:14 +0000 (11:05 +0000)
commit787c193ee5fb5009cfabfdb72f87038f0dd242de
treed28ac0e45acb2519512e26e57abe3eb7d8f6d594
parent033de4676b6dbffeec1cfa3832fe651cc0550cf2
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

Merged-In: I94746b7f12dd9371d5068bb235eb853f63ee4d97
Change-Id: I1cbbd220c61b1b4b767c301f97096607ee902a7b
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]