summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server
diff options
context:
space:
mode:
authorSuchi Amalapurapu <asuchitra@google.com>2010-05-18 11:06:53 -0700
committerSuchi Amalapurapu <asuchitra@google.com>2010-05-18 11:31:50 -0700
commit9a212adcffbc4b32d51f512889b33ba584647aa9 (patch)
treee9975dc03c5dd352b9bf384699cfe492f009e78b /services/java/com/android/server
parent5f1d100298dfafbd996b6deff457e6d1de4008a0 (diff)
downloadframeworks_base-9a212adcffbc4b32d51f512889b33ba584647aa9.zip
frameworks_base-9a212adcffbc4b32d51f512889b33ba584647aa9.tar.gz
frameworks_base-9a212adcffbc4b32d51f512889b33ba584647aa9.tar.bz2
Fix 2641875
Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well. Change-Id: I63219369b0e7abca4919fbde2a04035a0fea9e35
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r--services/java/com/android/server/PackageManagerService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java
index 22becba..5ed19a2 100644
--- a/services/java/com/android/server/PackageManagerService.java
+++ b/services/java/com/android/server/PackageManagerService.java
@@ -5057,7 +5057,8 @@ class PackageManagerService extends IPackageManager.Stub {
}
}
- private InstallArgs createInstallArgs(Uri packageURI, int flags, String pkgName) {
+ private InstallArgs createInstallArgs(Uri packageURI, int flags,
+ String pkgName) {
if (installOnSd(flags)) {
String cid = getNextCodePath(null, pkgName, "/" + SdInstallArgs.RES_FILE_NAME);
return new SdInstallArgs(packageURI, cid);
@@ -5317,6 +5318,7 @@ class PackageManagerService extends IPackageManager.Stub {
SdInstallArgs(String cid) {
super(null, null, PackageManager.INSTALL_EXTERNAL, null);
this.cid = cid;
+ cachePath = PackageHelper.getSdDir(cid);
}
SdInstallArgs(Uri packageURI, String cid) {