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

Commit 31b5d548 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug where we cleaned an apps external data when upgrading it. :(" into gingerbread

parents 571180c4 fb1f1031
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -6282,11 +6282,10 @@ class PackageManagerService extends IPackageManager.Stub {
                File dataDir = new File(pkg.applicationInfo.dataDir);
                dataDir.delete();
            }
            schedulePackageCleaning(packageName);
        }
        synchronized (mPackages) {
            if (deletedPs != null) {
                schedulePackageCleaning(packageName);
                
                if ((flags&PackageManager.DONT_DELETE_DATA) == 0) {
                    if (outInfo != null) {
                        outInfo.removedUid = mSettings.removePackageLP(packageName);