diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-04-24 15:03:47 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-04-24 15:05:33 -0700 |
commit | 15ea8d69f74735e2013cc11bc4899e0edc945b8a (patch) | |
tree | 79f4f7939966e9ce9d06edb0a981775bacdb1d5a /src/com/android/providers/downloads/Constants.java | |
parent | 2f5fe598e53fc7bb3e8d6e1848ab62953866fb11 (diff) | |
download | android_packages_providers_DownloadProvider-15ea8d69f74735e2013cc11bc4899e0edc945b8a.tar.gz android_packages_providers_DownloadProvider-15ea8d69f74735e2013cc11bc4899e0edc945b8a.tar.bz2 android_packages_providers_DownloadProvider-15ea8d69f74735e2013cc11bc4899e0edc945b8a.zip |
Only delete spurious files belonging to us.
When multiple users are active, this can accidentally delete files
belonging to other users. Checking owner also helps us avoid
deleting recover and lost+found.
Bug: 6362988
Change-Id: Ifc165acc9a9b3ab253a4b6257f370836b98b3a74
Diffstat (limited to 'src/com/android/providers/downloads/Constants.java')
-rw-r--r-- | src/com/android/providers/downloads/Constants.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/com/android/providers/downloads/Constants.java b/src/com/android/providers/downloads/Constants.java index 27e2179e..8481435f 100644 --- a/src/com/android/providers/downloads/Constants.java +++ b/src/com/android/providers/downloads/Constants.java @@ -85,9 +85,6 @@ public class Constants { public static final String DEFAULT_DL_SUBDIR = "/" + Environment.DIRECTORY_DOWNLOADS; /** A magic filename that is allowed to exist within the system cache */ - public static final String KNOWN_SPURIOUS_FILENAME = "lost+found"; - - /** A magic filename that is allowed to exist within the system cache */ public static final String RECOVERY_DIRECTORY = "recovery"; /** The default user agent used for downloads */ |