Merge "Changed output of get-main-user." into udc-dev

This commit is contained in:
Felipe Leme
2023-03-28 16:24:29 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}