diff options
author | Steve Howard <showard@google.com> | 2010-07-20 16:32:31 -0700 |
---|---|---|
committer | Steve Howard <showard@google.com> | 2010-07-23 15:14:45 -0700 |
commit | 71aab521efba9b28779541440c797220ec98ac97 (patch) | |
tree | 592cfe9a02dddf9e862934146536623050724355 /AndroidManifest.xml | |
parent | b06b739b078ce4b00600487cfec31659647bf31f (diff) | |
download | android_packages_providers_DownloadProvider-71aab521efba9b28779541440c797220ec98ac97.tar.gz android_packages_providers_DownloadProvider-71aab521efba9b28779541440c797220ec98ac97.tar.bz2 android_packages_providers_DownloadProvider-71aab521efba9b28779541440c797220ec98ac97.zip |
Support for non-purgeable downloads through the public API.
This change adds a permission,
android.permission.DOWNLOAD_CACHE_NON_PURGEABLE. When an app has this
permission, any downloads it requests through the public API to the
download cache will automatically become non-purgeable, i.e. they'll
never be automatically deleted by the download manager to free up
space. This is intended for use only by the system updater.
Change-Id: I35cdd44f7e5d46bc70443d1a9743f61a51395ddb
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 20fe6ca6..d6c85d34 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -21,6 +21,12 @@ android:description="@string/permdesc_downloadCompletedIntent" android:protectionLevel="signature" /> + <!-- Allows to download non-purgeable files to the cache partition through the public API --> + <permission android:name="android.permission.DOWNLOAD_CACHE_NON_PURGEABLE" + android:label="@string/permlab_downloadCacheNonPurgeable" + android:description="@string/permdesc_downloadCacheNonPurgeable" + android:protectionLevel="dangerous"/> + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" /> <uses-permission android:name="android.permission.ACCESS_DRM" /> |