am 9a212adc: 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.
Merge commit '9a212adcffbc4b32d51f512889b33ba584647aa9' into froyo-plus-aosp * commit '9a212adcffbc4b32d51f512889b33ba584647aa9': Fix 2641875
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user