-
-
Notifications
You must be signed in to change notification settings - Fork 798
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
464 lines (385 loc) · 19.3 KB
/
AndroidManifest.xml
File metadata and controls
464 lines (385 loc) · 19.3 KB
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto"
tools:node="strict">
<!--
If the build is intended to be Google Play-updateable, the package name
should be the same as for Google Play (name depends on Beta or Stable).
Otherwise, if the build is not intended to be Google Play-updateable (e.g.,
updateable via an alternative appstore update mechanism), the package name
should be specific to the update mechanism channel.
-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.GET_ACCOUNTS"
android:maxSdkVersion="22" />
<uses-permission
android:name="android.permission.AUTHENTICATE_ACCOUNTS"
android:maxSdkVersion="22" />
<uses-permission
android:name="android.permission.MANAGE_ACCOUNTS"
android:maxSdkVersion="22" />
<!-- For notifications, e.g. User account notices, etc. -->
<uses-permission android:name="android.permission.VIBRATE"/>
<!-- For being able to receive notifications upon boot -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- For being able to post notifications -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- For syncing reading lists -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
<!--
List of hardware features that are implicitly used, but not required. These need to be
declared as optional, so that the app can be installed on devices that don't have them.
-->
<uses-feature android:name="android.hardware.wifi" android:required="false" />
<uses-feature android:name="android.hardware.location" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<!-- For keeping the device awake while performing background tasks, such as syncing offline articles. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:required="false" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:required="false" />
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
<intent>
<action android:name="android.speech.action.RECOGNIZE_SPEECH" />
</intent>
</queries>
<application
android:allowBackup="true"
android:fullBackupContent="@xml/full_backup_rules"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:icon="@mipmap/launcher"
android:label="@string/app_name"
android:name=".WikipediaApp"
android:theme="@style/AppTheme">
<!-- Multi-window support on Samsung devices -->
<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<!--
The following is used for determining the distribution channel.
Set "value" to "Google Play" for Google Play Store.
-->
<meta-data android:name="@string/preference_key_app_channel" android:value="@string/channel" />
<!-- Opt out of metrics collection for the System WebView. -->
<meta-data android:name="android.webkit.WebView.MetricsOptOut" android:value="true" />
<!-- Necessary for Google Pay API -->
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" />
<activity
android:name=".main.MainActivity"
android:icon="@mipmap/launcher"
android:windowSoftInputMode="adjustResize"
android:theme="@style/AppTheme.Splash"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="wikipedia" />
</intent-filter>
</activity>
<activity
android:name=".page.PageActivity"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
android:configChanges="orientation|screenSize"
android:launchMode="singleTask"
android:parentActivityName=".main.MainActivity"
android:exported="true">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".main.MainActivity" />
<intent-filter
tools:targetApi="m"
android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- the following lines are merged
https://developer.android.com/training/app-links/deep-linking.html
so http and https apply to all prefixes-->
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*.wikipedia.org" android:pathPrefix="/wiki/" />
<data android:host="*.wikipedia.org" android:pathPattern="/zh.*" />
<data android:host="*.wikipedia.org" android:pathPattern="/sr.*" />
</intent-filter>
</activity>
<activity
android:name=".settings.SettingsActivity"
android:label="@string/settings_activity_title"
android:theme="@style/AppTheme.ActionBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".settings.dev.DeveloperSettingsActivity"
android:label="@string/developer_settings_activity_title"
android:theme="@style/AppTheme.ActionBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".settings.NotificationSettingsActivity"
android:label="@string/notification_preferences_title"
android:theme="@style/AppTheme.ActionBar" />
<activity android:name=".settings.languages.WikipediaLanguagesActivity"
android:label="@string/wikipedia_languages_title"/>
<activity android:name=".language.LangLinksActivity"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize"/>
<activity
android:name=".language.addlanguages.AddLanguagesListActivity"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize"/>
<activity
android:name=".suggestededits.SuggestionsActivity"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".edit.EditSectionActivity"
android:windowSoftInputMode="adjustResize|stateVisible"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".login.LoginActivity"
android:label="@string/login_activity_title"
android:theme="@style/AppTheme.ActionBar"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".createaccount.CreateAccountActivity"
android:theme="@style/AppTheme.ActionBar"
android:label="@string/create_account_activity_title"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".login.ResetPasswordActivity"
android:label="@string/reset_password_title"
android:theme="@style/AppTheme.ActionBar"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".gallery.GalleryActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/AppTheme.FullScreen" />
<activity
android:name=".settings.LicenseActivity"/>
<activity
android:name=".feed.news.NewsActivity"
android:label="@string/view_card_news_title"/>
<activity
android:name=".descriptions.DescriptionEditActivity"
android:configChanges="orientation|screenSize"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".search.SearchActivity"
android:windowSoftInputMode="adjustResize"
android:theme="@style/AppTheme.Splash"
android:exported="true">
<intent-filter android:label="@string/search_hint">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter android:label="@string/search_hint">
<action android:name="android.intent.action.PROCESS_TEXT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<activity
android:name=".descriptions.DescriptionEditSuccessActivity"
android:theme="@style/AppTheme.FullScreen.Translucent"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name=".descriptions.DescriptionEditTutorialActivity" />
<activity
android:name=".readinglist.ReadingListActivity" />
<activity
android:name=".onboarding.InitialOnboardingActivity"/>
<activity
android:name=".feed.topread.TopReadArticlesActivity"
android:theme="@style/AppTheme.ActionBar"/>
<activity android:name=".feed.onthisday.OnThisDayActivity"
android:configChanges="orientation|screenSize"/>
<activity android:name=".feed.configure.ConfigureActivity"
android:label="@string/feed_configure_activity_title"/>
<activity android:name=".random.RandomActivity"
android:label="@string/view_random_card_title"
android:theme="@style/AppTheme.ActionBar"/>
<activity android:name=".theme.ThemeFittingRoomActivity"
android:label="@string/preference_title_app_theme"
android:theme="@style/AppTheme.ActionBar"/>
<activity
android:name=".notifications.NotificationActivity"
android:label="@string/notifications_activity_title"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".page.tabs.TabActivity"
android:label="@string/tabs_activity_title" />
<activity
android:name=".categories.CategoryActivity" />
<activity android:name=".suggestededits.SuggestedEditsImageTagsOnboardingActivity" />
<activity android:name=".suggestededits.SuggestedEditsImageRecsOnboardingActivity" />
<activity android:name=".suggestededits.SuggestedEditsRecentEditsOnboardingActivity" />
<activity
android:name=".watchlist.WatchlistActivity"
android:label="@string/watchlist_title"
android:theme="@style/AppTheme.ActionBar"/>
<activity
android:name=".watchlist.WatchlistFilterActivity"
android:label="@string/watchlist_filter_title"
android:theme="@style/AppTheme.ActionBar"/>
<activity
android:name=".suggestededits.SuggestedEditsImageTagEditActivity"
android:theme="@style/AppTheme.ActionBar" />
<activity
android:name=".suggestededits.SuggestedEditsRecentEditsActivity"/>
<activity
android:name=".suggestededits.SuggestedEditsRecentEditsFilterActivity"
android:label="@string/patroller_tasks_filters_title"
android:theme="@style/AppTheme.ActionBar"/>
<activity
android:name=".commons.FilePageActivity"
android:label=""
android:theme="@style/AppTheme"/>
<activity
android:name=".talk.TalkTopicsActivity"
android:label="" />
<activity
android:name=".talk.TalkTopicActivity" />
<activity
android:name=".talk.TalkReplyActivity"
android:configChanges="orientation|screenSize"/>
<activity
android:name=".talk.ArchivedTalkPagesActivity" />
<activity
android:name=".diff.ArticleEditDetailsActivity" />
<activity
android:name=".activity.SingleWebViewActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/AppTheme" />
<activity
android:name=".page.customize.CustomizeToolbarActivity"
android:label="@string/customize_toolbar_title"
android:theme="@style/AppTheme.ActionBar"/>
<activity
android:name=".notifications.NotificationFilterActivity"
android:label="@string/notifications_filter_label"
android:theme="@style/AppTheme.ActionBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".page.edithistory.EditHistoryListActivity" />
<activity
android:name=".usercontrib.UserContribListActivity" />
<activity
android:name=".usercontrib.UserContribFilterActivity"
android:label="@string/user_contrib_filter_activity_title"
android:theme="@style/AppTheme.ActionBar" />
<activity
android:name=".edit.insertmedia.InsertMediaActivity"
android:label="@string/insert_media_title"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".edit.templates.TemplatesSearchActivity"
android:label="@string/templates_search_hint"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize" />
<activity
android:name=".places.PlacesActivity" />
<activity
android:name=".places.PlacesFilterActivity"/>
<activity
android:name=".talk.template.TalkTemplatesActivity"
android:theme="@style/AppTheme" />
<activity
android:name=".donate.GooglePayActivity"/>
<activity
android:name=".settings.AboutActivity"/>
<activity
android:name=".games.onthisday.OnThisDayGameActivity"/>
<activity
android:name=".readinglist.recommended.RecommendedReadingListOnboardingActivity"/>
<activity
android:name=".settings.dev.playground.CategoryDeveloperPlayGround"/>
<activity
android:name=".yearinreview.YearInReviewActivity"/>
<activity
android:name=".readinglist.recommended.RecommendedReadingListSettingsActivity"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".donate.donationreminder.DonationReminderActivity"
android:windowSoftInputMode="adjustResize"/>
<provider
android:name=".WikipediaFileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<receiver
android:icon="@mipmap/launcher"
android:label="@string/widget_name_search"
android:name="org.wikipedia.widgets.WidgetProviderSearch"
android:exported="true">
<intent-filter >
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_search" />
</receiver>
<receiver
android:icon="@mipmap/launcher"
android:label="@string/widget_name_featured_page"
android:name="org.wikipedia.widgets.WidgetProviderFeaturedPage"
android:exported="true">
<intent-filter >
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_featured_page" />
</receiver>
<receiver android:name=".notifications.NotificationPollBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name=".notifications.NotificationPollBroadcastReceiver.ACTION_POLL" />
</intent-filter>
</receiver>
<service
android:name="androidx.work.impl.foreground.SystemForegroundService"
android:foregroundServiceType="dataSync"
tools:node="merge" />
<service
android:name=".auth.AuthenticatorService"
android:exported="false">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/wikimedia_authenticator" />
</service>
<receiver android:name=".savedpages.SavedPageSyncNotification" />
<service
android:name=".push.WikipediaFirebaseMessagingService"
android:exported="false"
tools:ignore="Instantiatable">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>
</manifest>