diff --git a/services/core/java/com/android/server/pm/UserManagerServiceShellCommand.java b/services/core/java/com/android/server/pm/UserManagerServiceShellCommand.java index 333c98c4818da..835ab6a8e8bce 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 @@ public class UserManagerServiceShellCommand extends ShellCommand { 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; }