diff options
author | Svet Ganov <svetoslavganov@google.com> | 2015-05-14 16:18:05 -0700 |
---|---|---|
committer | Svet Ganov <svetoslavganov@google.com> | 2015-05-14 16:24:19 -0700 |
commit | 4ccca50d7e501154127ac360e0fcbae850b1bbc8 (patch) | |
tree | f903d0ee7143bcbe089248662d75a5df068fe47a /cmds/pm | |
parent | 2bdd69c4a2d9a8a5e94770a710123fb1958cf25b (diff) | |
download | frameworks_base-4ccca50d7e501154127ac360e0fcbae850b1bbc8.zip frameworks_base-4ccca50d7e501154127ac360e0fcbae850b1bbc8.tar.gz frameworks_base-4ccca50d7e501154127ac360e0fcbae850b1bbc8.tar.bz2 |
Fix grant/revoke to act on owner by default and log invalid user id.
bug:21163229
Change-Id: I66d0cc130b37b5752ed06afc73259ed41bfb7830
Diffstat (limited to 'cmds/pm')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 2 |
1 files changed, 1 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 eb834f2..1599459 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1585,7 +1585,7 @@ public final class Pm { } private int runGrantRevokePermission(boolean grant) { - int userId = UserHandle.USER_CURRENT; + int userId = UserHandle.USER_OWNER; String opt = null; while ((opt = nextOption()) != null) { |