Initial Contribution
[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 access to the Download Manager data (for UI purposes) -->
13     <permission android:name="android.permission.ACCESS_DOWNLOAD_DATA"
14         android:label="@string/permlab_downloadData"
15         android:description="@string/permdesc_downloadData"
16         android:protectionLevel="signature" />
17
18     <!-- Allows filesystem access to /cache -->
19     <permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM"
20         android:label="@string/permlab_cacheFilesystem"
21         android:description="@string/permdesc_cacheFilesystem"
22         android:protectionLevel="signature" />
23
24     <!-- Allow to download to /cache/update.install -->
25     <permission android:name="android.permission.DOWNLOAD_OTA_UPDATE"
26         android:label="@string/permlab_downloadOtaUpdate"
27         android:description="@string/permdesc_downloadOtaUpdate"
28         android:protectionLevel="signature" />
29
30     <!-- Allows to send download completed intents -->
31     <permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS"
32         android:label="@string/permlab_downloadCompletedIntent"
33         android:description="@string/permdesc_downloadCompletedIntent"
34         android:protectionLevel="signature" />
35
36     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
37     <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER" />
38     <uses-permission android:name="android.permission.ACCESS_DRM" />
39     <uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
40     <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" />
41     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
42
43     <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_DATA" />
44     <application android:process="android.process.media"
45                  android:label="Download Manager">
46         <provider android:name=".DownloadProvider"
47                 android:authorities="downloads"
48                 android:permission="android.permission.ACCESS_DOWNLOAD_MANAGER" />
49         <service android:name=".DownloadService"
50                 android:permission="android.permission.ACCESS_DOWNLOAD_MANAGER" />
51         <receiver android:name=".DownloadReceiver" android:exported="false">
52             <intent-filter>
53                 <action android:name="android.intent.action.BOOT_COMPLETED" />
54                 <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
55             </intent-filter>
56         </receiver>
57     </application>
58 </manifest>