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
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<!--
Note: This is a jinja2 template, processed at build time into the final manifest.
Blocks denoted with { % block some_name % }foo{ % endblock % } can be overridden
by a child template that "extends" this file.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="{{ manifest_package }}"
tools:ignore="MissingVersion">
<!-- android:versionCode and android:versionName is set through gyp. See build/common.gypi -->
<uses-sdk android:minSdkVersion="{{min_sdk_version}}" android:targetSdkVersion="{{target_sdk_version}}" />
<uses-feature android:glEsVersion="0x00020000" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!--
Enable Bluetooth permission via uses-permission in tip of tree builds
only for ease of development on Android L and earlier. For consumer
channels use "runtime permission" uses-permission-sdk-m which provides
permission on Android M and later without a prompt.
-->
{% if channel in ['default'] %}
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
{% endif %}
<uses-permission-sdk-m android:name="android.permission.BLUETOOTH"/>
<uses-permission-sdk-m android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.NFC"/>
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.READ_SYNC_STATS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.USE_CREDENTIALS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
<permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" android:protectionLevel="signature" />
<permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKMARK_FOLDERS" android:protectionLevel="signatureOrSystem" />
<permission android:name="{{ manifest_package }}.TOS_ACKED" android:protectionLevel="signatureOrSystem" />
<!-- Only chrome can receive the messages and registration result -->
<permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<permission android:name="{{ manifest_package }}.permission.DEBUG"
android:label="Debug web pages"
android:permissionGroup="android.permission-group.DEVELOPMENT_TOOLS"
android:protectionLevel="signature" />
<uses-permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE" />
<uses-permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKMARK_FOLDERS" />
<uses-permission android:name="{{ manifest_package }}.TOS_ACKED" />
<uses-permission android:name="com.chrome.permission.DEVICE_EXTRAS" />
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
{% block extra_uses_permissions %}
{% endblock %}
<!-- We may use GPS but it's not required -->
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<!--
android.permission.RECORD_AUDIO makes this implied, however we don't
require a microphone.
-->
<uses-feature android:name="android.hardware.microphone" android:required="false" />
<!--
The app is usable with keyboard/mouse. This feature is implicitly true for
all applications and needs to be disabled manually.
-->
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<!-- Set android:largeHeap to "true" to allow more than the default
Java heap limit (32Mb on Nexus S, 48Mb on Xoom). -->
<application android:name="{% block application_name %}org.chromium.chrome.browser.ChromeApplication{% endblock %}"
android:icon="@mipmap/app_icon"
android:label="@string/app_name"
android:largeHeap="false"
android:allowBackup="false"
android:supportsRtl="true"
{% block extra_application_attributes %}{% endblock %}>
<!-- Samsung MultiWindow Support -->
<meta-data android:name="com.samsung.android.sdk.multiwindow.enable"
android:value="true" />
<meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.enable"
android:value="true" />
<meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.launchmode"
android:value="singleTask" />
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable"
android:value="true"/>
{% if channel in ['dev', 'canary', 'default'] %}
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
{% endif %}
{% if configuration_policy == '1' %}
<meta-data android:name="android.content.APP_RESTRICTIONS"
android:resource="@xml/app_restrictions"/>
{% endif %}
<!-- Note: All activities directly or indirectly derived from ChromeActivity
must specify android:hardwareAccelerated="false".
Since this activity (shown in the launcher) and the application
(shown in Android's Settings/Apps list) share the same label, we
do not specify one here to allow it to inherit from the app. -->
<activity android:name="org.chromium.chrome.browser.document.ChromeLauncherActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
</activity>
<activity-alias android:name="com.google.android.apps.chrome.Main"
android:targetActivity="org.chromium.chrome.browser.document.ChromeLauncherActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.APP_BROWSER" />
<category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
{% if channel in ['dev', 'canary', 'default'] %}
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
{% endif %}
</intent-filter>
<!-- Matches the common case of intents with no MIME type.
Make sure to keep in sync with the next filter. -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
{% if channel in ['stable', 'default'] %}<data android:scheme="googlechrome" />{% endif %}
<data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="about" />
<data android:scheme="javascript" />
</intent-filter>
<!-- Same filter as above but with MIME types. Intents that
do not specify a MIME type won't match. -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
{% if channel in ['stable', 'default'] %}<data android:scheme="googlechrome" />{% endif %}
<data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="about" />
<data android:scheme="content" />
<data android:scheme="javascript" />
<data android:mimeType="text/html"/>
<data android:mimeType="text/plain"/>
<data android:mimeType="application/xhtml+xml"/>
</intent-filter>
<!-- MHTML support, used for snapshots -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:mimeType="multipart/related"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MEDIA_SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.speech.action.VOICE_SEARCH_RESULTS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<intent-filter>
<action android:name="com.sec.android.airview.HOVER" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity-alias>
<activity android:name="org.chromium.chrome.browser.document.DocumentActivity"
android:exported="false"
android:theme="@style/MainTheme"
android:windowSoftInputMode="adjustResize"
android:taskAffinity=""
android:persistableMode="persistAcrossReboots"
android:autoRemoveFromRecents="false"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:hardwareAccelerated="false">
</activity>
<activity-alias android:name="com.google.android.apps.chrome.document.DocumentActivity"
android:targetActivity="org.chromium.chrome.browser.document.DocumentActivity"
android:exported="false"/>
<activity android:name="org.chromium.chrome.browser.document.IncognitoDocumentActivity"
android:icon="@mipmap/incognito_app_icon"
android:exported="false"
android:theme="@style/IncognitoTheme"
android:windowSoftInputMode="adjustResize"
android:taskAffinity=""
android:persistableMode="persistNever"
android:autoRemoveFromRecents="false"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:hardwareAccelerated="false">
</activity>
<activity-alias android:name="com.google.android.apps.chrome.document.IncognitoDocumentActivity"
android:targetActivity="org.chromium.chrome.browser.document.IncognitoDocumentActivity"
android:exported="false"/>
<activity android:name="org.chromium.chrome.browser.customtabs.CustomTabActivity"
android:theme="@style/MainTheme"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:hardwareAccelerated="false">
</activity>
<activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity"
android:theme="@style/MainTheme"
android:exported="false"
android:windowBackground="@drawable/window_background"
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:hardwareAccelerated="false">
</activity>
<activity android:name="org.chromium.chrome.browser.multiwindow.MultiInstanceChromeTabbedActivity"
android:theme="@style/MainTheme"
android:exported="false"
android:windowBackground="@drawable/window_background"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:hardwareAccelerated="false">
</activity>
<activity android:name="org.chromium.chrome.browser.sync.ui.PassphraseActivity"
android:theme="@style/MainTheme"
android:autoRemoveFromRecents="true">
</activity>
<activity android:name="org.chromium.chrome.browser.bookmark.ManageBookmarkActivity"
android:theme="@style/DialogWhenLargeHolo"
android:label="@string/save_bookmark"
android:windowSoftInputMode="stateHidden|adjustPan"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
<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="chrome" android:host="editbookmark" />
</intent-filter>
<intent-filter>
<!-- This is sent by the BrowserProviderProxy as a result of
calls to android.provider.Browser.saveBookmark(). -->
<action android:name="{{ manifest_package }}.ADDBOOKMARK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="org.chromium.chrome.browser.firstrun.FirstRunActivity"
android:theme="@style/DialogWhenLarge"
android:label="@string/fre_label"
android:launchMode="singleTop"
android:windowSoftInputMode="stateHidden|adjustPan"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
</activity>
<activity android:name="org.chromium.chrome.browser.preferences.Preferences"
android:theme="@style/PreferencesTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:label="@string/preferences"
android:exported="false">
</activity>
<activity android:name="org.chromium.chrome.browser.EmbedContentViewActivity"
android:theme="@style/ThemeWithActionBar"
android:hardwareAccelerated="false"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
</activity>
<activity android:name="org.chromium.chrome.browser.prerender.PrerenderAPITestActivity"
android:theme="@style/MainTheme"
android:exported="true">
</activity>
<activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkActivity"
android:theme="@style/EnhancedBookmarkDialog"
android:windowSoftInputMode="stateAlwaysHidden"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
</activity>
<activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkEditActivity"
android:theme="@style/EnhancedBookmarkDialogWhite"
android:label="@string/edit_bookmark"
android:windowSoftInputMode="stateHidden"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
</activity>
<activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkAddEditFolderActivity"
android:theme="@style/EnhancedBookmarkDialogWhite"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
</activity>
<activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkFolderSelectActivity"
android:theme="@style/EnhancedBookmarkDialogWhite"
android:windowSoftInputMode="stateAlwaysHidden"
android:label="@string/enhanced_bookmark_choose_folder"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
</activity>
<activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkSigninActivity"
android:theme="@style/EnhancedBookmarkDialogWhite"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
</activity>
<!--
Activities for webapps.
TODO(dfalcantara): Remove the aliases for the WebappActivities once we're pretty sure
that users don't have any instances of the original Activity still
running.
-->
<activity android:name="org.chromium.chrome.browser.webapps.WebappLauncherActivity"
android:theme="@android:style/Theme.NoDisplay"
android:taskAffinity=""
android:excludeFromRecents="true">
<intent-filter>
<action android:name="com.google.android.apps.chrome.webapps.WebappManager.ACTION_START_WEBAPP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity-alias android:name="com.google.android.apps.chrome.webapps.WebappManager"
android:targetActivity="org.chromium.chrome.browser.webapps.WebappLauncherActivity">
</activity-alias>
<activity android:name="org.chromium.chrome.browser.webapps.WebappActivity"
android:theme="@style/WebappTheme"
android:label="@string/webapp_activity_title"
android:documentLaunchMode="intoExisting"
android:windowSoftInputMode="adjustResize"
android:persistableMode="persistNever"
android:hardwareAccelerated="false"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
</activity>
<activity-alias android:name="com.google.android.apps.chrome.webapps.WebappActivity"
android:targetActivity="org.chromium.chrome.browser.webapps.WebappActivity"
android:label="@string/webapp_activity_title">
</activity-alias>
{% for i in range(10) %}
<activity android:name="org.chromium.chrome.browser.webapps.WebappActivity{{ i }}"
android:theme="@style/WebappTheme"
android:icon="@mipmap/app_shortcut_icon"
android:label="@string/webapp_activity_title"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:persistableMode="persistNever"
android:hardwareAccelerated="false"
android:taskAffinity="{{ manifest_package }}.webapps.WebappActivity{{ i }}"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
</activity>
<activity-alias android:name="com.google.android.apps.chrome.webapps.WebappActivity{{ i }}"
android:targetActivity="org.chromium.chrome.browser.webapps.WebappActivity{{ i }}"
android:icon="@mipmap/app_shortcut_icon"
android:label="@string/webapp_activity_title">
</activity-alias>
{% endfor %}
<activity android:name="org.chromium.chrome.browser.media.remote.ExpandedControllerActivity"
android:theme="@style/MainTheme"
android:label="Chrome.ExpandedControllerActivity"
android:hardwareAccelerated="true"
android:launchMode="singleTask"
android:noHistory="true"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
android:excludeFromRecents="true">
</activity>
<activity android:name="org.chromium.chrome.browser.childaccounts.ResetDataActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true"
android:excludeFromRecents="true">
</activity>
<!-- This activity is started along with IncognitoDocumentActivity, so it also must
disable hardware acceleration. Besides, it doesn't have any UI. -->
<activity android:name="org.chromium.chrome.browser.document.CipherKeyActivity"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:excludeFromRecents="true"
android:hardwareAccelerated="false">
</activity>
<!-- This activity is used to restart the main Chrome process. Should never be exported. -->
<activity android:name="org.chromium.chrome.browser.BrowserRestartActivity"
android:launchMode="singleInstance"
android:exported="false"
android:theme="@android:style/Theme.NoDisplay"
android:excludeFromRecents="true"
android:process=":browser_restart_process">
</activity>
<!-- Providers for chrome data. -->
<provider android:name="org.chromium.chrome.browser.ChromeBrowserProvider"
android:authorities="{{ manifest_package }}.ChromeBrowserProvider;{{ manifest_package }}.browser;{{ manifest_package }}"
android:exported="true">
<path-permission android:path="/bookmarks/search_suggest_query"
android:readPermission="android.permission.GLOBAL_SEARCH" />
</provider>
<!-- Provider for FileProvider. -->
<provider android:name="org.chromium.chrome.browser.util.CompatibilityFileProvider"
android:authorities="{{ manifest_package }}.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<!-- Sync adapter for browser invalidation. -->
<service android:name="org.chromium.chrome.browser.invalidation.ChromeBrowserSyncAdapterService"
android:exported="false">
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter" />
</service>
<!-- Broadcast receiver that will be notified of account changes -->
<receiver android:name="org.chromium.chrome.browser.services.AccountsChangedReceiver">
<intent-filter>
<action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
</intent-filter>
</receiver>
<!-- Precache service. -->
<service android:name="org.chromium.chrome.browser.precache.PrecacheService"
android:exported="false" />
<receiver android:name="org.chromium.chrome.browser.precache.PrecacheServiceLauncher">
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<receiver android:name="org.chromium.chrome.browser.firstrun.ToSAckedReceiver"
android:permission="{{ manifest_package }}.TOS_ACKED">
<intent-filter>
<action android:name="{{ manifest_package }}.TOS_ACKED" />
</intent-filter>
</receiver>
<activity android:name="org.chromium.chrome.browser.bookmark.ShortcutActivity"
android:enabled="{{ 'true' if channel in ['stable', 'default'] else 'false' }}"
android:label="@string/bookmark_shortcut_name"
android:icon="@mipmap/bookmark_shortcut_icon"
android:theme="@style/ThemeWithActionBar"
android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="com.google.android.apps.chrome.appwidget.bookmarks.BookmarkThumbnailWidgetProvider"
android:enabled="{{ 'true' if channel in ['stable', 'default'] else 'false' }}"
android:label="@string/bookmarks">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name=".BOOKMARK_APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/bookmark_thumbnail_widget_info" />
</receiver>
<service android:name="org.chromium.chrome.browser.bookmarkswidget.BookmarkThumbnailWidgetService"
android:permission="android.permission.BIND_REMOTEVIEWS"
android:exported="false" />
<receiver android:name="org.chromium.chrome.browser.bookmarkswidget.BookmarkWidgetProxy"
android:exported="false" />
<!-- Receiver for GCM messages. -->
<receiver android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="{{ manifest_package }}"/>
</intent-filter>
</receiver>
<!-- GcmTaskService for registration for Invalidations. -->
<service android:name="com.google.ipc.invalidation.ticl.android2.channel.GcmRegistrationTaskService"
android:exported="true"
android:permission="com.google.android.gms.permission.BIND_NETWORK_TASK_SERVICE" >
<intent-filter>
<action android:name="com.google.android.gms.gcm.ACTION_TASK_READY"/>
</intent-filter>
</service>
<!-- InstanceIDListenerService for token refresh events from GCM. -->
<service android:name="com.google.ipc.invalidation.ticl.android2.channel.AndroidInstanceIDListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID"/>
</intent-filter>
</service>
<!-- GcmListenerService for messages from GCM. -->
<service android:name="org.chromium.chrome.browser.services.gcm.ChromeGcmListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<meta-data android:name="ipc.invalidation.ticl.gcm_upstream_service_class"
android:value="org.chromium.chrome.browser.services.gcm.InvalidationGcmUpstreamSender" />
<service android:name="org.chromium.chrome.browser.services.gcm.InvalidationGcmUpstreamSender"
android:exported="false"/>
<!-- Notification service for sync. -->
<meta-data android:name="ipc.invalidation.ticl.listener_service_class"
android:value="org.chromium.components.invalidation.InvalidationClientService"/>
<service android:name="org.chromium.components.invalidation.InvalidationClientService"
android:exported="false">
<intent-filter>
<action android:name="com.google.ipc.invalidation.AUTH_TOKEN_REQUEST"/>
</intent-filter>
</service>
<service android:name="com.google.ipc.invalidation.ticl.android2.TiclService"
android:exported="false"/>
<service android:name="com.google.ipc.invalidation.ticl.android2.channel.AndroidMessageSenderService"
android:exported="false"/>
<receiver android:name="com.google.ipc.invalidation.ticl.android2.AndroidInternalScheduler$AlarmReceiver"
android:exported="false"/>
<receiver android:name="com.google.ipc.invalidation.external.client2.contrib.AndroidListener$AlarmReceiver"
android:exported="false"/>
<!-- Android Notification service listener -->
<service android:name="org.chromium.chrome.browser.notifications.NotificationService"
android:exported="false"/>
<receiver android:name="org.chromium.chrome.browser.notifications.NotificationService$Receiver"
android:exported="false">
<intent-filter>
<action android:name="org.chromium.chrome.browser.notifications.CLICK_NOTIFICATION" />
<action android:name="org.chromium.chrome.browser.notifications.CLOSE_NOTIFICATION" />
</intent-filter>
</receiver>
<!-- Service Worker Background Sync service listener -->
<service android:name="org.chromium.content.browser.BackgroundSyncLauncherService"
android:exported="false" />
<receiver android:name="org.chromium.content.browser.BackgroundSyncLauncherService$Receiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<service android:name="org.chromium.chrome.browser.prerender.ChromePrerenderService"
android:exported="true"
tools:ignore="ExportedService" />
<service android:name="org.chromium.chrome.browser.customtabs.CustomTabsConnectionService"
android:exported="true"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent-filter>
</service>
<service android:name="org.chromium.chrome.browser.crash.LogcatExtractionService"
android:exported="false"/>
<service android:name="org.chromium.chrome.browser.crash.MinidumpPreparationService"
android:exported="false"/>
<service android:name="org.chromium.chrome.browser.crash.MinidumpUploadService"
android:exported="false"/>
<service android:name="org.chromium.chrome.browser.omaha.OmahaClient"
android:exported="false"/>
<!-- The following service entries exist in order to allow us to
start more than one sandboxed process. -->
<!-- NOTE: If you change the value of "android:process" for the below services,
you also need to update kHelperProcessExecutableName in chrome_constants.cc. -->
{% set num_sandboxed_services = 20 %}
<meta-data android:name="org.chromium.content.browser.NUM_SANDBOXED_SERVICES"
android:value="{{ num_sandboxed_services }}"/>
{% for i in range(num_sandboxed_services) %}
<service android:name="org.chromium.content.app.SandboxedProcessService{{ i }}"
android:process=":sandboxed_process{{ i }}"
android:permission="{{ manifest_package }}.permission.CHILD_SERVICE"
android:isolatedProcess="true"
android:exported="false" />
{% endfor %}
{% set num_privileged_services = 3 %}
<meta-data android:name="org.chromium.content.browser.NUM_PRIVILEGED_SERVICES"
android:value="{{ num_privileged_services }}"/>
{% for i in range(num_privileged_services) %}
<service android:name="org.chromium.content.app.PrivilegedProcessService{{ i }}"
android:process=":privileged_process{{ i }}"
android:permission="{{ manifest_package }}.permission.CHILD_SERVICE"
android:isolatedProcess="false"
android:exported="false" />
{% endfor %}
<receiver android:name="org.chromium.chrome.browser.download.OpenDownloadReceiver">
<intent-filter>
<action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
</intent-filter>
</receiver>
<receiver android:name="org.chromium.base.PowerStatusReceiver">
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<service android:name="org.chromium.chrome.browser.media.remote.NotificationTransportControl$ListenerService" />
<!-- Receiver for lock screen input when casting -->
<receiver android:name="org.chromium.chrome.browser.media.remote.LockScreenTransportControl$MediaButtonIntentReceiver"/>
<service android:name="org.chromium.chrome.browser.media.MediaNotificationService"
android:exported="false"/>
<service android:name="org.chromium.chrome.browser.media.ui.NotificationMediaPlaybackControls$ListenerService"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</service>
<receiver android:name="org.chromium.chrome.browser.media.ui.MediaButtonReceiver">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data android:name="org.chromium.content.browser.SMART_CLIP_PROVIDER"
android:value="org.chromium.content.browser.SmartClipProvider"/>
<meta-data android:name="org.chromium.components.service_tab_launcher.SERVICE_TAB_LAUNCHER"
android:value="org.chromium.chrome.browser.ChromeServiceTabLauncher" />
{% block extra_application_definitions %}
<!-- Media route controllers to use for remote playback (cast).
This is here, rather than in code, since it varies between upstream and downstream,
yet we need this list of classes in the notification service, which belongs upstream
and doesn't run the downstream startup code. The Cast code will, for each media element,
choose the first MediaRouteController that can play it, so the order of the list can be important.
The most specific MediaRouteControllers should be listed first, followed by more generic ones.
The downstream manifest replaces this block, and hence replaces the list of media route
controllers with its own list. -->
<meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYERS"
android:value="org.chromium.chrome.browser.media.remote.DefaultMediaRouteController"/>
{% endblock %}
</application>
</manifest>
|