diff options
author | Esteban Talavera <etalavera@google.com> | 2014-09-15 19:05:48 +0100 |
---|---|---|
committer | Esteban Talavera <etalavera@google.com> | 2014-09-16 10:24:58 +0100 |
commit | 41de9bb6fda113f7cfb8b7b8d64d07d3809f8f20 (patch) | |
tree | 5076956deff1cfc717e3d205c71f3b93f90a7a02 /cmds/pm/src | |
parent | 41f766394d07d09113d2e64a6917d069d41026c6 (diff) | |
download | frameworks_base-41de9bb6fda113f7cfb8b7b8d64d07d3809f8f20.zip frameworks_base-41de9bb6fda113f7cfb8b7b8d64d07d3809f8f20.tar.gz frameworks_base-41de9bb6fda113f7cfb8b7b8d64d07d3809f8f20.tar.bz2 |
Add 'adb dpm' subcommand to set profile owner
Required for GTS tests. Needed to relax the restriction that
only root user can run 'pm create-user' as GTS tests can't
get root permissions.
Bug: 17312478
Change-Id: I1841286ddf51756c73018c087a5f29afeb5b9f15
Diffstat (limited to 'cmds/pm/src')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 6d12133..5e9d8f7 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1190,10 +1190,6 @@ public final class Pm { if (userId < 0) { info = mUm.createUser(name, flags); } else { - if (Process.myUid() != 0) { - System.err.println("Error: not running as root."); - return; - } info = mUm.createProfileForUser(name, flags, userId); } if (info != null) { |