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

Commit 803bb14c authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android-build SharedAccount
Browse files

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

Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada
parent f1f07993
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -6222,11 +6222,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);