summaryrefslogtreecommitdiffstats
path: root/cmds/pm
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-07-14 22:44:30 -0700
committerJeff Sharkey <jsharkey@android.com>2014-07-14 23:06:52 -0700
commit6c833e07a05c48ca60ee4d72421bf8b1e78dc710 (patch)
treef16f3c2a12dea6fd5131d82d007fd75cd61fb915 /cmds/pm
parent5c6a8e322227354acbded5c49f44c0b289021bf5 (diff)
downloadframeworks_base-6c833e07a05c48ca60ee4d72421bf8b1e78dc710.zip
frameworks_base-6c833e07a05c48ca60ee4d72421bf8b1e78dc710.tar.gz
frameworks_base-6c833e07a05c48ca60ee4d72421bf8b1e78dc710.tar.bz2
Public API for PackageInstaller!
Flesh out documentation and finalize first cut of API. Also surface installLocation and splitNames through PackageInfo. Bug: 14975160, 15348430 Change-Id: Ic27696d20ed06e508aa3526218e9cb20835af6a0
Diffstat (limited to 'cmds/pm')
-rw-r--r--cmds/pm/src/com/android/commands/pm/Pm.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java
index 3d0eec4..9845a50 100644
--- a/cmds/pm/src/com/android/commands/pm/Pm.java
+++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -1017,7 +1017,7 @@ public final class Pm {
final InstallSessionParams params = new InstallSessionParams();
params.installFlags = PackageManager.INSTALL_ALL_USERS;
- params.fullInstall = true;
+ params.mode = InstallSessionParams.MODE_FULL_INSTALL;
params.progressMax = -1;
String opt;
@@ -1040,7 +1040,7 @@ public final class Pm {
} else if (opt.equals("-d")) {
params.installFlags |= PackageManager.INSTALL_ALLOW_DOWNGRADE;
} else if (opt.equals("-p")) {
- params.fullInstall = false;
+ params.mode = InstallSessionParams.MODE_INHERIT_EXISTING;
} else if (opt.equals("-S")) {
params.deltaSize = Long.parseLong(nextOptionData());
params.progressMax = (int) params.deltaSize;