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="900"> 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 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 16 <uses-permission android:name="android.permission.USE_RESERVED_DISK" /> 17 18 <application android:process="android.process.media" 19 android:label="@string/app_label" 20 android:allowBackup="false" 21 android:supportsRtl="true"> 22 <provider android:name="MediaProvider" android:authorities="media" 23 android:multiprocess="false" android:exported="true"> 24 <grant-uri-permission android:pathPrefix="/external/" /> 25 <path-permission 26 android:pathPrefix="/external/" 27 android:readPermission="android.permission.READ_EXTERNAL_STORAGE" 28 android:writePermission="android.permission.WRITE_EXTERNAL_STORAGE" /> 29 </provider> 30 31 <provider 32 android:name="MediaDocumentsProvider" 33 android:label="@string/storage_description" 34 android:authorities="com.android.providers.media.documents" 35 android:grantUriPermissions="true" 36 android:exported="true" 37 android:permission="android.permission.MANAGE_DOCUMENTS"> 38 <intent-filter> 39 <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> 40 </intent-filter> 41 </provider> 42 43 <!-- Handles database upgrades after OTAs, then disables itself --> 44 <receiver android:name="MediaUpgradeReceiver"> 45 <!-- This broadcast is sent after the core system has finished 46 booting, before the home app is launched or BOOT_COMPLETED 47 is sent. --> 48 <intent-filter> 49 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/> 50 </intent-filter> 51 </receiver> 52 53 <receiver android:name="MediaScannerReceiver"> 54 <intent-filter> 55 <action android:name="android.intent.action.BOOT_COMPLETED" /> 56 <action android:name="android.intent.action.LOCALE_CHANGED" /> 57 </intent-filter> 58 <intent-filter> 59 <action android:name="android.intent.action.MEDIA_MOUNTED" /> 60 <data android:scheme="file" /> 61 </intent-filter> 62 <intent-filter> 63 <action android:name="android.intent.action.MEDIA_UNMOUNTED" /> 64 <data android:scheme="file" /> 65 </intent-filter> 66 <intent-filter> 67 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" /> 68 <data android:scheme="file" /> 69 </intent-filter> 70 </receiver> 71 72 <service android:name="MediaScannerService" android:exported="true"> 73 <intent-filter> 74 <action android:name="android.media.IMediaScannerService" /> 75 </intent-filter> 76 </service> 77 78 <receiver android:name=".MtpReceiver"> 79 <intent-filter> 80 <action android:name="android.intent.action.BOOT_COMPLETED" /> 81 </intent-filter> 82 <intent-filter> 83 <action android:name="android.hardware.usb.action.USB_STATE" /> 84 </intent-filter> 85 </receiver> 86 87 <service android:name="MtpService" /> 88 89 <activity android:name="RingtonePickerActivity" 90 android:theme="@style/PickerDialogTheme" 91 android:enabled="@*android:bool/config_defaultRingtonePickerEnabled" 92 android:excludeFromRecents="true"> 93 <intent-filter> 94 <action android:name="android.intent.action.RINGTONE_PICKER" /> 95 <category android:name="android.intent.category.DEFAULT" /> 96 </intent-filter> 97 </activity> 98 99 </application> 100 </manifest> 101