blob: 43cf258edf1ff16e4ccb440848431adb5383ecb5 [file] [log] [blame]
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -08001<?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 Taylorc4a51bb2009-08-11 10:28:10 -07005
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -08006 <!-- 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 Project2dd83ce2009-03-03 19:32:40 -080018 <!-- 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 Howard71aab522010-07-20 16:32:31 -070024 <!-- 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 Howard9da9df32010-07-28 17:51:02 -070028 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 Howardece96c72010-09-21 13:53:45 -070032 android:permissionGroup="android.permission-group.NETWORK"
Steve Howard9da9df32010-07-28 17:51:02 -070033 android:label="@string/permlab_downloadWithoutNotification"
34 android:description="@string/permdesc_downloadWithoutNotification"
Steve Howardece96c72010-09-21 13:53:45 -070035 android:protectionLevel="normal"/>
Steve Howard71aab522010-07-20 16:32:31 -070036
Steve Howard3d55d822010-09-12 18:53:31 -070037 <!-- 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 Baumanndbf208e2019-11-19 10:29:40 -080045 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -080046 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
47 <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" />
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -080048 <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 Mehat8a8f58e2009-06-01 09:26:42 -070052 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Steve Howard3d55d822010-09-12 18:53:31 -070053 <uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" />
Jeff Sharkey3fb34dc2011-04-22 13:36:59 -070054 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
Jeff Sharkey96102432011-06-15 11:18:46 -070055 <!-- TODO: replace with READ_NETWORK_POLICY permission when it exists -->
56 <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
Jeff Sharkeydffbb9c2014-01-30 15:01:39 -080057 <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
Fred Quintanaa7fa30f2014-02-05 16:55:03 -080058 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkeyed30dea2015-07-13 10:25:58 -070059 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Michal Karpinski45bab8a2019-06-18 15:36:17 +010060 <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
Martijn Coenena8343862020-01-23 11:10:02 +010061 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Zim027c7792020-01-24 15:31:32 +000062 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
paulhu8c7288d2020-09-07 19:02:31 +080063 <uses-permission android:name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -080064
65 <application android:process="android.process.media"
Jeff Sharkey6a09c322013-08-07 18:33:57 -070066 android:label="@string/app_label"
Nick Kralevicha23abfe2014-01-03 13:38:42 -080067 android:icon="@mipmap/ic_launcher_download"
Alex Klyubina9023bf2015-04-14 13:59:59 -070068 android:allowBackup="false"
Julia Reynolds346190f2015-08-27 14:57:32 -040069 android:supportsRtl="true"
Patrick Baumanndf173a02020-02-10 09:39:59 -080070 android:forceQueryable="true"
Alex Klyubina9023bf2015-04-14 13:59:59 -070071 android:usesCleartextTraffic="true">
Jeff Sharkeye336af42013-04-11 11:08:10 -070072
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -080073 <provider android:name=".DownloadProvider"
Nick Kralevich6c26e6e2012-07-28 15:29:30 -070074 android:authorities="downloads" android:exported="true">
Steve Howard3d55d822010-09-12 18:53:31 -070075 <!-- Anyone can access /my_downloads, the provider internally restricts access by UID for
76 these URIs -->
77 <path-permission android:pathPrefix="/my_downloads"
78 android:permission="android.permission.INTERNET"/>
Vasu Nori04726872010-11-16 14:35:31 -080079 <!-- to access /all_downloads, ACCESS_ALL_DOWNLOADS permission is required -->
80 <path-permission android:pathPrefix="/all_downloads"
81 android:permission="android.permission.ACCESS_ALL_DOWNLOADS"/>
Steve Howard4bebe752010-09-17 16:55:25 -070082 <!-- Temporary, for backwards compatibility -->
83 <path-permission android:pathPrefix="/download"
84 android:permission="android.permission.INTERNET"/>
Steve Howard3d55d822010-09-12 18:53:31 -070085 <!-- Apps with access to /all_downloads/... can grant permissions, allowing them to share
86 downloaded files with other viewers -->
87 <grant-uri-permission android:pathPrefix="/all_downloads/"/>
Jeff Sharkeyafad5792012-10-26 17:28:34 -070088 <!-- Apps with access to /my_downloads/... can grant permissions, allowing them to share
89 downloaded files with other viewers -->
90 <grant-uri-permission android:pathPrefix="/my_downloads/"/>
Steve Howard3d55d822010-09-12 18:53:31 -070091 </provider>
Jeff Sharkey6a09c322013-08-07 18:33:57 -070092
93 <provider
94 android:name=".DownloadStorageProvider"
Ben Linb5a45fb2017-03-17 11:08:33 -070095 android:label="@string/storage_description"
Jeff Sharkeyaf760c02013-08-17 15:23:34 -070096 android:authorities="com.android.providers.downloads.documents"
Jeff Sharkey6a09c322013-08-07 18:33:57 -070097 android:grantUriPermissions="true"
98 android:exported="true"
99 android:permission="android.permission.MANAGE_DOCUMENTS">
Jeff Sharkeyd3e8c8b2013-10-09 13:57:41 -0700100 <intent-filter>
101 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
102 </intent-filter>
Jeff Sharkey6a09c322013-08-07 18:33:57 -0700103 </provider>
104
Jeff Sharkey1f2c2c52014-02-06 15:19:01 -0800105 <service
Jeff Sharkey3a5f5ea2016-04-20 23:23:09 -0600106 android:name=".DownloadJobService"
107 android:exported="true"
108 android:permission="android.permission.BIND_JOB_SERVICE" />
Jeff Sharkey1f2c2c52014-02-06 15:19:01 -0800109
110 <service
Jeff Sharkey3a5f5ea2016-04-20 23:23:09 -0600111 android:name=".DownloadIdleService"
Christopher Tatebe3aa642014-06-16 17:13:09 -0700112 android:exported="true"
Jeff Sharkey3a5f5ea2016-04-20 23:23:09 -0600113 android:permission="android.permission.BIND_JOB_SERVICE" />
Jeff Sharkey1f2c2c52014-02-06 15:19:01 -0800114
Sudheer Shankac2b07392019-08-06 18:51:48 -0700115 <service
116 android:name=".MediaScanTriggerJob"
117 android:exported="true"
118 android:permission="android.permission.BIND_JOB_SERVICE" />
119
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -0800120 <receiver android:name=".DownloadReceiver" android:exported="false">
121 <intent-filter>
122 <action android:name="android.intent.action.BOOT_COMPLETED" />
Jeff Sharkey1f2c2c52014-02-06 15:19:01 -0800123 <action android:name="android.intent.action.UID_REMOVED" />
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -0800124 </intent-filter>
Vasu Nori789745f2011-02-08 17:16:41 -0800125 <intent-filter>
126 <action android:name="android.intent.action.MEDIA_MOUNTED" />
127 <data android:scheme="file" />
128 </intent-filter>
The Android Open Source Project2dd83ce2009-03-03 19:32:40 -0800129 </receiver>
130 </application>
Tom Taylorc4a51bb2009-08-11 10:28:10 -0700131</manifest>