The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | package="com.android.providers.downloads" |
| 4 | android:sharedUserId="android.media"> |
Tom Taylor | c4a51bb | 2009-08-11 10:28:10 -0700 | [diff] [blame] | 5 | |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 6 | <!-- Allows access to the Download Manager --> |
| 7 | <permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" |
| 8 | android:label="@string/permlab_downloadManager" |
| 9 | android:description="@string/permdesc_downloadManager" |
| 10 | android:protectionLevel="signatureOrSystem" /> |
| 11 | |
| 12 | <!-- Allows advanced access to the Download Manager --> |
| 13 | <permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED" |
| 14 | android:label="@string/permlab_downloadManagerAdvanced" |
| 15 | android:description="@string/permdesc_downloadManagerAdvanced" |
| 16 | android:protectionLevel="signatureOrSystem" /> |
| 17 | |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 18 | <!-- Allows to send download completed intents --> |
| 19 | <permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" |
| 20 | android:label="@string/permlab_downloadCompletedIntent" |
| 21 | android:description="@string/permdesc_downloadCompletedIntent" |
| 22 | android:protectionLevel="signature" /> |
| 23 | |
Steve Howard | 71aab52 | 2010-07-20 16:32:31 -0700 | [diff] [blame] | 24 | <!-- Allows to download non-purgeable files to the cache partition through the public API --> |
| 25 | <permission android:name="android.permission.DOWNLOAD_CACHE_NON_PURGEABLE" |
| 26 | android:label="@string/permlab_downloadCacheNonPurgeable" |
| 27 | android:description="@string/permdesc_downloadCacheNonPurgeable" |
Steve Howard | 9da9df3 | 2010-07-28 17:51:02 -0700 | [diff] [blame] | 28 | android:protectionLevel="signatureOrSystem"/> |
| 29 | |
| 30 | <!-- Allows to queue downloads without a notification shown while the download runs. --> |
| 31 | <permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" |
Steve Howard | ece96c7 | 2010-09-21 13:53:45 -0700 | [diff] [blame] | 32 | android:permissionGroup="android.permission-group.NETWORK" |
Steve Howard | 9da9df3 | 2010-07-28 17:51:02 -0700 | [diff] [blame] | 33 | android:label="@string/permlab_downloadWithoutNotification" |
| 34 | android:description="@string/permdesc_downloadWithoutNotification" |
Steve Howard | ece96c7 | 2010-09-21 13:53:45 -0700 | [diff] [blame] | 35 | android:protectionLevel="normal"/> |
Steve Howard | 71aab52 | 2010-07-20 16:32:31 -0700 | [diff] [blame] | 36 | |
Steve Howard | 3d55d82 | 2010-09-12 18:53:31 -0700 | [diff] [blame] | 37 | <!-- Allows an app to access all downloads in the system via the /all_downloads/ URIs. The |
| 38 | protection level could be relaxed in the future to support third-party download |
| 39 | managers. --> |
| 40 | <permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" |
| 41 | android:label="@string/permlab_accessAllDownloads" |
| 42 | android:description="@string/permdesc_accessAllDownloads" |
| 43 | android:protectionLevel="signature"/> |
| 44 | |
Patrick Baumann | dbf208e | 2019-11-19 10:29:40 -0800 | [diff] [blame] | 45 | <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 46 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| 47 | <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" /> |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 48 | <uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" /> |
| 49 | <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" /> |
| 50 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 51 | <uses-permission android:name="android.permission.INTERNET" /> |
San Mehat | 8a8f58e | 2009-06-01 09:26:42 -0700 | [diff] [blame] | 52 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
Steve Howard | 3d55d82 | 2010-09-12 18:53:31 -0700 | [diff] [blame] | 53 | <uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" /> |
Jeff Sharkey | 3fb34dc | 2011-04-22 13:36:59 -0700 | [diff] [blame] | 54 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" /> |
Jeff Sharkey | 9610243 | 2011-06-15 11:18:46 -0700 | [diff] [blame] | 55 | <!-- TODO: replace with READ_NETWORK_POLICY permission when it exists --> |
| 56 | <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" /> |
Jeff Sharkey | dffbb9c | 2014-01-30 15:01:39 -0800 | [diff] [blame] | 57 | <uses-permission android:name="android.permission.CLEAR_APP_CACHE" /> |
Fred Quintana | a7fa30f | 2014-02-05 16:55:03 -0800 | [diff] [blame] | 58 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
Jeff Sharkey | ed30dea | 2015-07-13 10:25:58 -0700 | [diff] [blame] | 59 | <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /> |
Michal Karpinski | 45bab8a | 2019-06-18 15:36:17 +0100 | [diff] [blame] | 60 | <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/> |
Martijn Coenen | a834386 | 2020-01-23 11:10:02 +0100 | [diff] [blame] | 61 | <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" /> |
Zim | 027c779 | 2020-01-24 15:31:32 +0000 | [diff] [blame] | 62 | <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /> |
paulhu | 8c7288d | 2020-09-07 19:02:31 +0800 | [diff] [blame] | 63 | <uses-permission android:name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/> |
Steve Elliott | c4cbca0 | 2021-12-03 16:37:28 -0500 | [diff] [blame] | 64 | <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 65 | |
| 66 | <application android:process="android.process.media" |
Jeff Sharkey | 6a09c32 | 2013-08-07 18:33:57 -0700 | [diff] [blame] | 67 | android:label="@string/app_label" |
Nick Kralevich | a23abfe | 2014-01-03 13:38:42 -0800 | [diff] [blame] | 68 | android:icon="@mipmap/ic_launcher_download" |
Alex Klyubin | a9023bf | 2015-04-14 13:59:59 -0700 | [diff] [blame] | 69 | android:allowBackup="false" |
Julia Reynolds | 346190f | 2015-08-27 14:57:32 -0400 | [diff] [blame] | 70 | android:supportsRtl="true" |
Patrick Baumann | df173a0 | 2020-02-10 09:39:59 -0800 | [diff] [blame] | 71 | android:forceQueryable="true" |
Alex Klyubin | a9023bf | 2015-04-14 13:59:59 -0700 | [diff] [blame] | 72 | android:usesCleartextTraffic="true"> |
Jeff Sharkey | e336af4 | 2013-04-11 11:08:10 -0700 | [diff] [blame] | 73 | |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 74 | <provider android:name=".DownloadProvider" |
Nick Kralevich | 6c26e6e | 2012-07-28 15:29:30 -0700 | [diff] [blame] | 75 | android:authorities="downloads" android:exported="true"> |
Steve Howard | 3d55d82 | 2010-09-12 18:53:31 -0700 | [diff] [blame] | 76 | <!-- Anyone can access /my_downloads, the provider internally restricts access by UID for |
| 77 | these URIs --> |
| 78 | <path-permission android:pathPrefix="/my_downloads" |
| 79 | android:permission="android.permission.INTERNET"/> |
Vasu Nori | 0472687 | 2010-11-16 14:35:31 -0800 | [diff] [blame] | 80 | <!-- to access /all_downloads, ACCESS_ALL_DOWNLOADS permission is required --> |
| 81 | <path-permission android:pathPrefix="/all_downloads" |
| 82 | android:permission="android.permission.ACCESS_ALL_DOWNLOADS"/> |
Steve Howard | 4bebe75 | 2010-09-17 16:55:25 -0700 | [diff] [blame] | 83 | <!-- Temporary, for backwards compatibility --> |
| 84 | <path-permission android:pathPrefix="/download" |
| 85 | android:permission="android.permission.INTERNET"/> |
Steve Howard | 3d55d82 | 2010-09-12 18:53:31 -0700 | [diff] [blame] | 86 | <!-- Apps with access to /all_downloads/... can grant permissions, allowing them to share |
| 87 | downloaded files with other viewers --> |
| 88 | <grant-uri-permission android:pathPrefix="/all_downloads/"/> |
Jeff Sharkey | afad579 | 2012-10-26 17:28:34 -0700 | [diff] [blame] | 89 | <!-- Apps with access to /my_downloads/... can grant permissions, allowing them to share |
| 90 | downloaded files with other viewers --> |
| 91 | <grant-uri-permission android:pathPrefix="/my_downloads/"/> |
Steve Howard | 3d55d82 | 2010-09-12 18:53:31 -0700 | [diff] [blame] | 92 | </provider> |
Jeff Sharkey | 6a09c32 | 2013-08-07 18:33:57 -0700 | [diff] [blame] | 93 | |
| 94 | <provider |
| 95 | android:name=".DownloadStorageProvider" |
Ben Lin | b5a45fb | 2017-03-17 11:08:33 -0700 | [diff] [blame] | 96 | android:label="@string/storage_description" |
Jeff Sharkey | af760c0 | 2013-08-17 15:23:34 -0700 | [diff] [blame] | 97 | android:authorities="com.android.providers.downloads.documents" |
Jeff Sharkey | 6a09c32 | 2013-08-07 18:33:57 -0700 | [diff] [blame] | 98 | android:grantUriPermissions="true" |
| 99 | android:exported="true" |
| 100 | android:permission="android.permission.MANAGE_DOCUMENTS"> |
Jeff Sharkey | d3e8c8b | 2013-10-09 13:57:41 -0700 | [diff] [blame] | 101 | <intent-filter> |
| 102 | <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> |
| 103 | </intent-filter> |
Jeff Sharkey | 6a09c32 | 2013-08-07 18:33:57 -0700 | [diff] [blame] | 104 | </provider> |
| 105 | |
Jeff Sharkey | 1f2c2c5 | 2014-02-06 15:19:01 -0800 | [diff] [blame] | 106 | <service |
Jeff Sharkey | 3a5f5ea | 2016-04-20 23:23:09 -0600 | [diff] [blame] | 107 | android:name=".DownloadJobService" |
| 108 | android:exported="true" |
| 109 | android:permission="android.permission.BIND_JOB_SERVICE" /> |
Jeff Sharkey | 1f2c2c5 | 2014-02-06 15:19:01 -0800 | [diff] [blame] | 110 | |
| 111 | <service |
Jeff Sharkey | 3a5f5ea | 2016-04-20 23:23:09 -0600 | [diff] [blame] | 112 | android:name=".DownloadIdleService" |
Christopher Tate | be3aa64 | 2014-06-16 17:13:09 -0700 | [diff] [blame] | 113 | android:exported="true" |
Jeff Sharkey | 3a5f5ea | 2016-04-20 23:23:09 -0600 | [diff] [blame] | 114 | android:permission="android.permission.BIND_JOB_SERVICE" /> |
Jeff Sharkey | 1f2c2c5 | 2014-02-06 15:19:01 -0800 | [diff] [blame] | 115 | |
Sudheer Shanka | c2b0739 | 2019-08-06 18:51:48 -0700 | [diff] [blame] | 116 | <service |
| 117 | android:name=".MediaScanTriggerJob" |
| 118 | android:exported="true" |
| 119 | android:permission="android.permission.BIND_JOB_SERVICE" /> |
| 120 | |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 121 | <receiver android:name=".DownloadReceiver" android:exported="false"> |
| 122 | <intent-filter> |
| 123 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
Jeff Sharkey | 1f2c2c5 | 2014-02-06 15:19:01 -0800 | [diff] [blame] | 124 | <action android:name="android.intent.action.UID_REMOVED" /> |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 125 | </intent-filter> |
Vasu Nori | 789745f | 2011-02-08 17:16:41 -0800 | [diff] [blame] | 126 | <intent-filter> |
| 127 | <action android:name="android.intent.action.MEDIA_MOUNTED" /> |
| 128 | <data android:scheme="file" /> |
| 129 | </intent-filter> |
The Android Open Source Project | 2dd83ce | 2009-03-03 19:32:40 -0800 | [diff] [blame] | 130 | </receiver> |
| 131 | </application> |
Tom Taylor | c4a51bb | 2009-08-11 10:28:10 -0700 | [diff] [blame] | 132 | </manifest> |