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="511"> 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:supportsRtl="true"> 19 <provider android:name="MediaProvider" android:authorities="media" 20 android:multiprocess="false" android:exported="true"> 21 <grant-uri-permission android:pathPrefix="/external/" /> 22 <path-permission 23 android:pathPrefix="/external/" 24 android:readPermission="android.permission.READ_EXTERNAL_STORAGE" 25 android:writePermission="android.permission.WRITE_EXTERNAL_STORAGE" /> 26 </provider> 27 28 <!-- Handles database upgrades after OTAs, then disables itself --> 29 <receiver android:name="MediaUpgradeReceiver"> 30 <!-- This broadcast is sent after the core system has finished 31 booting, before the home app is launched or BOOT_COMPLETED 32 is sent. --> 33 <intent-filter> 34 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/> 35 </intent-filter> 36 </receiver> 37 38 <receiver android:name="MediaScannerReceiver"> 39 <intent-filter> 40 <action android:name="android.intent.action.BOOT_COMPLETED" /> 41 </intent-filter> 42 <intent-filter> 43 <action android:name="android.intent.action.MEDIA_MOUNTED" /> 44 <data android:scheme="file" /> 45 </intent-filter> 46 <intent-filter> 47 <action android:name="android.intent.action.MEDIA_UNMOUNTED" /> 48 <data android:scheme="file" /> 49 </intent-filter> 50 <intent-filter> 51 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" /> 52 <data android:scheme="file" /> 53 </intent-filter> 54 </receiver> 55 56 <service android:name="MediaScannerService" android:exported="true"> 57 <intent-filter> 58 <action android:name="android.media.IMediaScannerService" /> 59 </intent-filter> 60 </service> 61 62 <receiver android:name=".MtpReceiver"> 63 <intent-filter> 64 <action android:name="android.intent.action.BOOT_COMPLETED" /> 65 </intent-filter> 66 <intent-filter> 67 <action android:name="android.hardware.usb.action.USB_STATE" /> 68 </intent-filter> 69 </receiver> 70 71 <service android:name="MtpService" /> 72 73 <activity android:name="RingtonePickerActivity" 74 android:theme="@*android:style/Theme.Holo.Dialog.Alert" 75 android:excludeFromRecents="true"> 76 <intent-filter> 77 <action android:name="android.intent.action.RINGTONE_PICKER" /> 78 <category android:name="android.intent.category.DEFAULT" /> 79 </intent-filter> 80 </activity> 81 82 </application> 83 </manifest> 84