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

Commit 5f722385 authored by Eric Biggers's avatar Eric Biggers
Browse files

Revert "Remove obsolete "Has profile owner" from UserManagerService#dumpUserLocked()"

This reverts commit 82209281.  Bedstead
was already fixed, but apparently people need more time to upgrade to
CTS versions that have the fix.

Bug: 258213147
Bug: 421030548
Flag: EXEMPT revert
Test: presubmit
Change-Id: I9e05fa61eb49b148971b44c6765391fc543e01b3
parent fbc17957
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -8075,6 +8075,10 @@ public class UserManagerService extends IUserManager.Stub {
        pw.print("    Last entered foreground: ");
        pw.print("    Last entered foreground: ");
        dumpTimeAgo(pw, tempStringBuilder, now, userData.mLastEnteredForegroundTimeMillis);
        dumpTimeAgo(pw, tempStringBuilder, now, userData.mLastEnteredForegroundTimeMillis);


        // bedstead relies on this being here, even though since Android 14 this has always been
        // false. TODO(b/258213147) update bedstead and remove this.
        pw.println("    Has profile owner: false");

        pw.println("    Restrictions:");
        pw.println("    Restrictions:");
        synchronized (mRestrictionsLock) {
        synchronized (mRestrictionsLock) {
            UserRestrictionsUtils.dumpRestrictions(
            UserRestrictionsUtils.dumpRestrictions(