diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-12 09:43:29 -0800 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2010-02-12 18:50:47 -0800 |
commit | 5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2 (patch) | |
tree | fc25f9f6adee005c287454a74837f6cbc1a072a0 /cmds | |
parent | 70251b1704b9bb81443e7533d365400645dd5eaa (diff) | |
download | frameworks_base-5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2.zip frameworks_base-5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2.tar.gz frameworks_base-5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2.tar.bz2 |
Include install location preference when installing packages.
Changes include
Add new remote call in default container service to determine
install location.
Rename INSTALL_ON_SDCARD
Remove recommentAppInstall method
Add some additional flags used in remote stubs.
Move check for protected apps prior to copy.
Unit tests
DefaultContainerService first parses the file uri(if content uri is specified
it returns a default install internal only value) and returns
a recommended location. Based on which the temporary id is determined
either a file name or a container id and the file is copied there.
This is then later renamed during install.
Todo's light weight parsing of package when determining location since we
just need the install location attribute only when finding out
recomended location. This will also enable to move the check for
updated system apps(cannot be on sdcard) prior to copying.
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 2 |
1 files changed, 1 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 68373cb..ff16c6e 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -600,7 +600,7 @@ public final class Pm { } else if (opt.equals("-t")) { installFlags |= PackageManager.INSTALL_ALLOW_TEST; } else if (opt.equals("-s")) { - installFlags |= PackageManager.INSTALL_ON_SDCARD; + installFlags |= PackageManager.INSTALL_EXTERNAL; } else { System.err.println("Error: Unknown option: " + opt); showUsage(); |