Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c312368 authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am 8f276515: am ae5cc868: am 2735795f: Merge "If freeCache deletes APK, give...

am 8f276515: am ae5cc868: am 2735795f: Merge "If freeCache deletes APK, give out of space error" into jb-mr1.1-dev

* commit '8f276515':
  If freeCache deletes APK, give out of space error
parents ace7404d 8f276515
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 {