Automatically allowlist carui RRO packages.

Test: adb shell cmd user report-system-user-package-whitelist-problems --critical-only --mode 1 | grep carri || echo NOT_FOUND
Test: atest PreInstalledPackagesTest

Fixes: 172875945
Bug: 172956245

Change-Id: I137c2c0f3094899e864dcdfc83866f07fb1b210f
This commit is contained in:
Felipe Leme
2020-11-10 14:30:15 -08:00
parent 7df723dd69
commit df0f283b9d

View File

@@ -418,6 +418,8 @@ class UserSystemPackageInstaller {
@VisibleForTesting
static boolean hasAutoGeneratedRROSuffix(String name) {
return name.endsWith(".auto_generated_rro_product__")
// TODO(b/172956245): temporary workaround until OEMs can customize name
|| name.endsWith("carui.rro") || name.endsWith("carui.overlayable.rro")
|| name.endsWith(".auto_generated_rro_vendor__");
}