Home | History | Annotate | Download | only in MediaProvider
      1 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      2         package="com.android.providers.media"
      3         android:sharedUserId="android.media"
      4         android:sharedUserLabel="@string/uid_label"
      5         android:versionCode="800">
      6         
      7     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
      8     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
      9     <uses-permission android:name="android.permission.WAKE_LOCK" />
     10     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     11     <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
     12     <uses-permission android:name="android.permission.ACCESS_MTP" />
     13     <uses-permission android:name="android.permission.MANAGE_USERS" />
     14     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
     15 
     16     <application android:process="android.process.media"
     17                  android:label="@string/app_label"
     18                  android:allowBackup="false"
     19                  android:supportsRtl="true">
     20         <provider android:name="MediaProvider" android:authorities="media"
     21                 android:multiprocess="false" android:exported="true">
     22             <grant-uri-permission android:pathPrefix="/external/" />
     23             <path-permission
     24                     android:pathPrefix="/external/"
     25                     android:readPermission="android.permission.READ_EXTERNAL_STORAGE"
     26                     android:writePermission="android.permission.WRITE_EXTERNAL_STORAGE" />
     27         </provider>
     28 
     29         <provider
     30             android:name="MediaDocumentsProvider"
     31             android:authorities="com.android.providers.media.documents"
     32             android:grantUriPermissions="true"
     33             android:exported="true"
     34             android:permission="android.permission.MANAGE_DOCUMENTS">
     35             <intent-filter>
     36                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
     37             </intent-filter>
     38         </provider>
     39 
     40         <!-- Handles database upgrades after OTAs, then disables itself -->
     41         <receiver android:name="MediaUpgradeReceiver">
     42             <!-- This broadcast is sent after the core system has finished
     43                  booting, before the home app is launched or BOOT_COMPLETED
     44                  is sent. -->
     45             <intent-filter>
     46                 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
     47             </intent-filter>
     48         </receiver>
     49 
     50         <receiver android:name="MediaScannerReceiver">
     51             <intent-filter>
     52                 <action android:name="android.intent.action.BOOT_COMPLETED" />
     53             </intent-filter>
     54             <intent-filter>
     55                 <action android:name="android.intent.action.MEDIA_MOUNTED" />
     56                 <data android:scheme="file" />
     57             </intent-filter>
     58             <intent-filter>
     59                 <action android:name="android.intent.action.MEDIA_UNMOUNTED" />
     60                 <data android:scheme="file" />
     61             </intent-filter>
     62             <intent-filter>
     63                 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
     64                 <data android:scheme="file" />
     65             </intent-filter>
     66         </receiver>
     67 
     68         <service android:name="MediaScannerService" android:exported="true">
     69             <intent-filter>
     70                 <action android:name="android.media.IMediaScannerService" />
     71             </intent-filter>
     72         </service>
     73 
     74         <receiver android:name=".MtpReceiver">
     75             <intent-filter>
     76                 <action android:name="android.intent.action.BOOT_COMPLETED" />
     77             </intent-filter>
     78             <intent-filter>
     79                 <action android:name="android.hardware.usb.action.USB_STATE" />
     80             </intent-filter>
     81         </receiver>
     82 
     83         <service android:name="MtpService" />
     84 
     85         <activity android:name="RingtonePickerActivity"
     86                 android:theme="@style/PickerDialogTheme"
     87                 android:excludeFromRecents="true">
     88             <intent-filter>
     89                 <action android:name="android.intent.action.RINGTONE_PICKER" />
     90                 <category android:name="android.intent.category.DEFAULT" />
     91             </intent-filter>
     92         </activity>
     93 
     94     </application>
     95 </manifest>
     96