diff options
author | Dianne Hackborn <hackbod@google.com> | 2017-10-16 17:37:38 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2017-10-16 17:37:38 -0700 |
commit | 91a711baac72001ea6576f7f8525e81e7ac2cc39 (patch) | |
tree | d6a8fd498a12a761b8970c8022e860db9183a3e8 | |
parent | 22910ada9abbda61346d3a28470be2176364f77e (diff) |
Update documentation for pm install / pm install-create
Test: manual
Change-Id: I1b039c72719c48ac607ff25bc8698d2524ebf2b5
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index c5c38f530912..60ec8a96f325 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1570,11 +1570,19 @@ public final class Pm { private static int showUsage() { System.err.println("usage: pm path [--user USER_ID] PACKAGE"); System.err.println(" pm dump PACKAGE"); - System.err.println(" pm install [-lrtsfd] [-i PACKAGE] [--user USER_ID] [PATH]"); - System.err.println(" pm install-create [-lrtsfdp] [-i PACKAGE] [-S BYTES]"); - System.err.println(" [--install-location 0/1/2]"); - System.err.println(" [--force-uuid internal|UUID]"); - System.err.println(" pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH]"); + System.err.println(" pm install [-lrtsfdg] [-i PACKAGE] [--user USER_ID]"); + System.err.println(" [-p INHERIT_PACKAGE] [--install-location 0/1/2]"); + System.err.println(" [--originating-uri URI] [---referrer URI]"); + System.err.println(" [--abi ABI_NAME] [--force-sdk]"); + System.err.println(" [--preload] [--instantapp] [--full] [--dont-kill]"); + System.err.println(" [--force-uuid internal|UUID] [--pkg PACKAGE] [-S BYTES] [PATH|-]"); + System.err.println(" pm install-create [-lrtsfdg] [-i PACKAGE] [--user USER_ID]"); + System.err.println(" [-p INHERIT_PACKAGE] [--install-location 0/1/2]"); + System.err.println(" [--originating-uri URI] [---referrer URI]"); + System.err.println(" [--abi ABI_NAME] [--force-sdk]"); + System.err.println(" [--preload] [--instantapp] [--full] [--dont-kill]"); + System.err.println(" [--force-uuid internal|UUID] [--pkg PACKAGE] [-S BYTES]"); + System.err.println(" pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH|-]"); System.err.println(" pm install-commit SESSION_ID"); System.err.println(" pm install-abandon SESSION_ID"); System.err.println(" pm uninstall [-k] [--user USER_ID] [--versionCode VERSION_CODE] PACKAGE"); @@ -1613,15 +1621,27 @@ public final class Pm { System.err.println("pm install: install a single legacy package"); System.err.println("pm install-create: create an install session"); System.err.println(" -l: forward lock application"); - System.err.println(" -r: replace existing application"); + System.err.println(" -r: allow replacement of existing application"); System.err.println(" -t: allow test packages"); - System.err.println(" -i: specify the installer package name"); + System.err.println(" -i: specify package name of installer owning the app"); System.err.println(" -s: install application on sdcard"); System.err.println(" -f: install application on internal flash"); System.err.println(" -d: allow version code downgrade (debuggable packages only)"); - System.err.println(" -p: partial application install"); + System.err.println(" -p: partial application install (new split on top of existing pkg)"); System.err.println(" -g: grant all runtime permissions"); System.err.println(" -S: size in bytes of entire session"); + System.err.println(" --dont-kill: installing a new feature split, don't kill running app"); + System.err.println(" --originating-uri: set URI where app was downloaded from"); + System.err.println(" --referrer: set URI that instigated the install of the app"); + System.err.println(" --pkg: specify expected package name of app being installed"); + System.err.println(" --abi: override the default ABI of the platform"); + System.err.println(" --instantapp: cause the app to be installed as an ephemeral install app"); + System.err.println(" --full: cause the app to be installed as a non-ephemeral full app"); + System.err.println(" --install-location: force the install location:"); + System.err.println(" 0=auto, 1=internal only, 2=prefer external"); + System.err.println(" --force-uuid: force install on to disk volume with given UUID"); + System.err.println(" --force-sdk: allow install even when existing app targets platform"); + System.err.println(" codename but new one targets a final API level"); System.err.println(""); System.err.println("pm install-write: write a package into existing session; path may"); System.err.println(" be '-' to read from stdin"); |