am 2735795f: Merge "If freeCache deletes APK, give out of space error" into jb-mr1.1-dev
* commit '2735795f5aa906fbfd885dbacee1de0b41b80bf0': If freeCache deletes APK, give out of space error
This commit is contained in:
@@ -6353,6 +6353,18 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
pkgLite = mContainerService.getMinimalPackageInfo(packageFilePath,
|
||||
flags, lowThreshold);
|
||||
}
|
||||
/*
|
||||
* The cache free must have deleted the file we
|
||||
* downloaded to install.
|
||||
*
|
||||
* TODO: fix the "freeCache" call to not delete
|
||||
* the file we care about.
|
||||
*/
|
||||
if (pkgLite.recommendedInstallLocation
|
||||
== PackageHelper.RECOMMEND_FAILED_INVALID_URI) {
|
||||
pkgLite.recommendedInstallLocation
|
||||
= PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE;
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user