diff options
author | Svet Ganov <svetoslavganov@google.com> | 2015-03-19 09:38:52 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2015-03-24 01:53:50 +0000 |
commit | 95c1adea0c5fe10ceba217a327163757f4589d3d (patch) | |
tree | f15fd1568262a9b9ab8568a2fe8e56a417f540c8 /cmds | |
parent | ca7256ef32aced37c5eac0dcbb4950b52efedaf2 (diff) | |
download | frameworks_base-95c1adea0c5fe10ceba217a327163757f4589d3d.zip frameworks_base-95c1adea0c5fe10ceba217a327163757f4589d3d.tar.gz frameworks_base-95c1adea0c5fe10ceba217a327163757f4589d3d.tar.bz2 |
Add install option to grant all runtime permissions.
Change-Id: I72ba67a72025646a3d53611621b0353d3a86677c
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 3 |
1 files changed, 3 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 f38b9e7..89dd079 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -892,6 +892,8 @@ public final class Pm { installFlags |= PackageManager.INSTALL_INTERNAL; } else if (opt.equals("-d")) { installFlags |= PackageManager.INSTALL_ALLOW_DOWNGRADE; + } else if (opt.equals("-g")) { + installFlags |= PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS; } else if (opt.equals("--originating-uri")) { originatingUriString = nextOptionData(); if (originatingUriString == null) { @@ -1878,6 +1880,7 @@ public final class Pm { System.err.println(" -f: install application on internal flash"); System.err.println(" -d: allow version code downgrade"); System.err.println(" -p: partial application install"); + System.err.println(" -g: grant all runtime permissions"); System.err.println(" -S: size in bytes of entire session"); System.err.println(""); System.err.println("pm install-write: write a package into existing session; path may"); |