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

Commit 8f276515 authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am ae5cc868: am 2735795f: Merge "If freeCache deletes APK, give out of space...

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

* commit 'ae5cc868':
  If freeCache deletes APK, give out of space error
parents d7337fb9 ae5cc868
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 {