diff options
author | Jeff Sharkey <jsharkey@android.com> | 2015-07-09 09:16:04 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2015-07-09 09:16:07 -0700 |
commit | 396080dd021c431c895012b0e4262021b457abf2 (patch) | |
tree | 3b6363fd22549a8d93643212da3f4d05b17823fa /cmds/pm | |
parent | a80d264be67ebb3514849e22ae0d245d4ef53446 (diff) | |
download | frameworks_base-396080dd021c431c895012b0e4262021b457abf2.zip frameworks_base-396080dd021c431c895012b0e4262021b457abf2.tar.gz frameworks_base-396080dd021c431c895012b0e4262021b457abf2.tar.bz2 |
Add grant flag support to "install-create" verb.
This matches the "install" behavior.
Bug: 22331569
Change-Id: I07bfe067bd4be01fc92126750b0ff25a5c5ba5c9
Diffstat (limited to 'cmds/pm')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index ce83caa..2dcd9cb 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1025,6 +1025,8 @@ public final class Pm { params.installFlags |= PackageManager.INSTALL_INTERNAL; } else if (opt.equals("-d")) { params.installFlags |= PackageManager.INSTALL_ALLOW_DOWNGRADE; + } else if (opt.equals("-g")) { + params.installFlags |= PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS; } else if (opt.equals("--originating-uri")) { params.originatingUri = Uri.parse(nextOptionData()); } else if (opt.equals("--referrer")) { |