Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52f5f810 authored by Adam Bookatz's avatar Adam Bookatz
Browse files

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
parent 4911db03
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));