diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-03-17 08:37:04 -0700 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2010-03-17 18:43:31 -0700 |
commit | 14b6abda1309631d49d4bebbb0317a7e1dfc0a50 (patch) | |
tree | bee361e635743a09bb7253fef333d6fb94df6322 /cmds/pm/src | |
parent | d246ca811575eee9122070648e93b7484f6edd81 (diff) | |
download | frameworks_base-14b6abda1309631d49d4bebbb0317a7e1dfc0a50.zip frameworks_base-14b6abda1309631d49d4bebbb0317a7e1dfc0a50.tar.gz frameworks_base-14b6abda1309631d49d4bebbb0317a7e1dfc0a50.tar.bz2 |
Add new install flag to install on internal flash only
Change default install location policy for new flag.
New error code for media unavailable.
Change-Id: I5a5d0828b067692b2b94a15a2bcc7534f796c1a2
Diffstat (limited to 'cmds/pm/src')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 6 |
1 files changed, 5 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 fc5707d..cfc2e75 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -602,6 +602,9 @@ public final class Pm { } else if (opt.equals("-s")) { // Override if -s option is specified. installFlags |= PackageManager.INSTALL_EXTERNAL; + } else if (opt.equals("-f")) { + // Override if -s option is specified. + installFlags |= PackageManager.INSTALL_INTERNAL; } else { System.err.println("Error: Unknown option: " + opt); showUsage(); @@ -861,7 +864,7 @@ public final class Pm { System.err.println(" pm list instrumentation [-f] [TARGET-PACKAGE]"); System.err.println(" pm list features"); System.err.println(" pm path PACKAGE"); - System.err.println(" pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] PATH"); + System.err.println(" pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH"); System.err.println(" pm uninstall [-k] PACKAGE"); System.err.println(" pm mountsd [-m true/false]"); System.err.println(" pm enable PACKAGE_OR_COMPONENT"); @@ -895,6 +898,7 @@ public final class Pm { System.err.println(" -t: allow test .apks to be installed."); System.err.println(" -i: specify the installer package name."); System.err.println(" -s: install package on sdcard."); + System.err.println(" -f: install package on internal flash."); System.err.println(""); System.err.println("The uninstall command removes a package from the system. Options:"); System.err.println(" -k: keep the data and cache directories around."); |