Merge "Undo not warning user-package-whitelist issues in logmode" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc56e2551c
@@ -344,7 +344,7 @@ class UserSystemPackageInstaller {
|
|||||||
*/
|
*/
|
||||||
@NonNull
|
@NonNull
|
||||||
private List<String> getPackagesWhitelistErrors(@PackageWhitelistMode int mode) {
|
private List<String> getPackagesWhitelistErrors(@PackageWhitelistMode int mode) {
|
||||||
if ((!isEnforceMode(mode) || isImplicitWhitelistMode(mode))) {
|
if ((!isEnforceMode(mode) || isImplicitWhitelistMode(mode)) && !isLogMode(mode)) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -753,7 +753,7 @@ class UserSystemPackageInstaller {
|
|||||||
mode = getDeviceDefaultWhitelistMode();
|
mode = getDeviceDefaultWhitelistMode();
|
||||||
}
|
}
|
||||||
if (criticalOnly) {
|
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;
|
mode &= ~USER_TYPE_PACKAGE_WHITELIST_MODE_LOG;
|
||||||
}
|
}
|
||||||
Slog.v(TAG, "dumpPackageWhitelistProblems(): using mode " + modeToString(mode));
|
Slog.v(TAG, "dumpPackageWhitelistProblems(): using mode " + modeToString(mode));
|
||||||
|
|||||||
Reference in New Issue
Block a user