summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steve Howard <showard@google.com> 2010-07-23 14:58:15 -0700
committer Steve Howard <showard@google.com> 2010-07-23 15:16:08 -0700
commita13a02cd0ec6c0584fc2423feb974d77d0945964 (patch)
tree53cbca4dca79f3dbb56d00e3e16aa85e8460b167
parent8cd48574a755bea86243e9f9eabaee341ecf9c60 (diff)
New permission for non-purgeable cache downloads.
This permission allows an app to use the public download manager API to download files to the cache partition that won't be automatically deleted when the download manager needs space. Change-Id: Id9a5cd61c940df22765b358290b8ad8ceeff493e
-rw-r--r--core/java/android/provider/Downloads.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/provider/Downloads.java b/core/java/android/provider/Downloads.java
index 7e1d68590f76..1b37107e1d60 100644
--- a/core/java/android/provider/Downloads.java
+++ b/core/java/android/provider/Downloads.java
@@ -624,6 +624,13 @@ public final class Downloads {
"android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS";
/**
+ * The permission to downloads files to the cache partition that won't be automatically
+ * purged when space is needed.
+ */
+ public static final String PERMISSION_CACHE_NON_PURGEABLE =
+ "android.permission.DOWNLOAD_CACHE_NON_PURGEABLE";
+
+ /**
* The content:// URI for the data table in the provider
*/
public static final Uri CONTENT_URI =