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

Commit 4fecabc8 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Log when admin package is not found

Bug: 258090088
Test: builds
Change-Id: Iaa97d0d551256318db2adadd59314ac13a84a062
parent a2063a9d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -336,7 +336,6 @@ import android.util.AtomicFile;
import android.util.DebugUtils;
import android.util.IndentingPrintWriter;
import android.util.IntArray;
import android.util.Log;
import android.util.Pair;
import android.util.Slog;
import android.util.SparseArray;
@@ -1220,6 +1219,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                                PackageManager.MATCH_DIRECT_BOOT_AWARE
                                        | PackageManager.MATCH_DIRECT_BOOT_UNAWARE,
                                userHandle) == null) {
                            Slogf.e(LOG_TAG, String.format(
                                    "Admin package %s not found for user %d, removing active admin",
                                    packageName, userHandle));
                            removedAdmin = true;
                            policy.mAdminList.remove(i);
                            policy.mAdminMap.remove(aa.info.getComponent());
@@ -3161,7 +3163,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
            userId = mOwners.getDeviceOwnerUserId();
        }
        if (VERBOSE_LOG) {
            Log.v(LOG_TAG, "Starting non-system DO user: " + userId);
            Slogf.v(LOG_TAG, "Starting non-system DO user: " + userId);
        }
        if (userId != UserHandle.USER_SYSTEM) {
            try {