| commit | e6d3ccc99270aaf62808adc7475a25d96664f0fb | [log] [tgz] |
|---|---|---|
| author | Jeff Sharkey <jsharkey@android.com> | Thu Oct 11 16:43:20 2012 -0700 |
| committer | Jeff Sharkey <jsharkey@android.com> | Thu Oct 11 16:44:18 2012 -0700 |
| tree | 4ee82dce7ec5418b95688b9a7d3fd474d92b3f55 | |
| parent | 38f8688baeb0f610a47c17bb7810349502d62ab6 [diff] |
Print newly generated userId. Bug: 7334718 Change-Id: Id4dc456b079bebbe9f2d7ea2a8343d2215f296dc
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index c455b7d..463a18c 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -990,7 +990,10 @@ } name = arg; try { - if (mUm.createUser(name, 0) == null) { + final UserInfo info = mUm.createUser(name, 0); + if (info != null) { + System.out.println("Success: created user id " + info.id); + } else { System.err.println("Error: couldn't create User."); } } catch (RemoteException e) {