forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
711 lines (676 loc) · 30.5 KB
/
AndroidManifest.xml
File metadata and controls
711 lines (676 loc) · 30.5 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
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2009 Andrew <andrewdubya@gmail>
~ Copyright (c) 2009 Nicolas Raoul <nicolas.raoul@gmail.com>
~ Copyright (c) 2009 Edu Zamora <edu.zasu@gmail.com>
~ Copyright (c) 2009 Casey Link <unnamedrambler@gmail.com>
~ Copyright (c) 2011 Norbert Nagold <norbert.nagold@gmail.com>
~
~ This program is free software; you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by the Free Software
~ Foundation; either version 3 of the License, or (at your option) any later
~ version.
~
~ This program is distributed in the hope that it will be useful, but WITHOUT ANY
~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
~ PARTICULAR PURPOSE. See the GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along with
~ this program. If not, see <http://www.gnu.org/licenses/>.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto">
<uses-feature android:name="android.hardware.audio.output" android:required="false" />
<uses-feature android:name="android.software.app_widgets" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="false" />
<uses-feature android:name="androidx.draganddrop" android:required="false"/>
<!-- `ScopedStorage` lint error is ignored:
the recommended change is setting maxSDkVersion
but this means preserveLegacyExternalStorage is inactive, and users do not have access to
the ~/AnkiDroid public directory
-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage"/>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.GET_PACKAGE_SIZE" android:maxSdkVersion="25" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<!-- Disabled on Play Store -->
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" />
<permission android:name="${applicationId}.permission.READ_WRITE_DATABASE"
android:label="@string/read_write_permission_label"
android:description="@string/read_write_permission_description"
android:protectionLevel="dangerous"
/>
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true"
/>
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT" />
<data android:mimeType="text/plain" />
</intent>
<intent>
<action android:name="android.speech.RecognitionService" />
</intent>
</queries>
<!--
Attribute usesCleartextTraffic, added in API 23 and false by default if targeting API >= 28,
is ignored on Android 7 (API 24) and above if networkSecurityConfig is present.
https://developer.android.com/guide/topics/manifest/application-element#usesCleartextTraffic
-->
<application
android:name="com.ichi2.anki.AnkiDroidApp"
android:label="@string/app_name"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:windowSoftInputMode="adjustResize"
android:usesCleartextTraffic="true"
android:largeHeap="true"
android:hasFragileUserData="true"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:preserveLegacyExternalStorage="true"
android:resizeableActivity="true"
android:supportsRtl="true"
android:theme="@style/Theme_Light"
android:enableOnBackInvokedCallback="true"
android:manageSpaceActivity="com.ichi2.anki.ui.windows.managespace.ManageSpaceActivity"
>
<!-- Probably because of a bug on the framework,
the full package path is needed for manageSpaceActivity -->
<activity
android:name="com.ichi2.anki.ui.windows.managespace.ManageSpaceActivity"
android:exported="true"/>
<activity android:name=".DrawingActivity"
android:label="@string/drawing"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity
android:name="com.ichi2.anki.IntentHandler"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
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>
<!-- *.apkg matcher. NOTE: when pathPattern is used, host and scheme must also be specified -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- .apkg files -->
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.apkg"
android:scheme="http"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.apkg"
android:scheme="https"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.apkg"
android:scheme="content"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.apkg"
android:scheme="file"
/>
<!-- .colpkg files -->
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.colpkg"
android:scheme="http"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.colpkg"
android:scheme="https"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.colpkg"
android:scheme="content"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.colpkg"
android:scheme="file"
/>
<!-- tsv files -->
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.tsv"
android:scheme="http"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.tsv"
android:scheme="https"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.tsv"
android:scheme="content"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.tsv"
android:scheme="file"
/>
<!-- csv files -->
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.csv"
android:scheme="http"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.csv"
android:scheme="https"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.csv"
android:scheme="content"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.csv"
android:scheme="file"
/>
<!-- text files -->
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.txt"
android:scheme="http"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.txt"
android:scheme="https"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.txt"
android:scheme="content"
/>
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.txt"
android:scheme="file"
/>
</intent-filter>
<!-- MIME type matcher for .apkg files coming from providers like gmail which hide the file extension -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.SEND"/>
<data android:mimeType="application/apkg"/>
<data android:mimeType="application/colpkg"/>
<data android:mimeType="application/vnd.anki"/>
<data android:mimeType="application/x-apkg"/>
<data android:mimeType="application/x-colpkg"/>
<data android:mimeType="application/octet-stream"/>
<data android:mimeType="text/tab-separated-values"/>
<data android:mimeType="text/comma-separated-values"/>
<data android:mimeType="text/csv"/>
<data android:mimeType="text/tsv"/>
<data android:mimeType="text/plain"/>
</intent-filter>
<!-- Keep it separate as when sharing image AnkiDroid would be shown with Image Occlusion label -->
<intent-filter android:label="@string/image_occlusion">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/jpg" />
<data android:mimeType="image/jpeg" />
<data android:mimeType="image/png" />
<data android:mimeType="image/ico" />
<data android:mimeType="image/webp" />
<data android:mimeType="image/tiff" />
<data android:mimeType="image/gif" />
<data android:mimeType="image/svg" />
</intent-filter>
<!-- Tasker DO_SYNC intent -->
<intent-filter>
<action android:name="com.ichi2.anki.DO_SYNC" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.ichi2.anki.DeckPicker"
android:theme="@style/Theme_Dark.Launcher"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity
android:name="com.ichi2.anki.StudyOptionsActivity"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
android:parentActivityName=".DeckPicker"
>
</activity>
<!-- Context menu item name is the label, context is the system language -->
<!-- Note: This appears to require that the target label is variable -->
<activity-alias
android:name="com.ichi2.anki.CardBrowserContextMenuAction"
android:label="@string/card_browser_context_menu"
android:enabled="false"
android:targetActivity="com.ichi2.anki.CardBrowser"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PROCESS_TEXT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity-alias>
<activity
android:name="com.ichi2.anki.CardBrowser"
android:label="@string/card_browser"
android:theme="@style/Theme_Dark.Launcher"
android:exported="true"
android:configChanges="keyboardHidden|orientation|screenSize"
android:parentActivityName=".DeckPicker"
>
<intent-filter android:label="@string/card_browser">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "anki://x-callback-url/browser” -->
<data android:scheme="anki" android:host="x-callback-url" android:path="/browser"/>
</intent-filter>
</activity>
<activity
android:name=".notetype.ManageNotetypes"
android:label="@string/model_browser_label"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity
android:name=".ui.windows.permissions.PermissionsActivity"
android:exported="false"
/>
<activity
android:name=".NoteTypeFieldEditor"
android:label="@string/model_editor_label"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity
android:name="com.ichi2.anki.Reviewer"
android:exported="true"
android:theme="@style/Theme_Dark.Launcher"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize"
android:parentActivityName=".DeckPicker">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.ichi2.anki.MyAccount"
android:label="@string/menu_my_account"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity
android:name=".multimedia.MultimediaActivity"
android:configChanges="orientation|screenSize"
android:exported="false" />
<activity
android:name="com.ichi2.anki.preferences.PreferencesActivity"
android:exported="false"
android:configChanges="screenSize"
>
<intent-filter>
<category android:name="android.intent.category.MONKEY" />
</intent-filter>
</activity>
<activity
android:name=".FilteredDeckOptions"
android:label="@string/deckpreferences_title"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/Theme_Light"
/>
<activity
android:name="com.ichi2.anki.Info"
android:label="@string/pref_cat_about_title"
android:exported="false"
/>
<activity-alias
android:name="com.ichi2.anki.AnkiCardContextMenuAction"
android:label="@string/context_menu_anki_card_label"
android:enabled="true"
android:targetActivity=".IntentHandler2"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PROCESS_TEXT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity-alias>
<activity
android:name="com.ichi2.anki.IntentHandler2"
android:label="@string/fact_adder_intent_title"
android:theme="@style/Theme_Dark.Launcher"
android:exported="true"
android:configChanges="keyboardHidden|orientation|screenSize"
>
<intent-filter>
<action android:name="org.openintents.action.CREATE_FLASHCARD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<!-- Keep it separate as when sharing image AnkiDroid would be shown with Add Image label -->
<intent-filter android:label="@string/multimedia_editor_popup_image">
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/jpg" />
<data android:mimeType="image/jpeg" />
<data android:mimeType="image/png" />
<data android:mimeType="image/ico" />
<data android:mimeType="image/webp" />
<data android:mimeType="image/tiff" />
<data android:mimeType="image/gif" />
<data android:mimeType="image/svg" />
</intent-filter>
</activity>
<activity
android:name="com.ichi2.anki.analytics.AnkiDroidCrashReportDialog"
android:theme="@android:style/Theme.DeviceDefault.Dialog"
android:process=":acra"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true"
/>
<activity
android:name="com.ichi2.anki.SingleFragmentActivity"
android:exported="false"
android:configChanges="orientation|screenSize"
/>
<activity
android:name="com.ichi2.anki.NoteEditorActivity"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize"
/>
<activity
android:name="com.ichi2.anki.previewer.CardViewerActivity"
android:exported="false"
android:configChanges="orientation|screenSize"
/>
<activity
android:name="com.ichi2.anki.CardTemplateEditor"
android:label="@string/title_activity_template_editor"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
>
</activity>
<activity
android:name=".CardTemplateBrowserAppearanceEditor"
android:label="@string/card_template_browser_appearance_title"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity
android:name=".SharedDecksActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/download_deck"
android:theme="@style/Theme.MaterialComponents.NoActionBar" />
<activity
android:name="com.ichi2.anki.LoginActivity"
android:label="@string/menu_my_account"
android:exported="false"
android:configChanges="keyboardHidden|orientation|screenSize"
/>
<activity android:name=".IntroductionActivity"
android:exported="false"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:configChanges="keyboardHidden|screenSize" />
<service
android:name="androidx.work.impl.foreground.SystemForegroundService"
android:foregroundServiceType="dataSync"
tools:node="merge" />
<service
android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
android:enabled="false"
android:exported="false">
<meta-data
android:name="autoStoreLocales"
android:value="true" />
</service>
<!-- Service to perform web API queries -->
<service android:name="com.ichi2.widget.AnkiDroidWidgetSmall$UpdateService" />
<!-- Don't disable/enable the widgets here until min API>=31, see issue #15747 & https://issuetracker.google.com/issues/36914010 -->
<!-- small widget -->
<receiver
android:name="com.ichi2.widget.AnkiDroidWidgetSmall"
android:label="@string/widget_small"
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_provider_small"
/>
</receiver>
<!-- "Add Note" widget -->
<receiver
android:name="com.ichi2.widget.AddNoteWidget"
android:label="@string/menu_add_note"
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_provider_add_note"
/>
</receiver>
<!-- A widget that displays a few decks's name and number of cards to review on the Android home screen.
The way to add it depends on the phone. It usually consists in a long press on the screen, followed by finding a "widget" button"-->
<receiver
android:name="com.ichi2.widget.deckpicker.DeckPickerWidget"
android:label="@string/deck_picker_widget_description"
android:exported="false"
>
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_provider_deck_picker" />
</receiver>
<!-- Configuration view for the DeckPickerWidget above.
It is opened when adding a new deck picker widget and
by configuration button which appears when the widget is hold or resized.-->
<activity
android:name="com.ichi2.widget.deckpicker.DeckPickerWidgetConfig"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<!-- A widget that displays a deck name and number of cards to review on the Android home screen.
The way to add it depends on the phone. It usually consists in a long press on the screen, followed by finding a "widget" button"-->
<receiver
android:name="com.ichi2.widget.cardanalysis.CardAnalysisWidget"
android:label="@string/card_analysis_extra_widget_description"
android:exported="false"
>
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_provider_card_analysis" />
</receiver>
<!-- Configuration view for the CardAnalysisWidget above.
It is opened when adding a new widget and
by configuration button which appears when the widget is hold or resized.-->
<activity
android:name="com.ichi2.widget.cardanalysis.CardAnalysisWidgetConfig"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<receiver android:name="com.ichi2.widget.WidgetPermissionReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.ichi2.widget.UPDATE_WIDGET" />
</intent-filter>
</receiver>
<receiver
android:name="com.ichi2.anki.receiver.SdCardReceiver"
android:enabled="true"
android:exported="true"
>
<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_EJECT" />
<data android:scheme="file" />
</intent-filter>
</receiver>
<receiver android:name=".services.NotificationService"
android:enabled="true"
android:exported="false"
/>
<receiver
android:name=".services.ReminderService"
android:enabled="true"
android:exported="false"
/>
<receiver
android:name=".services.BootService"
android:enabled="true"
android:exported="false"
>
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!-- stuff for Samsung Multi-Window -->
<uses-library
android:name="com.sec.android.app.multiwindow"
android:required="false"
/>
<meta-data
android:name="com.sec.android.support.multiwindow"
android:value="true"
/>
<meta-data
android:name="com.sec.minimode.icon.portrait.normal"
android:resource="@drawable/ic_anki"
/>
<meta-data
android:name="com.sec.minimode.icon.landscape.normal"
android:resource="@drawable/ic_anki"
/>
<!--
Opt out of WebView Metrics: https://developer.android.com/guide/webapps/managing-webview#metrics
https://developer.android.com/guide/webapps/webview-privacy
-->
<meta-data android:name="android.webkit.WebView.MetricsOptOut" android:value="true" />
<!--
Transparent Single instance activity, and is cleared from recent tasks as we want to mimic
the behaviour of not opening the application and still be able to access the dialog.
Task affinity allows us to separate the activity allowing us to define that an activity belongs to a
different task, it ensures that the activity does not interfere with other tasks in our application.
-->
<activity
android:name="com.ichi2.anki.instantnoteeditor.InstantNoteEditorActivity"
android:exported="true"
android:label="@string/instant_card"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:taskAffinity=""
android:theme="@style/Theme.AppCompat.Transparent.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<provider
android:name=".provider.CardContentProvider"
android:authorities="${applicationId}.flashcards"
android:enabled="true"
android:exported="true"
tools:ignore="ExportedContentProvider"
>
<meta-data android:name="com.ichi2.anki.provider.spec" android:value="2" />
</provider>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.apkgfileprovider"
android:grantUriPermissions="true"
android:exported="false"
>
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
</application>
</manifest>