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

Commit 363042b9 authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Include TrustState in TrustManagerService dumpUser am: 447abc81 am:...

Include TrustState in TrustManagerService dumpUser am: 447abc81 am: 48dcb188 am: 6c9ac262 am: 28f4ca95

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2737048



Change-Id: Ic17ef66af65a43b80d039140f0921f8edc355529
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2333200f 28f4ca95
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -862,6 +862,12 @@ public class TrustManagerService extends SystemService {
        }
    }

    private TrustState getUserTrustStateInner(int userId) {
        synchronized (mUserTrustState) {
            return mUserTrustState.get(userId, TrustState.UNTRUSTED);
        }
    }

    boolean isDeviceLockedInner(int userId) {
        synchronized (mDeviceLockedForUser) {
            return mDeviceLockedForUser.get(userId, true);
@@ -1745,7 +1751,7 @@ public class TrustManagerService extends SystemService {
            if (isCurrent) {
                fout.print(" (current)");
            }
            fout.print(": trusted=" + dumpBool(aggregateIsTrusted(user.id)));
            fout.print(": trustState=" + getUserTrustStateInner(user.id));
            fout.print(", trustManaged=" + dumpBool(aggregateIsTrustManaged(user.id)));
            fout.print(", deviceLocked=" + dumpBool(isDeviceLockedInner(user.id)));
            fout.print(", isActiveUnlockRunning=" + dumpBool(