diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-10-11 17:29:02 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-11 17:29:02 -0700 |
commit | 2425164835e9bbf4c501c69c078b2c1a48f3414e (patch) | |
tree | 31b4418ce080f24fcbe4396ccc38e30bd433ce5d | |
parent | 250a90cacf25fb277a5b778039965a330a0376d0 (diff) | |
parent | 9ad36dedd668c3bfa906397baa3d0aa76cfe1216 (diff) | |
download | frameworks_base-2425164835e9bbf4c501c69c078b2c1a48f3414e.zip frameworks_base-2425164835e9bbf4c501c69c078b2c1a48f3414e.tar.gz frameworks_base-2425164835e9bbf4c501c69c078b2c1a48f3414e.tar.bz2 |
am 9ad36ded: am 9dfca201: Merge "Print newly generated userId." into jb-mr1-dev
* commit '9ad36dedd668c3bfa906397baa3d0aa76cfe1216':
Print newly generated userId.
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ public final class Pm { } 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) { |