Restart Chrome by killing it with an out-of-process Activity.
[chromium-blink-merge.git] / chrome / android / java / AndroidManifest.xml
blob27a657bd4ee9a3f2e9296010f58b831c35c20231
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3      Use of this source code is governed by a BSD-style license that can be
4      found in the LICENSE file. -->
6 <!--
7 Note: This is a jinja2 template, processed at build time into the final manifest.
9 Blocks denoted with { % block some_name % }foo{ % endblock % } can be overridden
10 by a child template that "extends" this file.
11 -->
13 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
14     xmlns:tools="http://schemas.android.com/tools"
15     package="{{ manifest_package }}"
16     tools:ignore="MissingVersion">
17     <!-- android:versionCode and android:versionName is set through gyp. See build/common.gypi -->
19     <uses-sdk android:minSdkVersion="{{min_sdk_version}}" android:targetSdkVersion="{{target_sdk_version}}" />
20     <uses-feature android:glEsVersion="0x00020000" />
22     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
23     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
24     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
26     <!--
27       Enable Bluetooth permission via uses-permission in tip of tree builds
28       only for ease of development on Android L and earlier. For consumer
29       channels use "runtime permission" uses-permission-sdk-m which provides
30       permission on Android M and later without a prompt.
31     -->
32     {% if channel in ['default'] %}
33         <uses-permission android:name="android.permission.BLUETOOTH"/>
34         <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
35     {% endif %}
36     <uses-permission-sdk-m android:name="android.permission.BLUETOOTH"/>
37     <uses-permission-sdk-m android:name="android.permission.BLUETOOTH_ADMIN"/>
39     <uses-permission android:name="android.permission.CAMERA" />
40     <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
41     <uses-permission android:name="android.permission.INTERNET"/>
42     <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
43     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
44     <uses-permission android:name="android.permission.NFC"/>
45     <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
46     <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
47     <uses-permission android:name="android.permission.RECORD_AUDIO"/>
48     <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
49     <uses-permission android:name="android.permission.VIBRATE"/>
50     <uses-permission android:name="android.permission.WAKE_LOCK"/>
51     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
52     <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
54     <permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" android:protectionLevel="signature" />
55     <permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKMARK_FOLDERS" android:protectionLevel="signatureOrSystem" />
56     <permission android:name="{{ manifest_package }}.TOS_ACKED" android:protectionLevel="signatureOrSystem" />
57     <!-- Only chrome can receive the messages and registration result -->
58     <permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE"
59         android:protectionLevel="signature" />
60     <permission android:name="{{ manifest_package }}.permission.DEBUG"
61                 android:label="Debug web pages"
62                 android:permissionGroup="android.permission-group.DEVELOPMENT_TOOLS"
63                 android:protectionLevel="signature" />
65     <uses-permission android:name="{{ manifest_package }}.permission.C2D_MESSAGE" />
66     <uses-permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKMARK_FOLDERS" />
67     <uses-permission android:name="{{ manifest_package }}.TOS_ACKED" />
69     <uses-permission android:name="com.chrome.permission.DEVICE_EXTRAS" />
70     <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
71     <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
72     <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
73     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
75     {% block extra_uses_permissions %}
76     {% endblock %}
78     <!-- We may use GPS but it's not required -->
79     <uses-feature android:name="android.hardware.location.gps" android:required="false" />
80     <uses-feature android:name="android.hardware.camera" android:required="false" />
82     <!--
83       android.permission.RECORD_AUDIO makes this implied, however we don't
84       require a microphone.
85     -->
86     <uses-feature android:name="android.hardware.microphone" android:required="false" />
87     <!--
88       The app is usable with keyboard/mouse. This feature is implicitly true for
89       all applications and needs to be disabled manually.
90     -->
91     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
93     <!-- Set android:largeHeap to "true" to allow more than the default
94          Java heap limit (32Mb on Nexus S, 48Mb on Xoom). -->
95     <application android:name="{% block application_name %}org.chromium.chrome.browser.ChromeApplication{% endblock %}"
96         android:icon="@mipmap/app_icon"
97         android:label="@string/app_name"
98         android:largeHeap="false"
99         android:allowBackup="false"
100         android:supportsRtl="true"
101         {% block extra_application_attributes %}{% endblock %}>
103         <!-- Samsung MultiWindow Support -->
104         <meta-data android:name="com.samsung.android.sdk.multiwindow.enable"
105             android:value="true" />
106         <meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.enable"
107             android:value="true" />
108         <meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.launchmode"
109             android:value="singleTask" />
110         <meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable"
111             android:value="true"/>
113         {% if channel in ['dev', 'canary', 'default'] %}
114         <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
115         {% endif %}
116         {% if configuration_policy == '1' %}
117         <meta-data android:name="android.content.APP_RESTRICTIONS"
118             android:resource="@xml/app_restrictions"/>
119         {% endif %}
121         <!-- Note: All activities directly or indirectly derived from ChromeActivity
122              must specify android:hardwareAccelerated="false".
124              Since this activity (shown in the launcher) and the application
125              (shown in Android's Settings/Apps list) share the same label, we
126              do not specify one here to allow it to inherit from the app. -->
127         <activity android:name="org.chromium.chrome.browser.document.ChromeLauncherActivity"
128             android:theme="@android:style/Theme.Translucent.NoTitleBar">
129         </activity>
130         <activity-alias android:name="com.google.android.apps.chrome.Main"
131             android:targetActivity="org.chromium.chrome.browser.document.ChromeLauncherActivity"
132             android:exported="true">
133             <intent-filter>
134                 <action android:name="android.intent.action.MAIN" />
135                 <category android:name="android.intent.category.DEFAULT" />
136                 <category android:name="android.intent.category.LAUNCHER" />
137                 <category android:name="android.intent.category.BROWSABLE" />
138                 <category android:name="android.intent.category.APP_BROWSER" />
139                 <category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
140                 {% if channel in ['dev', 'canary', 'default'] %}
141                 <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
142                 {% endif %}
143             </intent-filter>
144             <!-- Matches the common case of intents with no MIME type.
145                  Make sure to keep in sync with the next filter.  -->
146             <intent-filter>
147                 <action android:name="android.intent.action.VIEW" />
148                 <category android:name="android.intent.category.DEFAULT" />
149                 <category android:name="android.intent.category.BROWSABLE" />
150                 {% if channel in ['stable', 'default'] %}<data android:scheme="googlechrome" />{% endif %}
151                 <data android:scheme="http" />
152                 <data android:scheme="https" />
153                 <data android:scheme="about" />
154                 <data android:scheme="javascript" />
155             </intent-filter>
156             <!-- Same filter as above but with MIME types.  Intents that
157                  do not specify a MIME type won't match. -->
158             <intent-filter>
159                 <action android:name="android.intent.action.VIEW" />
160                 <category android:name="android.intent.category.DEFAULT" />
161                 <category android:name="android.intent.category.BROWSABLE" />
162                 {% if channel in ['stable', 'default'] %}<data android:scheme="googlechrome" />{% endif %}
163                 <data android:scheme="http" />
164                 <data android:scheme="https" />
165                 <data android:scheme="about" />
166                 <data android:scheme="content" />
167                 <data android:scheme="javascript" />
168                 <data android:mimeType="text/html"/>
169                 <data android:mimeType="text/plain"/>
170                 <data android:mimeType="application/xhtml+xml"/>
171             </intent-filter>
172             <!-- MHTML support, used for snapshots -->
173             <intent-filter>
174                 <action android:name="android.intent.action.VIEW" />
175                 <category android:name="android.intent.category.DEFAULT" />
176                 <data android:scheme="file" android:mimeType="multipart/related"/>
177             </intent-filter>
178             <intent-filter>
179                 <action android:name="android.intent.action.MEDIA_SEARCH" />
180                 <category android:name="android.intent.category.DEFAULT" />
181             </intent-filter>
182             <intent-filter>
183                 <action android:name="android.speech.action.VOICE_SEARCH_RESULTS" />
184                 <category android:name="android.intent.category.DEFAULT" />
185             </intent-filter>
186             <intent-filter>
187                 <action android:name="android.nfc.action.NDEF_DISCOVERED" />
188                 <category android:name="android.intent.category.DEFAULT" />
189                 <data android:scheme="http" />
190                 <data android:scheme="https" />
191             </intent-filter>
192             <intent-filter>
193                 <action android:name="android.intent.action.SEARCH" />
194             </intent-filter>
195             <intent-filter>
196                 <action android:name="com.sec.android.airview.HOVER" />
197             </intent-filter>
198             <meta-data android:name="android.app.searchable"
199                 android:resource="@xml/searchable" />
200         </activity-alias>
201         <activity android:name="org.chromium.chrome.browser.document.DocumentActivity"
202             android:exported="false"
203             android:theme="@style/MainTheme"
204             android:windowSoftInputMode="adjustResize"
205             android:taskAffinity=""
206             android:persistableMode="persistAcrossReboots"
207             android:autoRemoveFromRecents="false"
208             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
209             android:hardwareAccelerated="false">
210         </activity>
211         <activity-alias android:name="com.google.android.apps.chrome.document.DocumentActivity"
212             android:targetActivity="org.chromium.chrome.browser.document.DocumentActivity"
213             android:exported="false"/>
214         <activity android:name="org.chromium.chrome.browser.document.IncognitoDocumentActivity"
215             android:icon="@mipmap/incognito_app_icon"
216             android:exported="false"
217             android:theme="@style/IncognitoTheme"
218             android:windowSoftInputMode="adjustResize"
219             android:taskAffinity=""
220             android:persistableMode="persistNever"
221             android:autoRemoveFromRecents="false"
222             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
223             android:hardwareAccelerated="false">
224         </activity>
225         <activity-alias android:name="com.google.android.apps.chrome.document.IncognitoDocumentActivity"
226             android:targetActivity="org.chromium.chrome.browser.document.IncognitoDocumentActivity"
227             android:exported="false"/>
228         <activity android:name="org.chromium.chrome.browser.customtabs.CustomTabActivity"
229             android:theme="@style/MainTheme"
230             android:exported="false"
231             android:windowSoftInputMode="adjustResize"
232             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
233             android:hardwareAccelerated="false">
234         </activity>
235         <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity"
236              android:theme="@style/MainTheme"
237              android:exported="false"
238              android:windowBackground="@drawable/window_background"
239              android:windowSoftInputMode="adjustResize"
240              android:launchMode="singleTask"
241              android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
242              android:hardwareAccelerated="false">
243         </activity>
244         <activity android:name="org.chromium.chrome.browser.multiwindow.MultiInstanceChromeTabbedActivity"
245             android:theme="@style/MainTheme"
246             android:exported="false"
247             android:windowBackground="@drawable/window_background"
248             android:windowSoftInputMode="adjustResize"
249             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
250             android:hardwareAccelerated="false">
251         </activity>
252         <activity android:name="org.chromium.chrome.browser.sync.ui.PassphraseActivity"
253             android:theme="@style/MainTheme"
254             android:autoRemoveFromRecents="true">
255         </activity>
256         <activity android:name="org.chromium.chrome.browser.bookmark.ManageBookmarkActivity"
257             android:theme="@style/DialogWhenLargeHolo"
258             android:label="@string/save_bookmark"
259             android:windowSoftInputMode="stateHidden|adjustPan"
260             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
261             <intent-filter>
262                 <action android:name="android.intent.action.VIEW" />
263                 <category android:name="android.intent.category.DEFAULT" />
264                 <category android:name="android.intent.category.BROWSABLE" />
265                 <data android:scheme="chrome" android:host="editbookmark" />
266             </intent-filter>
267             <intent-filter>
268                 <!-- This is sent by the BrowserProviderProxy as a result of
269                      calls to android.provider.Browser.saveBookmark(). -->
270                 <action android:name="{{ manifest_package }}.ADDBOOKMARK" />
271                 <category android:name="android.intent.category.DEFAULT" />
272             </intent-filter>
273         </activity>
274         <activity android:name="org.chromium.chrome.browser.firstrun.FirstRunActivity"
275             android:theme="@style/DialogWhenLarge"
276             android:label="@string/fre_label"
277             android:launchMode="singleTop"
278             android:windowSoftInputMode="stateHidden|adjustPan"
279             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
280         </activity>
281         <activity android:name="org.chromium.chrome.browser.preferences.Preferences"
282             android:theme="@style/PreferencesTheme"
283             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
284             android:label="@string/preferences"
285             android:exported="false">
286         </activity>
287         <activity android:name="org.chromium.chrome.browser.EmbedContentViewActivity"
288             android:theme="@style/ThemeWithActionBar"
289             android:hardwareAccelerated="false"
290             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
291         </activity>
292         <activity android:name="org.chromium.chrome.browser.prerender.PrerenderAPITestActivity"
293             android:theme="@style/MainTheme"
294             android:exported="true">
295         </activity>
296         <activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkActivity"
297             android:theme="@style/EnhancedBookmarkDialog"
298             android:windowSoftInputMode="stateAlwaysHidden"
299             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
300         </activity>
301         <activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkEditActivity"
302             android:theme="@style/EnhancedBookmarkDialogWhite"
303             android:label="@string/edit_bookmark"
304             android:windowSoftInputMode="stateHidden"
305             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
306         </activity>
307         <activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkAddEditFolderActivity"
308             android:theme="@style/EnhancedBookmarkDialogWhite"
309             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
310         </activity>
311         <activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkFolderSelectActivity"
312             android:theme="@style/EnhancedBookmarkDialogWhite"
313             android:windowSoftInputMode="stateAlwaysHidden"
314             android:label="@string/enhanced_bookmark_choose_folder"
315             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
316         </activity>
317         <activity android:name="org.chromium.chrome.browser.enhancedbookmarks.EnhancedBookmarkSigninActivity"
318             android:theme="@style/EnhancedBookmarkDialogWhite"
319             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc" >
320         </activity>
322         <!--
323             Activities for webapps.
324             TODO(dfalcantara): Remove the aliases for the WebappActivities once we're pretty sure
325                                that users don't have any instances of the original Activity still
326                                running.
327         -->
328         <activity-alias android:name="com.google.android.apps.chrome.webapps.WebappManager"
329             android:targetActivity="org.chromium.chrome.browser.document.ChromeLauncherActivity">
330             <intent-filter>
331                 <action android:name="com.google.android.apps.chrome.webapps.WebappManager.ACTION_START_WEBAPP" />
332                 <category android:name="android.intent.category.DEFAULT" />
333             </intent-filter>
334         </activity-alias>
335         <activity android:name="org.chromium.chrome.browser.webapps.WebappActivity"
336             android:theme="@style/MainTheme"
337             android:label="@string/webapp_activity_title"
338             android:documentLaunchMode="intoExisting"
339             android:windowSoftInputMode="adjustResize"
340             android:persistableMode="persistNever"
341             android:hardwareAccelerated="false"
342             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
343         </activity>
344         <activity-alias android:name="com.google.android.apps.chrome.webapps.WebappActivity"
345             android:targetActivity="org.chromium.chrome.browser.webapps.WebappActivity"
346             android:label="@string/webapp_activity_title">
347         </activity-alias>
348         {% for i in range(10) %}
349         <activity android:name="org.chromium.chrome.browser.webapps.WebappActivity{{ i }}"
350             android:theme="@style/MainTheme"
351             android:icon="@mipmap/app_shortcut_icon"
352             android:label="@string/webapp_activity_title"
353             android:launchMode="singleTask"
354             android:windowSoftInputMode="adjustResize"
355             android:persistableMode="persistNever"
356             android:hardwareAccelerated="false"
357             android:taskAffinity="{{ manifest_package }}.webapps.WebappActivity{{ i }}"
358             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc">
359         </activity>
360         <activity-alias android:name="com.google.android.apps.chrome.webapps.WebappActivity{{ i }}"
361             android:targetActivity="org.chromium.chrome.browser.webapps.WebappActivity{{ i }}"
362             android:icon="@mipmap/app_shortcut_icon"
363             android:label="@string/webapp_activity_title">
364         </activity-alias>
365         {% endfor %}
367         <activity android:name="org.chromium.chrome.browser.media.remote.ExpandedControllerActivity"
368             android:theme="@style/MainTheme"
369             android:label="Chrome.ExpandedControllerActivity"
370             android:hardwareAccelerated="true"
371             android:launchMode="singleTask"
372             android:noHistory="true"
373             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc"
374             android:excludeFromRecents="true">
375         </activity>
377         <activity android:name="org.chromium.chrome.browser.childaccounts.ResetDataActivity"
378             android:theme="@android:style/Theme.Translucent.NoTitleBar"
379             android:exported="true"
380             android:excludeFromRecents="true">
381         </activity>
383         <!-- This activity is started along with IncognitoDocumentActivity, so it also must
384              disable hardware acceleration. Besides, it doesn't have any UI. -->
385         <activity android:name="org.chromium.chrome.browser.document.CipherKeyActivity"
386             android:launchMode="singleInstance"
387             android:theme="@android:style/Theme.Translucent.NoTitleBar"
388             android:excludeFromRecents="true"
389             android:hardwareAccelerated="false">
390         </activity>
392         <!-- This activity is used to restart the main Chrome process.  Should never be exported. -->
393         <activity android:name="org.chromium.chrome.browser.BrowserRestartActivity"
394             android:launchMode="singleInstance"
395             android:exported="false"
396             android:theme="@android:style/Theme.NoDisplay"
397             android:excludeFromRecents="true"
398             android:process=":browser_restart_process">
399         </activity>
401         <!-- Providers for chrome data. -->
402         <provider android:name="org.chromium.chrome.browser.ChromeBrowserProvider"
403             android:authorities="{{ manifest_package }}.ChromeBrowserProvider;{{ manifest_package }}.browser;{{ manifest_package }}"
404             android:exported="true">
405             <path-permission android:path="/bookmarks/search_suggest_query"
406                     android:readPermission="android.permission.GLOBAL_SEARCH" />
407         </provider>
409         <!-- Provider for FileProvider. -->
410         <provider android:name="org.chromium.chrome.browser.util.CompatibilityFileProvider"
411             android:authorities="{{ manifest_package }}.FileProvider"
412             android:exported="false"
413             android:grantUriPermissions="true">
414             <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
415                 android:resource="@xml/file_paths" />
416         </provider>
418         <!-- Sync adapter for browser invalidation. -->
419         <service android:name="org.chromium.chrome.browser.invalidation.ChromeBrowserSyncAdapterService"
420             android:exported="false">
421             <intent-filter>
422                 <action android:name="android.content.SyncAdapter" />
423             </intent-filter>
424             <meta-data android:name="android.content.SyncAdapter"
425                        android:resource="@xml/syncadapter" />
426         </service>
428         <!-- Broadcast receiver that will be notified of account changes -->
429         <receiver android:name="org.chromium.chrome.browser.services.AccountsChangedReceiver">
430             <intent-filter>
431                 <action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
432             </intent-filter>
433         </receiver>
435         <!-- Precache service. -->
436         <service android:name="org.chromium.chrome.browser.precache.PrecacheService"
437             android:exported="false" />
438         <receiver android:name="org.chromium.chrome.browser.precache.PrecacheServiceLauncher">
439             <intent-filter>
440                 <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
441                 <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
442                 <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
443             </intent-filter>
444         </receiver>
446         <receiver android:name="org.chromium.chrome.browser.firstrun.ToSAckedReceiver"
447             android:permission="{{ manifest_package }}.TOS_ACKED">
448             <intent-filter>
449                 <action android:name="{{ manifest_package }}.TOS_ACKED" />
450             </intent-filter>
451         </receiver>
453         <activity android:name="org.chromium.chrome.browser.bookmark.ShortcutActivity"
454             android:enabled="{{ 'true' if channel in ['stable', 'default'] else 'false' }}"
455             android:label="@string/bookmark_shortcut_name"
456             android:icon="@mipmap/bookmark_shortcut_icon"
457             android:theme="@style/ThemeWithActionBar"
458             android:hardwareAccelerated="true">
460             <intent-filter>
461                 <action android:name="android.intent.action.CREATE_SHORTCUT" />
462                 <category android:name="android.intent.category.DEFAULT" />
463             </intent-filter>
464         </activity>
466         <receiver android:name="com.google.android.apps.chrome.appwidget.bookmarks.BookmarkThumbnailWidgetProvider"
467             android:enabled="{{ 'true' if channel in ['stable', 'default'] else 'false' }}"
468             android:label="@string/bookmarks">
469             <intent-filter>
470                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
471                 <action android:name=".BOOKMARK_APPWIDGET_UPDATE" />
472             </intent-filter>
473             <meta-data
474                 android:name="android.appwidget.provider"
475                 android:resource="@xml/bookmark_thumbnail_widget_info" />
476         </receiver>
477         <service android:name="org.chromium.chrome.browser.bookmarkswidget.BookmarkThumbnailWidgetService"
478             android:permission="android.permission.BIND_REMOTEVIEWS"
479             android:exported="false" />
480         <receiver android:name="org.chromium.chrome.browser.bookmarkswidget.BookmarkWidgetProxy"
481             android:exported="false" />
483         <!-- Receiver for GCM messages. Rebroadcasts them locally for sync and cloudprint. -->
484         <receiver android:name="com.google.ipc.invalidation.external.client.contrib.MultiplexingGcmListener$GCMReceiver"
485             android:exported="true"
486             android:permission="com.google.android.c2dm.permission.SEND">
487             <intent-filter>
488                 <action android:name="com.google.android.c2dm.intent.RECEIVE" />
489                 <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
490                <category android:name="{{ manifest_package }}"/>
491             </intent-filter>
492         </receiver>
493         <service android:name="com.google.ipc.invalidation.external.client.contrib.MultiplexingGcmListener"
494             android:exported="false">
495             <meta-data android:name="sender_ids"
496                 android:value="cloudprint.c2dm@gmail.com,ipc.invalidation@gmail.com"/>
497         </service>
499         <!-- Notification service for sync. -->
500         <meta-data android:name="ipc.invalidation.ticl.listener_service_class"
501             android:value="org.chromium.components.invalidation.InvalidationClientService"/>
502         <service android:name="org.chromium.components.invalidation.InvalidationClientService"
503             android:exported="false">
504             <intent-filter>
505               <action android:name="com.google.ipc.invalidation.AUTH_TOKEN_REQUEST"/>
506             </intent-filter>
507         </service>
508         <service android:name="com.google.ipc.invalidation.ticl.android2.TiclService"
509             android:exported="false"/>
510         <service android:name="com.google.ipc.invalidation.ticl.android2.channel.AndroidMessageSenderService"
511             android:exported="false"/>
512         <receiver android:name="com.google.ipc.invalidation.ticl.android2.AndroidInternalScheduler$AlarmReceiver"
513             android:exported="false"/>
514         <receiver android:name="com.google.ipc.invalidation.external.client2.contrib.AndroidListener$AlarmReceiver"
515             android:exported="false"/>
517         <!-- Notification service multiplexed GCM receiver -->
518         <service android:name="com.google.ipc.invalidation.ticl.android2.channel.AndroidMessageReceiverService"
519             android:exported="false"
520             android:enabled="true"/>
521         <receiver android:name="com.google.ipc.invalidation.ticl.android2.channel.AndroidMessageReceiverService$Receiver"
522             android:exported="false">
523             <intent-filter>
524                 <action android:name="com.google.ipc.invalidation.gcmmplex.EVENT" />
525             </intent-filter>
526         </receiver>
528         <!-- GCMDriver multiplexed GCM receiver -->
529         <service android:name="org.chromium.chrome.browser.services.gcm.GCMListener"
530             android:exported="false"/>
531         <receiver android:name="org.chromium.chrome.browser.services.gcm.GCMListener$Receiver"
532             android:exported="false">
533             <intent-filter>
534                 <action android:name="com.google.ipc.invalidation.gcmmplex.EVENT" />
535             </intent-filter>
536         </receiver>
538         <!-- Android Notification service listener -->
539         <service android:name="org.chromium.chrome.browser.notifications.NotificationService"
540             android:exported="false"/>
541         <receiver android:name="org.chromium.chrome.browser.notifications.NotificationService$Receiver"
542             android:exported="false">
543             <intent-filter>
544                 <action android:name="org.chromium.chrome.browser.notifications.CLICK_NOTIFICATION" />
545                 <action android:name="org.chromium.chrome.browser.notifications.CLOSE_NOTIFICATION" />
546             </intent-filter>
547         </receiver>
549         <!-- Service Worker Background Sync service listener -->
550         <service android:name="org.chromium.content.browser.BackgroundSyncLauncherService"
551             android:exported="false" />
552         <receiver android:name="org.chromium.content.browser.BackgroundSyncLauncherService$Receiver">
553             <intent-filter>
554                 <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
555             </intent-filter>
556         </receiver>
558         <service android:name="org.chromium.chrome.browser.prerender.ChromePrerenderService"
559             android:exported="true"
560             tools:ignore="ExportedService" />
561         <service android:name="org.chromium.chrome.browser.customtabs.CustomTabsConnectionService"
562             android:exported="true"
563             tools:ignore="ExportedService">
564             <intent-filter>
565               <action android:name="android.support.customtabs.action.CustomTabsService" />
566             </intent-filter>
567         </service>
568         <service android:name="org.chromium.chrome.browser.crash.LogcatExtractionService"
569                  android:exported="false"/>
570         <service android:name="org.chromium.chrome.browser.crash.MinidumpPreparationService"
571                  android:exported="false"/>
572         <service android:name="org.chromium.chrome.browser.crash.MinidumpUploadService"
573             android:exported="false"/>
575         <service android:name="org.chromium.chrome.browser.omaha.OmahaClient"
576             android:exported="false"/>
578         <!-- The following service entries exist in order to allow us to
579              start more than one sandboxed process. -->
581         <!-- NOTE: If you change the value of "android:process" for the below services,
582              you also need to update kHelperProcessExecutableName in chrome_constants.cc. -->
583         {% set num_sandboxed_services = 20 %}
584         <meta-data android:name="org.chromium.content.browser.NUM_SANDBOXED_SERVICES"
585             android:value="{{ num_sandboxed_services }}"/>
586         {% for i in range(num_sandboxed_services) %}
587         <service android:name="org.chromium.content.app.SandboxedProcessService{{ i }}"
588             android:process=":sandboxed_process{{ i }}"
589             android:permission="{{ manifest_package }}.permission.CHILD_SERVICE"
590             android:isolatedProcess="true"
591             android:exported="false" />
592         {% endfor %}
594         {% set num_privileged_services = 3 %}
595         <meta-data android:name="org.chromium.content.browser.NUM_PRIVILEGED_SERVICES"
596             android:value="{{ num_privileged_services }}"/>
597         {% for i in range(num_privileged_services) %}
598         <service android:name="org.chromium.content.app.PrivilegedProcessService{{ i }}"
599             android:process=":privileged_process{{ i }}"
600             android:permission="{{ manifest_package }}.permission.CHILD_SERVICE"
601             android:isolatedProcess="false"
602             android:exported="false" />
603         {% endfor %}
605         <receiver android:name="org.chromium.chrome.browser.download.OpenDownloadReceiver">
606             <intent-filter>
607                 <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
608             </intent-filter>
609         </receiver>
611         <receiver android:name="org.chromium.base.PowerStatusReceiver">
612             <intent-filter>
613                 <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
614                 <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
615             </intent-filter>
616         </receiver>
618         <service android:name="org.chromium.chrome.browser.media.remote.NotificationTransportControl$ListenerService" />
620         <!--  Receiver for lock screen input when casting -->
621         <receiver android:name="org.chromium.chrome.browser.media.remote.LockScreenTransportControl$MediaButtonIntentReceiver"/>
623         <service android:name="org.chromium.chrome.browser.media.MediaNotificationService"
624             android:exported="false"/>
625         <service android:name="org.chromium.chrome.browser.media.ui.NotificationMediaPlaybackControls$ListenerService"
626             android:exported="false"/>
628         <meta-data android:name="com.google.android.gms.version"
629             android:value="@integer/google_play_services_version" />
631         <meta-data android:name="org.chromium.content.browser.SMART_CLIP_PROVIDER"
632             android:value="org.chromium.content.browser.SmartClipProvider"/>
633         <meta-data android:name="org.chromium.components.service_tab_launcher.SERVICE_TAB_LAUNCHER"
634                    android:value="org.chromium.chrome.browser.ChromeServiceTabLauncher" />
636         {% block extra_application_definitions %}
638         <!-- Media route controllers to use for remote playback (cast).
639              This is here, rather than in code, since it varies between upstream and downstream,
640              yet we need this list of classes in the notification service, which belongs upstream
641              and doesn't run the downstream startup code. The Cast code will, for each media element,
642              choose the first MediaRouteController that can play it, so the order of the list can be important.
643              The most specific MediaRouteControllers should be listed first, followed by more generic ones.
644              The downstream manifest replaces this block, and hence replaces the list of media route
645              controllers with its own list. -->
646         <meta-data android:name="org.chromium.content.browser.REMOTE_MEDIA_PLAYERS"
647             android:value="org.chromium.chrome.browser.media.remote.DefaultMediaRouteController"/>
649         {% endblock %}
650     </application>
651 </manifest>