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

Commit 2735795f authored by Kenny Root's avatar Kenny Root Committed by Android (Google) Code Review
Browse files

Merge "If freeCache deletes APK, give out of space error" into jb-mr1.1-dev

parents eaae7d97 3f96d0e1
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 {