diff options
author | Jeff Sharkey <jsharkey@android.com> | 2014-02-06 15:19:01 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2014-02-06 15:46:29 -0800 |
commit | 1f2c2c560400ba60c5b9dfd6fd4f5e73b232803a (patch) | |
tree | a6bc6e85c8fa25e7e266ce0d30f5d6a29c814817 /AndroidManifest.xml | |
parent | dffbb9c4567e9d29d19964a83129e38dceab7055 (diff) | |
download | android_packages_providers_DownloadProvider-1f2c2c560400ba60c5b9dfd6fd4f5e73b232803a.tar.gz android_packages_providers_DownloadProvider-1f2c2c560400ba60c5b9dfd6fd4f5e73b232803a.tar.bz2 android_packages_providers_DownloadProvider-1f2c2c560400ba60c5b9dfd6fd4f5e73b232803a.zip |
Add idle service to clean orphan downloads.
Periodically reconcile database against disk contents. This handles
the case where a user/app deletes files directly from disk without
updating the database, and the rare case where a database delete
didn't make it to deleting the underlying file.
Also cleans up any downloads belonging to a UID when removed.
Bug: 12924143
Change-Id: I4899d09df7ef71f2625491ac01ceeafa8a2013ce
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 423538ae..9ea1dc32 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -92,12 +92,23 @@ </intent-filter> </provider> - <service android:name=".DownloadService" - android:permission="android.permission.ACCESS_DOWNLOAD_MANAGER" /> + <service + android:name=".DownloadService" + android:permission="android.permission.ACCESS_DOWNLOAD_MANAGER" /> + + <service + android:name="com.android.providers.downloads.DownloadIdleService" + android:permission="android.permission.BIND_IDLE_SERVICE"> + <intent-filter> + <action android:name="android.service.idle.IdleService" /> + </intent-filter> + </service> + <receiver android:name=".DownloadReceiver" android:exported="false"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> + <action android:name="android.intent.action.UID_REMOVED" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.MEDIA_MOUNTED" /> |