Expose permission to download without notification.
[android/platform/packages/providers/DownloadProvider.git] / AndroidManifest.xml
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">
5
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
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
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"
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"
32         android:permissionGroup="android.permission-group.NETWORK"
33         android:label="@string/permlab_downloadWithoutNotification"
34         android:description="@string/permdesc_downloadWithoutNotification"
35         android:protectionLevel="normal"/>
36
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
45     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
46     <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" />
47     <uses-permission android:name="android.permission.ACCESS_DRM" />
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" />
52     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
53     <uses-permission android:name="android.permission.INSTALL_DRM" />
54     <uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" />
55
56     <application android:process="android.process.media"
57                  android:label="@string/app_label">
58         <provider android:name=".DownloadProvider"
59                   android:authorities="downloads"
60                   android:permission="android.permission.ACCESS_ALL_DOWNLOADS">
61           <!-- Anyone can access /my_downloads, the provider internally restricts access by UID for
62                these URIs -->
63           <path-permission android:pathPrefix="/my_downloads"
64                            android:permission="android.permission.INTERNET"/>
65           <!-- Temporary, for backwards compatibility -->
66           <path-permission android:pathPrefix="/download"
67                            android:permission="android.permission.INTERNET"/>
68           <!-- Apps with access to /all_downloads/... can grant permissions, allowing them to share
69                downloaded files with other viewers -->
70           <grant-uri-permission android:pathPrefix="/all_downloads/"/>
71         </provider>
72         <service android:name=".DownloadService"
73                 android:permission="android.permission.ACCESS_DOWNLOAD_MANAGER" />
74         <receiver android:name=".DownloadReceiver" android:exported="false">
75             <intent-filter>
76                 <action android:name="android.intent.action.BOOT_COMPLETED" />
77                 <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
78             </intent-filter>
79         </receiver>
80
81         <activity android:name=".SizeLimitActivity"
82                   android:launchMode="singleTask" />
83     </application>
84 </manifest>