summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-07-29 13:57:56 -0700
committerDianne Hackborn <hackbod@google.com>2010-07-29 13:58:32 -0700
commitfb1f103191f1cf424a79aaf1cd67d2d1900138e0 (patch)
tree764b1869ec3a254798133506c7059ac491a19bf0 /services
parenta0ae8bc5c62b12269f20cbebdb0d8614e4e8eb1a (diff)
downloadframeworks_base-fb1f103191f1cf424a79aaf1cd67d2d1900138e0.zip
frameworks_base-fb1f103191f1cf424a79aaf1cd67d2d1900138e0.tar.gz
frameworks_base-fb1f103191f1cf424a79aaf1cd67d2d1900138e0.tar.bz2
Fix a bug where we cleaned an apps external data when upgrading it. :(
Change-Id: I0eee1e7062d334c66d6daa3c43e11a292263aada
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/PackageManagerService.java3
1 files changed, 1 insertions, 2 deletions
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);