blob: 33e94229e86992424c99508ced1f169ef8ef8f2e [file] [log] [blame]
The Android Open Source Project70215272009-03-03 19:32:43 -08001<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2 package="com.android.providers.media"
3 android:sharedUserId="android.media"
Marco Nelissen90c7da02012-02-17 09:25:39 -08004 android:sharedUserLabel="@string/uid_label"
Jeff Sharkeya52f7802019-01-30 15:11:54 -07005 android:versionCode="1013">
Ben Lin97203242017-03-17 11:09:50 -07006
The Android Open Source Project70215272009-03-03 19:32:43 -08007 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Niklas Brunlidf776cde2018-06-06 16:48:23 +02008 <uses-permission android:name="android.permission.RECEIVE_DEVICE_CUSTOMIZATION_READY" />
The Android Open Source Project70215272009-03-03 19:32:43 -08009 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
10 <uses-permission android:name="android.permission.WAKE_LOCK" />
San Mehat2daeb8c2009-06-01 09:26:57 -070011 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Mike Lockwood71d36b02011-04-22 07:10:32 -070012 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Mike Lockwood5dfdff72011-01-10 08:24:46 -050013 <uses-permission android:name="android.permission.ACCESS_MTP" />
Jeff Sharkey8efd65f2012-09-16 15:26:12 -070014 <uses-permission android:name="android.permission.MANAGE_USERS" />
15 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Jerry Zhangae2909c2017-10-18 10:54:15 -070016 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
Jeff Sharkey0c29eee2018-01-05 17:15:58 -070017 <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
Mike Lockwood67595922011-01-06 14:14:56 -050018
Jeff Sharkey5a8bb562018-08-10 18:04:10 -060019 <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
20 <uses-permission android:name="android.permission.WRITE_MEDIA_AUDIO" />
21 <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
22 <uses-permission android:name="android.permission.WRITE_MEDIA_VIDEO" />
23 <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
24 <uses-permission android:name="android.permission.WRITE_MEDIA_IMAGES" />
25
Jeff Sharkey6d856882019-01-02 13:45:35 -070026 <application
27 android:process="android.process.media"
28 android:label="@string/app_label"
29 android:allowBackup="false"
30 android:supportsRtl="true"
31 android:usesCleartextTraffic="true">
32 <provider
33 android:name=".MediaProvider"
34 android:authorities="media"
35 android:grantUriPermissions="true"
Dianne Hackborn4a742fc2019-02-05 16:12:28 -080036 android:forceUriPermissions="true"
Jeff Sharkey6d856882019-01-02 13:45:35 -070037 android:exported="true" />
Mike Lockwoodc7bbe232010-05-27 07:49:01 -040038
Jeff Sharkeye215ab52013-08-16 17:25:26 -070039 <provider
Jeff Sharkey6d856882019-01-02 13:45:35 -070040 android:name=".MediaDocumentsProvider"
41 android:label="@string/storage_description"
42 android:authorities="com.android.providers.media.documents"
43 android:grantUriPermissions="true"
44 android:exported="true"
45 android:permission="android.permission.MANAGE_DOCUMENTS">
Jeff Sharkeydd492122013-10-09 13:57:51 -070046 <intent-filter>
47 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
48 </intent-filter>
Jeff Sharkeye215ab52013-08-16 17:25:26 -070049 </provider>
50
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070051 <!-- Handles database upgrades after OTAs, then disables itself -->
52 <receiver android:name="MediaUpgradeReceiver">
53 <!-- This broadcast is sent after the core system has finished
54 booting, before the home app is launched or BOOT_COMPLETED
55 is sent. -->
56 <intent-filter>
57 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
58 </intent-filter>
59 </receiver>
60
Jeff Sharkey7320f372018-09-12 15:14:24 -060061 <receiver android:name=".MediaReceiver">
The Android Open Source Project70215272009-03-03 19:32:43 -080062 <intent-filter>
63 <action android:name="android.intent.action.BOOT_COMPLETED" />
Niklas Brunlidf776cde2018-06-06 16:48:23 +020064 <action android:name="android.intent.action.DEVICE_CUSTOMIZATION_READY"/>
Sean Stoutcceb5e42017-09-08 11:16:00 -070065 <action android:name="android.intent.action.LOCALE_CHANGED" />
The Android Open Source Project70215272009-03-03 19:32:43 -080066 </intent-filter>
67 <intent-filter>
Jeff Sharkey7320f372018-09-12 15:14:24 -060068 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
69 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
70 <data android:scheme="package" />
71 </intent-filter>
72 <intent-filter>
The Android Open Source Project70215272009-03-03 19:32:43 -080073 <action android:name="android.intent.action.MEDIA_MOUNTED" />
74 <data android:scheme="file" />
75 </intent-filter>
76 <intent-filter>
77 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
Jeff Sharkey3b218712019-01-23 22:36:13 -070078 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_VOLUME" />
The Android Open Source Project70215272009-03-03 19:32:43 -080079 <data android:scheme="file" />
80 </intent-filter>
81 </receiver>
82
Jeff Sharkey7320f372018-09-12 15:14:24 -060083 <service
84 android:name=".IdleService"
85 android:exported="true"
86 android:permission="android.permission.BIND_JOB_SERVICE" />
87
Jeff Sharkey5fdbd982019-01-20 11:03:28 -070088 <service
89 android:name=".MediaService"
90 android:exported="false" />
91
92 <service
93 android:name=".MediaScannerService"
94 android:exported="true">
The Android Open Source Project70215272009-03-03 19:32:43 -080095 <intent-filter>
96 <action android:name="android.media.IMediaScannerService" />
97 </intent-filter>
98 </service>
99
Jerry Zhangf505f0d2018-02-02 17:49:24 -0800100 <receiver android:name=".MtpReceiver">
Jeff Sharkey8efd65f2012-09-16 15:26:12 -0700101 <intent-filter>
102 <action android:name="android.intent.action.BOOT_COMPLETED" />
103 </intent-filter>
Mike Lockwoodabf8d092010-06-29 16:43:41 -0400104 <intent-filter>
Mike Lockwood99fd9542011-03-02 11:22:29 -0800105 <action android:name="android.hardware.usb.action.USB_STATE" />
Mike Lockwoodabf8d092010-06-29 16:43:41 -0400106 </intent-filter>
107 </receiver>
Jeff Sharkey8efd65f2012-09-16 15:26:12 -0700108
Jerry Zhangf505f0d2018-02-02 17:49:24 -0800109 <service android:name="MtpService" />
Mike Lockwoodabf8d092010-06-29 16:43:41 -0400110
Niklas Brunlidf776cde2018-06-06 16:48:23 +0200111 <service android:name="RingtoneOverlayService" />
112
Jeff Sharkeyde2f00f2012-04-17 16:03:56 -0700113 <activity android:name="RingtonePickerActivity"
John Spurlock2ebc54e2014-07-20 12:21:34 -0400114 android:theme="@style/PickerDialogTheme"
Justin Klaassen6aee2ed2017-06-26 07:44:56 -0700115 android:enabled="@*android:bool/config_defaultRingtonePickerEnabled"
Jeff Sharkeyde2f00f2012-04-17 16:03:56 -0700116 android:excludeFromRecents="true">
117 <intent-filter>
118 <action android:name="android.intent.action.RINGTONE_PICKER" />
119 <category android:name="android.intent.category.DEFAULT" />
120 </intent-filter>
121 </activity>
122
Jeff Sharkeyc3088d82018-12-11 17:32:51 -0700123 <activity
124 android:name=".PermissionActivity"
125 android:theme="@style/PickerDialogTheme"
126 android:permission="android.permission.WRITE_MEDIA_STORAGE"
127 android:excludeFromRecents="true" />
The Android Open Source Project70215272009-03-03 19:32:43 -0800128 </application>
129</manifest>