We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f8688 commit e6d3cccCopy full SHA for e6d3ccc
cmds/pm/src/com/android/commands/pm/Pm.java
@@ -990,7 +990,10 @@ public void runCreateUser() {
990
}
991
name = arg;
992
try {
993
- if (mUm.createUser(name, 0) == null) {
+ final UserInfo info = mUm.createUser(name, 0);
994
+ if (info != null) {
995
+ System.out.println("Success: created user id " + info.id);
996
+ } else {
997
System.err.println("Error: couldn't create User.");
998
999
} catch (RemoteException e) {
0 commit comments