Undo not warning user-package-whitelist issues in logmode

ag/11465310 accidentally removed this line; it needs to be added back.

Bug: 154112291
Test: manual
Change-Id: I4f6f09b2dca753e2c289bc147b00d8a692edcd3a
This commit is contained in:
Adam Bookatz
2020-05-28 15:31:19 -07:00
parent 4911db037b
commit 52f5f81009

View File

@@ -344,7 +344,7 @@ class UserSystemPackageInstaller {
*/
@NonNull
private List<String> getPackagesWhitelistErrors(@PackageWhitelistMode int mode) {
if ((!isEnforceMode(mode) || isImplicitWhitelistMode(mode))) {
if ((!isEnforceMode(mode) || isImplicitWhitelistMode(mode)) && !isLogMode(mode)) {
return Collections.emptyList();
}
@@ -753,7 +753,7 @@ class UserSystemPackageInstaller {
mode = getDeviceDefaultWhitelistMode();
}
if (criticalOnly) {
// Flip-out log mode
// Ignore log mode (if set) since log-only issues are not critical.
mode &= ~USER_TYPE_PACKAGE_WHITELIST_MODE_LOG;
}
Slog.v(TAG, "dumpPackageWhitelistProblems(): using mode " + modeToString(mode));