summaryrefslogtreecommitdiffstats
path: root/packages/DefaultContainerService
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-01-18 13:04:40 -0800
committerKenny Root <kroot@google.com>2011-01-18 13:55:42 -0800
commit300c13a48132f03d48462b9cd3ec41331a71a411 (patch)
treeb784943ca9d8e6988d9e0db62da448b8e9d10441 /packages/DefaultContainerService
parent26c1ab2e58f47ac94e638f69b9b626cc6b1925b6 (diff)
downloadframeworks_base-300c13a48132f03d48462b9cd3ec41331a71a411.zip
frameworks_base-300c13a48132f03d48462b9cd3ec41331a71a411.tar.gz
frameworks_base-300c13a48132f03d48462b9cd3ec41331a71a411.tar.bz2
Erase OBB files when removing packages
OBB files on USB storage or SD card should be removed when an application is removed. Bug: 3356804 Change-Id: Ifbbf043368b125fcd47fd74e5cd2e5167a8deb00
Diffstat (limited to 'packages/DefaultContainerService')
-rw-r--r--packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
index 2ec2226..21f77e3 100644
--- a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
+++ b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
@@ -190,6 +190,7 @@ public class DefaultContainerService extends IntentService {
while ((pkg=pm.nextPackageToClean(pkg)) != null) {
eraseFiles(Environment.getExternalStorageAppDataDirectory(pkg));
eraseFiles(Environment.getExternalStorageAppMediaDirectory(pkg));
+ eraseFiles(Environment.getExternalStorageAppObbDirectory(pkg));
}
} catch (RemoteException e) {
}