commit | 570023b2fe88e74e8da77d9d3c6f3df78023bfd7 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Tue Mar 28 16:24:29 2023 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Mar 28 16:24:29 2023 +0000 |
tree | 8734f6c0ece9c0da8a1a91825b0a12a7a482e4e3 | |
parent | 8b8848020de152d2a88298ff7b195e70fde8c6b3 [diff] | |
parent | 695ab4cb7d3c80e1b6e2ced9bd0aa974a466982b [diff] |
Merge "Changed output of get-main-user." into udc-dev
diff --git a/services/core/java/com/android/server/pm/UserManagerServiceShellCommand.java b/services/core/java/com/android/server/pm/UserManagerServiceShellCommand.java index 333c98c..835ab6a 100644 --- a/services/core/java/com/android/server/pm/UserManagerServiceShellCommand.java +++ b/services/core/java/com/android/server/pm/UserManagerServiceShellCommand.java
@@ -530,10 +530,10 @@ PrintWriter pw = getOutPrintWriter(); final int mainUserId = mService.getMainUserId(); if (mainUserId == UserHandle.USER_NULL) { - pw.println("Couldn't get main user."); + pw.println("None"); return 1; } - pw.println("Main user id: " + mainUserId); + pw.println(mainUserId); return 0; }