blob: a73f5d9777d267ff907bc495575578a75dd4160c [file] [log] [blame]
The Android Open Source Project70215272009-03-03 19:32:43 -08001<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Jeff Sharkey56c34e82019-11-21 15:56:37 -07002 package="com.android.providers.media.module">
Ben Lin97203242017-03-17 11:09:50 -07003
The Android Open Source Project70215272009-03-03 19:32:43 -08004 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
5 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
6 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -07007 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
8
Jeff Sharkey8efd65f2012-09-16 15:26:12 -07009 <uses-permission android:name="android.permission.MANAGE_USERS" />
10 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Corina Grigoras53b32c12021-03-01 19:54:10 +000011 <!-- Permission required to prompt for the work profile to be turned on -->
12 <uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070013
Jeff Sharkeyeeda7ba2019-05-17 18:48:04 -060014 <uses-permission android:name="android.permission.WATCH_APPOPS" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070015 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Jeff Sharkey7873f542019-05-30 12:18:38 -060016 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
Mike Lockwood67595922011-01-06 14:14:56 -050017
Philip P. Moltmannd7ae5032019-03-27 12:25:37 -070018 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070019 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Zima82cbb12020-01-27 13:41:20 +000021 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070022 <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
Patrick Baumann7a2f8f32020-02-07 15:11:21 -080023 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
shafik60c44c72020-06-08 13:52:10 +010024 <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS" />
Jeff Sharkey5a8bb562018-08-10 18:04:10 -060025
Abhijeet Kaurb19f11a2020-02-10 11:35:03 +000026 <!-- Permissions required for reading and logging compat changes -->
27 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
28 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
29
Zim24616e52020-12-01 17:38:48 +000030 <!-- Permissions required for reading device configs -->
31 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
32
Makoto Onuki78167382020-12-10 09:58:59 -080033 <uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
34
Manish Singh08ed4992021-02-12 00:54:47 +000035 <!-- Permissions required for statsd pull metrics -->
36 <uses-permission android:name="android.permission.REGISTER_STATS_PULL_ATOM"/>
37
Zim2be60462021-03-30 18:01:43 +010038 <!-- Permissions required to check if an app is in the foreground or not during IO -->
39 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
40
Jeff Sharkey6d856882019-01-02 13:45:35 -070041 <application
Jeff Sharkeyc55994b2019-12-20 19:43:59 -070042 android:name="com.android.providers.media.MediaApplication"
Jeff Sharkey6d856882019-01-02 13:45:35 -070043 android:label="@string/app_label"
44 android:allowBackup="false"
45 android:supportsRtl="true"
Patrick Baumann7a2f8f32020-02-07 15:11:21 -080046 android:forceQueryable="true"
Abhijeet Kaur7334bac2021-06-11 20:04:48 +010047 android:usesCleartextTraffic="true"
48 android:crossProfile="true">
Jeff Sharkey6d856882019-01-02 13:45:35 -070049 <provider
Jeff Sharkey56c34e82019-11-21 15:56:37 -070050 android:name="com.android.providers.media.MediaProvider"
Jeff Sharkey6d856882019-01-02 13:45:35 -070051 android:authorities="media"
52 android:grantUriPermissions="true"
Dianne Hackborn4a742fc2019-02-05 16:12:28 -080053 android:forceUriPermissions="true"
Jeff Sharkey6d856882019-01-02 13:45:35 -070054 android:exported="true" />
Mike Lockwoodc7bbe232010-05-27 07:49:01 -040055
Jeff Sharkeye215ab52013-08-16 17:25:26 -070056 <provider
Jeff Sharkey56c34e82019-11-21 15:56:37 -070057 android:name="com.android.providers.media.MediaDocumentsProvider"
Jeff Sharkey6d856882019-01-02 13:45:35 -070058 android:label="@string/storage_description"
59 android:authorities="com.android.providers.media.documents"
60 android:grantUriPermissions="true"
61 android:exported="true"
62 android:permission="android.permission.MANAGE_DOCUMENTS">
Jeff Sharkeydd492122013-10-09 13:57:51 -070063 <intent-filter>
64 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
65 </intent-filter>
Jeff Sharkeye215ab52013-08-16 17:25:26 -070066 </provider>
67
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070068 <!-- Handles database upgrades after OTAs, then disables itself -->
Ashwini Oruganti22820e62020-03-24 15:08:57 -070069 <receiver android:name="com.android.providers.media.MediaUpgradeReceiver"
70 android:exported="true">
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070071 <!-- This broadcast is sent after the core system has finished
72 booting, before the home app is launched or BOOT_COMPLETED
73 is sent. -->
74 <intent-filter>
75 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
76 </intent-filter>
77 </receiver>
78
Ashwini Oruganti22820e62020-03-24 15:08:57 -070079 <receiver android:name="com.android.providers.media.MediaReceiver"
80 android:exported="true">
The Android Open Source Project70215272009-03-03 19:32:43 -080081 <intent-filter>
82 <action android:name="android.intent.action.BOOT_COMPLETED" />
Jeff Sharkey021aaf92019-08-21 14:10:30 -060083 </intent-filter>
84 <intent-filter>
Sean Stoutcceb5e42017-09-08 11:16:00 -070085 <action android:name="android.intent.action.LOCALE_CHANGED" />
The Android Open Source Project70215272009-03-03 19:32:43 -080086 </intent-filter>
87 <intent-filter>
Jeff Sharkey7320f372018-09-12 15:14:24 -060088 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
89 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
90 <data android:scheme="package" />
91 </intent-filter>
92 <intent-filter>
Martijn Coenen45a23dc2021-07-23 14:22:43 +020093 <action android:name="android.intent.action.MEDIA_MOUNTED" />
94 <data android:scheme="file" />
95 </intent-filter>
96 <intent-filter>
The Android Open Source Project70215272009-03-03 19:32:43 -080097 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
98 <data android:scheme="file" />
99 </intent-filter>
100 </receiver>
101
Jeff Sharkey7320f372018-09-12 15:14:24 -0600102 <service
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700103 android:name="com.android.providers.media.IdleService"
Jeff Sharkey7320f372018-09-12 15:14:24 -0600104 android:exported="true"
105 android:permission="android.permission.BIND_JOB_SERVICE" />
106
Jeff Sharkey5fdbd982019-01-20 11:03:28 -0700107 <service
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700108 android:name="com.android.providers.media.MediaService"
Jeff Sharkey128a8b92019-11-13 08:58:10 -0700109 android:exported="true"
110 android:permission="android.permission.BIND_JOB_SERVICE" />
Jeff Sharkey5fdbd982019-01-20 11:03:28 -0700111
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700112 <service android:name="com.android.providers.media.fuse.ExternalStorageServiceImpl"
Ashwini Oruganti22820e62020-03-24 15:08:57 -0700113 android:exported="true"
Zim3e45d9b2019-08-19 21:14:14 +0100114 android:permission="android.permission.BIND_EXTERNAL_STORAGE_SERVICE">
115 <intent-filter>
116 <action android:name="android.service.storage.ExternalStorageService" />
117 </intent-filter>
118 </service>
119
Jeff Sharkeyc3088d82018-12-11 17:32:51 -0700120 <activity
shafik77ed67b2020-02-06 18:27:35 +0000121 android:name="com.android.providers.media.PermissionActivity"
Jeff Sharkeya44e8fe2020-05-28 19:06:00 -0600122 android:configChanges="orientation|keyboardHidden|screenSize"
shafik77ed67b2020-02-06 18:27:35 +0000123 android:theme="@style/PickerDialogTheme"
124 android:exported="false"
125 android:excludeFromRecents="true" />
126
127 <activity
128 android:name="com.android.providers.media.CacheClearingActivity"
Jeff Sharkeya44e8fe2020-05-28 19:06:00 -0600129 android:configChanges="orientation|keyboardHidden|screenSize"
shafik77ed67b2020-02-06 18:27:35 +0000130 android:exported="true"
131 android:theme="@style/CacheClearingAlertDialogTheme"
132 android:finishOnCloseSystemDialogs="true"
133 android:launchMode="singleTop"
134 android:excludeFromRecents="true"
135 android:visibleToInstantApps="true"
136 android:priority="100" >
137 <intent-filter>
138 <action android:name="android.os.storage.action.CLEAR_APP_CACHE" />
139 <category android:name="android.intent.category.DEFAULT" />
140 </intent-filter>
141 </activity>
Sahana Rao8eb767f2021-04-19 14:19:51 +0100142
143 <activity
144 android:name="com.android.providers.media.photopicker.PhotoPickerActivity"
Ivan Chiange89a1a42021-04-27 13:57:25 +0800145 android:theme="@style/PickerDefaultTheme"
Sahana Rao8eb767f2021-04-19 14:19:51 +0100146 android:exported="true"
147 android:excludeFromRecents="true"
148 android:priority="100" >
149 <intent-filter>
150 <action android:name="android.provider.action.PICK_IMAGES" />
151 <category android:name="android.intent.category.DEFAULT" />
152 </intent-filter>
153 </activity>
Sahana Rao18bb0182021-06-15 15:39:14 +0100154
155 <activity-alias
156 android:name="com.android.providers.media.photopicker.PhotoPickerGetContentActivity"
157 android:targetActivity="com.android.providers.media.photopicker.PhotoPickerActivity"
158 android:exported="true"
159 android:excludeFromRecents="true"
160 android:enabled="false">
161 <intent-filter>
162 <action android:name="android.intent.action.GET_CONTENT" />
163 <category android:name="android.intent.category.OPENABLE" />
164 <category android:name="android.intent.category.DEFAULT" />
165 <data android:mimeType="image/*" />
166 <data android:mimeType="video/*" />
167 </intent-filter>
168 </activity-alias>
169
The Android Open Source Project70215272009-03-03 19:32:43 -0800170 </application>
171</manifest>