From fb1f103191f1cf424a79aaf1cd67d2d1900138e0 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 29 Jul 2010 13:57:56 -0700 Subject: Fix a bug where we cleaned an apps external data when upgrading it. :( Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada --- services/java/com/android/server/PackageManagerService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'services') diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java index 1a4b59f..b29c6e6 100644 --- a/services/java/com/android/server/PackageManagerService.java +++ b/services/java/com/android/server/PackageManagerService.java @@ -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); -- cgit v1.1