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="1023"> 6 7 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 8 <uses-permission android:name="android.permission.RECEIVE_DEVICE_CUSTOMIZATION_READY" /> 9 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 10 <uses-permission android:name="android.permission.WAKE_LOCK" /> 11 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 12 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" /> 13 <uses-permission android:name="android.permission.ACCESS_MTP" /> 14 <uses-permission android:name="android.permission.MANAGE_USERS" /> 15 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 16 <uses-permission android:name="android.permission.USE_RESERVED_DISK" /> 17 <uses-permission android:name="android.permission.WATCH_APPOPS" /> 18 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" /> 19 20 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 21 22 <application 23 android:process="android.process.media" 24 android:label="@string/app_label" 25 android:allowBackup="false" 26 android:supportsRtl="true" 27 android:usesCleartextTraffic="true"> 28 <provider 29 android:name=".MediaProvider" 30 android:authorities="media" 31 android:grantUriPermissions="true" 32 android:forceUriPermissions="true" 33 android:exported="true" /> 34 35 <provider 36 android:name=".MediaDocumentsProvider" 37 android:label="@string/storage_description" 38 android:authorities="com.android.providers.media.documents" 39 android:grantUriPermissions="true" 40 android:exported="true" 41 android:permission="android.permission.MANAGE_DOCUMENTS"> 42 <intent-filter> 43 <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> 44 </intent-filter> 45 </provider> 46 47 <!-- Handles database upgrades after OTAs, then disables itself --> 48 <receiver android:name="MediaUpgradeReceiver"> 49 <!-- This broadcast is sent after the core system has finished 50 booting, before the home app is launched or BOOT_COMPLETED 51 is sent. --> 52 <intent-filter> 53 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/> 54 </intent-filter> 55 </receiver> 56 57 <receiver android:name=".MediaReceiver"> 58 <intent-filter> 59 <action android:name="android.intent.action.BOOT_COMPLETED" /> 60 <action android:name="android.intent.action.DEVICE_CUSTOMIZATION_READY"/> 61 <action android:name="android.intent.action.LOCALE_CHANGED" /> 62 </intent-filter> 63 <intent-filter> 64 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" /> 65 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" /> 66 <data android:scheme="package" /> 67 </intent-filter> 68 <intent-filter> 69 <action android:name="android.intent.action.MEDIA_MOUNTED" /> 70 <data android:scheme="file" /> 71 </intent-filter> 72 <intent-filter> 73 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" /> 74 <data android:scheme="file" /> 75 </intent-filter> 76 </receiver> 77 78 <service 79 android:name=".IdleService" 80 android:exported="true" 81 android:permission="android.permission.BIND_JOB_SERVICE" /> 82 83 <service 84 android:name=".MediaService" 85 android:exported="false" /> 86 87 <service 88 android:name=".MediaScannerService" 89 android:exported="true"> 90 <intent-filter> 91 <action android:name="android.media.IMediaScannerService" /> 92 </intent-filter> 93 </service> 94 95 <receiver android:name=".MtpReceiver"> 96 <intent-filter> 97 <action android:name="android.intent.action.BOOT_COMPLETED" /> 98 </intent-filter> 99 <intent-filter> 100 <action android:name="android.hardware.usb.action.USB_STATE" /> 101 </intent-filter> 102 </receiver> 103 104 <service android:name="MtpService" /> 105 106 <service android:name="RingtoneOverlayService" /> 107 108 <activity android:name="RingtonePickerActivity" 109 android:theme="@style/PickerDialogTheme" 110 android:enabled="@*android:bool/config_defaultRingtonePickerEnabled" 111 android:excludeFromRecents="true"> 112 <intent-filter> 113 <action android:name="android.intent.action.RINGTONE_PICKER" /> 114 <category android:name="android.intent.category.DEFAULT" /> 115 </intent-filter> 116 </activity> 117 118 <activity 119 android:name=".PermissionActivity" 120 android:theme="@style/PickerDialogTheme" 121 android:permission="android.permission.WRITE_MEDIA_STORAGE" 122 android:excludeFromRecents="true" /> 123 </application> 124</manifest> 125