This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
/
AndroidManifest.xml
293 lines (257 loc) · 14.4 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.android.providers.media.module">
<meta-data
android:name="com.android.providers.media.photopicker.data.glide.PickerGlideModule"
android:value="GlideModule" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.MANAGE_USERS" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
<!-- Permission required to prompt for the work profile to be turned on -->
<uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />
<uses-permission android:name="android.permission.WATCH_APPOPS" />
<uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USE_RESERVED_DISK" android:maxSdkVersion="34" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Permissions required for reading and logging compat changes -->
<uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
<uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
<!-- Permissions required for reading device configs -->
<uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
<uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
<!-- Permissions required for statsd pull metrics -->
<uses-permission android:name="android.permission.REGISTER_STATS_PULL_ATOM"/>
<!-- Permissions required to check if an app is in the foreground or not during IO -->
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<!-- Permission required to access CloudMediaProviders. Declared by us -->
<uses-permission android:name="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS" />
<!-- Permission required to bind to MediaCognitionService. Declared by us -->
<uses-permission android:name="com.android.providers.media.permission.BIND_MEDIA_COGNITION_SERVICE" />
<!-- Allows an application to have access to OWNER_PACKAGE_NAME field of accessible media files.
Applications are still required to have read access to media files.
<p>Protection level: normal -->
<permission android:name="com.android.providers.media.permission.ACCESS_MEDIA_OWNER_PACKAGE_NAME"
android:label="@string/permlab_accessMediaOwnerPackageName"
android:description="@string/permdesc_accessMediaOwnerPackageName"
android:protectionLevel="normal" />
<permission android:name="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS"
android:protectionLevel="signature" />
<permission android:name="com.android.providers.media.permission.BIND_MEDIA_COGNITION_SERVICE"
android:protectionLevel="signature"/>
<!-- We use Photo Picker app icon and label for this package. It is necessary for Photo Picker
GET_CONTENT take over. Some apps query packages that can handle GET_CONTENT and want to
display the icon and label of the package to the user. -->
<application
android:name="com.android.providers.media.MediaApplication"
android:label="@string/picker_app_label"
android:icon="@mipmap/picker_app_icon"
android:allowBackup="false"
android:supportsRtl="true"
android:forceQueryable="true"
android:usesCleartextTraffic="true"
android:crossProfile="true">
<provider
android:name="com.android.providers.media.MediaProvider"
android:authorities="media"
android:grantUriPermissions="true"
android:forceUriPermissions="true"
android:exported="true" />
<provider
android:name="com.android.providers.media.MediaDocumentsProvider"
android:label="@string/storage_description"
android:authorities="com.android.providers.media.documents"
android:grantUriPermissions="true"
android:exported="true"
android:permission="android.permission.MANAGE_DOCUMENTS">
<intent-filter>
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
</intent-filter>
</provider>
<provider
android:name="com.android.providers.media.photopicker.PhotoPickerProvider"
android:authorities="com.android.providers.media.photopicker"
android:exported="true"
android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS" />
<provider
android:name="com.android.providers.media.photopicker.RemoteVideoPreviewProvider"
android:process=":PhotoPicker"
android:authorities="com.android.providers.media.remote_video_preview"
android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS"
android:exported="true" />
<!-- Don't initialise WorkManager by default at startup -->
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup"
tools:node="remove" />
</provider>
<!-- Handles database upgrades after OTAs, then disables itself -->
<receiver android:name="com.android.providers.media.MediaUpgradeReceiver"
android:exported="true">
<!-- This broadcast is sent after the core system has finished
booting, before the home app is launched or BOOT_COMPLETED
is sent. -->
<intent-filter>
<action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<receiver android:name="com.android.providers.media.MediaReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.LOCALE_CHANGED" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
<action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
<data android:scheme="package" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<data android:scheme="file" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
<data android:scheme="file" />
</intent-filter>
</receiver>
<service
android:name="com.android.providers.media.IdleService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" />
<service
android:name="com.android.providers.media.MediaService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" />
<service
android:name=
"com.android.providers.media.stableuris.job.StableUriIdleMaintenanceService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE"/>
<service android:name="com.android.providers.media.fuse.ExternalStorageServiceImpl"
android:exported="true"
android:permission="android.permission.BIND_EXTERNAL_STORAGE_SERVICE">
<intent-filter>
<action android:name="android.service.storage.ExternalStorageService" />
</intent-filter>
</service>
<activity
android:name="com.android.providers.media.PermissionActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/PickerDialogTheme"
android:exported="false"
android:excludeFromRecents="true" />
<activity
android:name="com.android.providers.media.CacheClearingActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="true"
android:theme="@style/CacheClearingAlertDialogTheme"
android:finishOnCloseSystemDialogs="true"
android:launchMode="singleTop"
android:excludeFromRecents="true"
android:visibleToInstantApps="true" >
<intent-filter android:priority="100">
<action android:name="android.os.storage.action.CLEAR_APP_CACHE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.android.providers.media.photopicker.PhotoPickerActivity"
android:process=":PhotoPicker"
android:label="@string/picker_app_label"
android:theme="@style/PickerDefaultTheme"
android:exported="true"
android:excludeFromRecents="true"
android:colorMode="wideColorGamut">
<intent-filter android:priority="100" >
<action android:name="android.provider.action.PICK_IMAGES" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter android:priority="100" >
<action android:name="android.provider.action.PICK_IMAGES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.android.providers.media.photopicker.PhotoPickerSettingsActivity"
android:theme="@style/PickerSettingsDefaultTheme"
android:launchMode="singleInstance"
android:process=":PhotoPicker"
android:excludeFromRecents="false"
android:exported="true"
android:enabled="false" >
<intent-filter android:priority="100" >
<action android:name="android.provider.action.PICK_IMAGES_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<!-- ============== BEGIN SYSTEM SETTINGS MENU ITEM SECTION ============== -->
<intent-filter>
<action android:name="com.android.settings.action.IA_SETTINGS"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<meta-data
android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.apps"/>
<meta-data
android:name="com.android.settings.title"
android:resource="@string/picker_settings_system_settings_menu_title"/>
<meta-data
android:name="com.android.settings.summary_uri"
android:value="content://media/get_cloud_provider_label"/>
<meta-data
android:name="com.android.settings.profile"
android:value="primary_profile_only"/>
<!-- ============== END BEGIN SYSTEM SETTINGS MENU ITEM SECTION ============== -->
</activity>
<activity-alias
android:name="com.android.providers.media.photopicker.PhotoPickerUserSelectActivity"
android:targetActivity="com.android.providers.media.photopicker.PhotoPickerActivity"
android:permission="android.permission.GRANT_RUNTIME_PERMISSIONS"
android:exported="true"
android:excludeFromRecents="true"
android:enabled="true">
<intent-filter android:priority="100">
<action android:name="android.provider.action.USER_SELECT_IMAGES_FOR_APP" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter android:priority="100">
<action android:name="android.provider.action.USER_SELECT_IMAGES_FOR_APP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity-alias>
<activity-alias
android:name="com.android.providers.media.photopicker.PhotoPickerGetContentActivity"
android:targetActivity="com.android.providers.media.photopicker.PhotoPickerActivity"
android:exported="true"
android:excludeFromRecents="true"
android:enabled="true">
<intent-filter android:priority="105" >
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.OPENABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
</intent-filter>
</activity-alias>
</application>
</manifest>