summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-10-11 17:55:15 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-11 17:55:15 -0700
commitd3ab7fc537fa742bbbdc33230b87d8544b09a3ea (patch)
treeb94c2d2bfd3e7b775d53d0f21eeaffb9c668020d /cmds
parent102dc1cb21ddcde56c299437e8f14de0b629f7fd (diff)
parent2425164835e9bbf4c501c69c078b2c1a48f3414e (diff)
downloadframeworks_base-d3ab7fc537fa742bbbdc33230b87d8544b09a3ea.zip
frameworks_base-d3ab7fc537fa742bbbdc33230b87d8544b09a3ea.tar.gz
frameworks_base-d3ab7fc537fa742bbbdc33230b87d8544b09a3ea.tar.bz2
am 24251648: am 9ad36ded: am 9dfca201: Merge "Print newly generated userId." into jb-mr1-dev
* commit '2425164835e9bbf4c501c69c078b2c1a48f3414e': Print newly generated userId.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/pm/src/com/android/commands/pm/Pm.java5
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) {