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