blob: 97ac3d716ec6f1cb3cfec187bbfcd0a02a2c53af [file] [log] [blame]
The Android Open Source Project96c5af42009-03-03 19:32:22 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
Makoto Onukid6a29782010-07-21 14:29:49 -07007
The Android Open Source Project96c5af42009-03-03 19:32:22 -08008 http://www.apache.org/licenses/LICENSE-2.0
Makoto Onukid6a29782010-07-21 14:29:49 -07009
The Android Open Source Project96c5af42009-03-03 19:32:22 -080010 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18 package="com.android.email">
Jeff Hamilton1e56db62010-02-11 16:25:49 -060019
20 <original-package android:name="com.android.email" />
21
The Android Open Source Project96c5af42009-03-03 19:32:22 -080022 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
23 <uses-permission android:name="android.permission.READ_CONTACTS"/>
24 <uses-permission android:name="android.permission.READ_OWNER_DATA"/>
25 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
26 <uses-permission android:name="android.permission.INTERNET"/>
27 <uses-permission android:name="android.permission.VIBRATE"/>
Andrew Stadlera392e072009-06-04 15:16:43 -070028 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Marc Blank03ecce72009-08-20 14:38:12 -070029 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
Andrew Stadler627d1ae2009-07-24 16:25:18 -070030 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
Marc Blank948c36f2009-07-27 10:24:58 -070031 <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
Fred Quintana4c195432009-08-17 13:05:44 -070032 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
33 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
34
Marc Blankb6493a02009-07-05 12:54:49 -070035 <!-- For EAS purposes; could be removed when EAS has a permanent home -->
36 <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
Marc Blankf3fcb892009-10-28 18:12:51 -070037 <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
38 <uses-permission android:name="android.permission.READ_CALENDAR"/>
Marc Blankb6493a02009-07-05 12:54:49 -070039
Andy Stadlerdab90a72009-05-06 17:50:29 -070040 <!-- Only required if a store implements push mail and needs to keep network open -->
41 <uses-permission android:name="android.permission.WAKE_LOCK"/>
42 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
Andrew Stadler22722202009-09-20 17:23:59 -070043
44 <!-- Grant permission to other apps to view attachments -->
The Android Open Source Project96c5af42009-03-03 19:32:22 -080045 <permission android:name="com.android.email.permission.READ_ATTACHMENT"
46 android:permissionGroup="android.permission-group.MESSAGES"
47 android:protectionLevel="dangerous"
48 android:label="@string/read_attachment_label"
49 android:description="@string/read_attachment_desc"/>
50 <uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"/>
Andrew Stadler22722202009-09-20 17:23:59 -070051
52 <!-- Grant permission to system apps to access provider (see provider below) -->
53 <permission android:name="com.android.email.permission.ACCESS_PROVIDER"
54 android:protectionLevel="signatureOrSystem"
55 android:label="@string/permission_access_provider_label"
56 android:description="@string/permission_access_provider_desc"/>
57 <uses-permission android:name="com.android.email.permission.ACCESS_PROVIDER"/>
58
Andy Stadler5c4c0ab2010-11-23 12:06:44 -080059 <application
60 android:icon="@mipmap/icon"
61 android:label="@string/app_name"
Makoto Onuki5d1e32a2010-08-24 13:29:00 -070062 android:name="Email"
Makoto Onukib43c9912010-11-15 12:01:45 -080063 android:theme="@android:style/Theme.Holo.Light"
Makoto Onuki3aca79f2010-11-01 15:37:14 -070064 android:hardwareAccelerated="false"
Makoto Onuki5d1e32a2010-08-24 13:29:00 -070065 >
Andrew Stadlercd095452010-11-01 16:15:15 -070066 <!-- STOPSHIP android:hardwareAccelerated should be "true" -->
Andrew Stadler842ac042010-02-10 23:17:55 -080067 <activity
Makoto Onuki191448b2010-08-04 15:38:25 -070068 android:name=".activity.Welcome"
Makoto Onukid6a29782010-07-21 14:29:49 -070069 >
70 <intent-filter>
71 <action android:name="android.intent.action.MAIN" />
Makoto Onuki191448b2010-08-04 15:38:25 -070072 <category android:name="android.intent.category.DEFAULT" />
Makoto Onukid6a29782010-07-21 14:29:49 -070073 <category android:name="android.intent.category.LAUNCHER" />
74 </intent-filter>
75 </activity>
Andrew Stadler842ac042010-02-10 23:17:55 -080076 <activity
77 android:name=".activity.UpgradeAccounts"
78 android:label="@string/upgrade_accounts_title"
79 android:theme="@android:style/Theme.NoTitleBar"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -070080 android:configChanges="keyboardHidden|orientation"
81 >
Andrew Stadler842ac042010-02-10 23:17:55 -080082 </activity>
Marc Blank06275c42009-08-05 21:48:15 -070083 <!-- Must be exported in order for the AccountManager to launch it -->
The Android Open Source Project96c5af42009-03-03 19:32:22 -080084 <activity
85 android:name=".activity.setup.AccountSetupBasics"
86 android:label="@string/account_setup_basics_title"
Marc Blank06275c42009-08-05 21:48:15 -070087 android:exported="true"
The Android Open Source Project96c5af42009-03-03 19:32:22 -080088 >
89 </activity>
90 <activity
91 android:name=".activity.setup.AccountSetupAccountType"
92 android:label="@string/account_setup_account_type_title"
93 >
94 </activity>
95 <activity
96 android:name=".activity.setup.AccountSetupIncoming"
97 android:label="@string/account_setup_incoming_title"
98 >
99 </activity>
100 <activity
101 android:name=".activity.setup.AccountSetupOutgoing"
102 android:label="@string/account_setup_outgoing_title"
103 >
104 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800105 <!--EXCHANGE-REMOVE-SECTION-START-->
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800106 <activity
Andy Stadler87c43ca2009-04-03 16:02:55 -0700107 android:name=".activity.setup.AccountSetupExchange"
108 android:label="@string/account_setup_exchange_title"
109 >
110 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800111 <!--EXCHANGE-REMOVE-SECTION-END-->
Andy Stadler87c43ca2009-04-03 16:02:55 -0700112 <activity
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800113 android:name=".activity.setup.AccountSetupOptions"
114 android:label="@string/account_setup_options_title"
115 >
116 </activity>
117 <activity
118 android:name=".activity.setup.AccountSetupNames"
119 android:label="@string/account_setup_names_title"
120 >
121 </activity>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800122 <activity
Andrew Stadler9c65c142010-09-01 21:17:53 -0700123 android:name=".activity.setup.AccountSettingsXL"
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800124 android:label="@string/account_settings_action"
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800125 >
Makoto Onuki0fef1f12010-02-16 14:04:25 -0800126 <intent-filter>
127 <action android:name="com.android.email.activity.setup.ACCOUNT_MANAGER_ENTRY" />
128 <category android:name="android.intent.category.DEFAULT" />
129 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800130 </activity>
Andrew Stadler3d2b3b32010-02-05 11:10:39 -0800131 <activity
132 android:name=".activity.setup.AccountSecurity"
133 android.label="@string/account_security_title"
134 >
135 </activity>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800136
137 <activity
138 android:name=".activity.Debug"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -0700139 android:label="@string/debug_title"
140 >
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800141 </activity>
142 <activity
Andrew Stadler72dce732009-07-09 12:33:09 -0700143 android:name=".activity.AccountFolderList"
Andrew Stadler0d6ce632010-06-28 16:00:25 -0700144 android:launchMode="singleTop"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -0700145 >
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800146 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700147
148 <activity
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800149 android:name=".activity.AccountShortcutPicker"
150 android:label="@string/app_name"
151 android:enabled="false"
152 >
153 <intent-filter>
154 <action android:name="android.intent.action.CREATE_SHORTCUT" />
155 <category android:name="android.intent.category.DEFAULT" />
156 </intent-filter>
157 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700158
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800159 <activity
Mihai Predab0528852010-02-10 16:46:41 +0100160 android:name=".activity.MailboxList"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -0700161 >
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800162 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700163
Andrew Stadler47654722009-06-30 15:12:23 -0700164 <activity
Mihai Predab0528852010-02-10 16:46:41 +0100165 android:name=".activity.MessageList"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -0700166 >
Makoto Onuki191448b2010-08-04 15:38:25 -0700167 </activity>
168 <activity
169 android:name=".activity.MessageListXL"
Makoto Onuki191448b2010-08-04 15:38:25 -0700170 >
Andrew Stadler47654722009-06-30 15:12:23 -0700171 </activity>
Makoto Onukia9428582010-03-26 11:01:12 -0700172
173 <!--
174 This activity catches shortcuts to account created on Android 1.6 and before,
175 and redirects to MessageList.
176 singleTask is necessary to make sure the activity is really launched.
177 Without it, the framework brings up the app to front, but doesn't necessarily
178 launch the activity.
179 -->
180 <activity
181 android:name=".activity.FolderMessageList"
182 android:launchMode="singleTask"
183 >
184 <intent-filter>
185 <!-- This action is only to allow an entry point for launcher shortcuts -->
186 <action android:name="android.intent.action.MAIN" />
187 </intent-filter>
188 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700189
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800190 <activity
191 android:name=".activity.MessageView"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -0700192 >
Makoto Onukie105fbe2010-07-26 14:35:06 -0700193 </activity>
194 <activity
195 android:name=".activity.MessageFileView"
Makoto Onuki2f4e87c2010-08-25 11:14:19 -0700196 >
Marc Blank391ae252010-05-04 15:33:08 -0700197 <intent-filter android:label="@string/app_name">
198 <action android:name="android.intent.action.VIEW" />
199 <data android:mimeType="application/eml" />
200 <data android:mimeType="message/rfc822" />
201 <category android:name="android.intent.category.DEFAULT" />
202 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800203 </activity>
204 <activity
205 android:name=".activity.MessageCompose"
Makoto Onukibf678772010-11-03 14:20:10 -0700206 android:label="@string/compose_title"
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800207 android:enabled="false"
208 >
209 <intent-filter>
210 <action android:name="android.intent.action.VIEW" />
211 <action android:name="android.intent.action.SENDTO" />
212 <data android:scheme="mailto" />
213 <category android:name="android.intent.category.DEFAULT" />
214 <category android:name="android.intent.category.BROWSABLE" />
215 </intent-filter>
216 <intent-filter android:label="@string/app_name">
217 <action android:name="android.intent.action.SEND" />
Andrew Stadler92a1ff92009-09-27 23:49:10 -0700218 <data android:mimeType="*/*" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800219 <category android:name="android.intent.category.DEFAULT" />
220 </intent-filter>
Mihai Predafa2238c2009-09-01 16:25:30 +0200221 <intent-filter android:label="@string/app_name">
222 <action android:name="android.intent.action.SEND_MULTIPLE" />
223 <data android:mimeType="*/*" />
224 <category android:name="android.intent.category.DEFAULT" />
225 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800226 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800227 <!--EXCHANGE-REMOVE-SECTION-START-->
Makoto Onuki898283b2010-05-27 18:29:35 -0700228 <receiver android:name="com.android.exchange.EmailSyncAlarmReceiver"/>
229 <receiver android:name="com.android.exchange.MailboxAlarmReceiver"/>
Makoto Onuki91237e92010-02-02 15:06:52 -0800230 <!--EXCHANGE-REMOVE-SECTION-END-->
Marc Blank53cb37c2009-08-28 10:33:18 -0700231
Makoto Onuki898283b2010-05-27 18:29:35 -0700232 <receiver android:name=".service.EmailBroadcastReceiver" android:enabled="true">
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800233 <intent-filter>
234 <action android:name="android.intent.action.BOOT_COMPLETED" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800235 <action android:name="android.intent.action.DEVICE_STORAGE_LOW" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800236 <action android:name="android.intent.action.DEVICE_STORAGE_OK" />
237 </intent-filter>
Makoto Onuki42e3f102010-06-30 15:43:12 -0700238 <!-- To handle secret code to activate the debug screen. -->
239 <intent-filter>
240 <action android:name="android.provider.Telephony.SECRET_CODE" />
241 <!-- "36245" = "email" -->
242 <data android:scheme="android_secret_code" android:host="36245" />
243 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800244 </receiver>
Makoto Onuki898283b2010-05-27 18:29:35 -0700245 <service android:name=".service.EmailBroadcastProcessorService" />
Marc Blank53cb37c2009-08-28 10:33:18 -0700246
Andrew Stadlerd6286082010-02-01 16:48:16 -0800247 <!-- Support for DeviceAdmin / DevicePolicyManager. See SecurityPolicy class for impl. -->
248 <receiver
249 android:name=".SecurityPolicy$PolicyAdmin"
250 android:label="@string/device_admin_label"
251 android:description="@string/device_admin_description"
252 android:permission="android.permission.BIND_DEVICE_ADMIN" >
253 <meta-data
254 android:name="android.app.device_admin"
255 android:resource="@xml/device_admin" />
256 <intent-filter>
257 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
258 </intent-filter>
259 </receiver>
Makoto Onukib854d052010-01-28 10:07:51 -0800260
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800261 <service
262 android:name=".service.MailService"
263 android:enabled="false"
264 >
265 </service>
Makoto Onukid6a29782010-07-21 14:29:49 -0700266
Marc Blankc184f362010-08-23 18:48:25 -0700267 <service
Makoto Onuki45f530b2010-08-24 11:12:53 -0700268 android:name=".Controller$ControllerService"
269 android:enabled="true"
Marc Blank7894ee82010-08-18 08:50:45 -0700270 >
271 </service>
272
273 <service
Marc Blank09fd4d02010-08-09 17:48:53 -0700274 android:name=".service.AttachmentDownloadService"
275 android:enabled="false"
276 >
277 </service>
278
Makoto Onuki91237e92010-02-02 15:06:52 -0800279 <!--EXCHANGE-REMOVE-SECTION-START-->
Marc Blanke6cc6622010-07-08 10:08:47 -0700280 <!--Required stanza to register the PopImapAuthenticatorService with AccountManager -->
281 <service
282 android:name=".service.PopImapAuthenticatorService"
283 android:exported="true"
284 android:enabled="true"
285 >
286 <intent-filter>
287 <action android:name="android.accounts.AccountAuthenticator" />
288 </intent-filter>
289 <meta-data
290 android:name="android.accounts.AccountAuthenticator"
291 android:resource="@xml/pop_imap_authenticator"
292 />
293 </service>
294
295 <!--Required stanza to register the PopImapSyncAdapterService with SyncManager -->
296 <service
297 android:name="com.android.email.service.PopImapSyncAdapterService"
298 android:exported="true">
299 <intent-filter>
300 <action android:name="android.content.SyncAdapter" />
301 </intent-filter>
302 <meta-data android:name="android.content.SyncAdapter"
303 android:resource="@xml/syncadapter_pop_imap" />
304 </service>
305
306 <!--EXCHANGE-REMOVE-SECTION-START-->
307 <!--Required stanza to register the EAS EmailSyncAdapterService with SyncManager -->
308 <service
309 android:name="com.android.exchange.EmailSyncAdapterService"
310 android:exported="true">
311 <intent-filter>
312 <action android:name="android.content.SyncAdapter" />
313 </intent-filter>
314 <meta-data android:name="android.content.SyncAdapter"
315 android:resource="@xml/syncadapter_email" />
316 </service>
317
318 <!--Required stanza to register the EAS ContactsSyncAdapterService with SyncManager -->
Makoto Onukid6a29782010-07-21 14:29:49 -0700319 <service
320 android:name="com.android.exchange.ContactsSyncAdapterService"
321 android:exported="true">
Marc Blank948c36f2009-07-27 10:24:58 -0700322 <intent-filter>
323 <action android:name="android.content.SyncAdapter" />
324 </intent-filter>
325 <meta-data android:name="android.content.SyncAdapter"
326 android:resource="@xml/syncadapter_contacts" />
327 </service>
328
Marc Blanke6cc6622010-07-08 10:08:47 -0700329 <!--Required stanza to register the EAS CalendarSyncAdapterService with SyncManager -->
Marc Blankf3fcb892009-10-28 18:12:51 -0700330 <service
331 android:name="com.android.exchange.CalendarSyncAdapterService"
332 android:exported="true">
333 <intent-filter>
334 <action android:name="android.content.SyncAdapter" />
335 </intent-filter>
336 <meta-data android:name="android.content.SyncAdapter"
337 android:resource="@xml/syncadapter_calendar" />
338 </service>
339
Marc Blank1b65ea52010-08-27 15:02:31 -0700340 <!-- Add android:process=":remote" below to enable ExchangeService as a separate process -->
Marc Blank2c67f1f2009-06-16 12:03:45 -0700341 <service
Marc Blank1b65ea52010-08-27 15:02:31 -0700342 android:name="com.android.exchange.ExchangeService"
Marc Blank2c67f1f2009-06-16 12:03:45 -0700343 android:enabled="true"
344 >
345 </service>
Andrew Stadler17250422009-07-07 09:39:11 -0700346
347 <!--Required stanza to register the EasAuthenticatorService with AccountManager -->
Makoto Onukib854d052010-01-28 10:07:51 -0800348 <service
349 android:name=".service.EasAuthenticatorService"
350 android:exported="true"
351 android:enabled="true"
352 >
Andrew Stadler17250422009-07-07 09:39:11 -0700353 <intent-filter>
354 <action android:name="android.accounts.AccountAuthenticator" />
355 </intent-filter>
Makoto Onukib854d052010-01-28 10:07:51 -0800356 <meta-data
357 android:name="android.accounts.AccountAuthenticator"
Marc Blanke6cc6622010-07-08 10:08:47 -0700358 android:resource="@xml/eas_authenticator"
Makoto Onukib854d052010-01-28 10:07:51 -0800359 />
360 </service>
361 <!--
362 EasAuthenticatorService with the altenative label. Disabled by default,
363 and OneTimeInitializer enables it if the vendor policy tells so.
364 -->
365 <service
366 android:name=".service.EasAuthenticatorServiceAlternate"
367 android:exported="true"
368 android:enabled="false"
369 >
370 <intent-filter>
371 <action android:name="android.accounts.AccountAuthenticator" />
372 </intent-filter>
373 <meta-data
374 android:name="android.accounts.AccountAuthenticator"
375 android:resource="@xml/authenticator_alternate"
376 />
Andrew Stadler17250422009-07-07 09:39:11 -0700377 </service>
Makoto Onuki91237e92010-02-02 15:06:52 -0800378 <!--EXCHANGE-REMOVE-SECTION-END-->
Andrew Stadler17250422009-07-07 09:39:11 -0700379
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800380 <provider
381 android:name=".provider.AttachmentProvider"
382 android:authorities="com.android.email.attachmentprovider"
383 android:multiprocess="true"
384 android:grantUriPermissions="true"
385 android:readPermission="com.android.email.permission.READ_ATTACHMENT"
386 />
Andrew Stadler22722202009-09-20 17:23:59 -0700387
388 <!-- This provider MUST be protected by strict permissions, as granting access to
389 it exposes user passwords and other confidential information. -->
Marc Blankc5f2a7a2009-05-27 15:43:27 -0700390 <provider
391 android:name=".provider.EmailProvider"
392 android:authorities="com.android.email.provider"
393 android:multiprocess="true"
Andrew Stadler22722202009-09-20 17:23:59 -0700394 android:permission="com.android.email.permission.ACCESS_PROVIDER"
Marc Blanke6cc6622010-07-08 10:08:47 -0700395 android:label="@string/app_name"
Marc Blankc5f2a7a2009-05-27 15:43:27 -0700396 />
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800397
398 <!--EXCHANGE-REMOVE-SECTION-START-->
Marc Blank5bd2fae2010-06-13 17:39:15 -0700399 <provider
Marc Blank270b0c12010-06-29 13:32:36 -0700400 android:name="com.android.exchange.provider.ExchangeDirectoryProvider"
401 android:authorities="com.android.exchange.directory.provider"
Marc Blank5bd2fae2010-06-13 17:39:15 -0700402 android:readPermission="android.permission.READ_CONTACTS"
403 android:multiprocess="false"
Dmitri Plotnikov32358f52010-08-05 11:22:58 -0700404 >
405 <meta-data android:name="android.content.ContactDirectory" android:value="true"/>
406 </provider>
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800407 <!--EXCHANGE-REMOVE-SECTION-END-->
408
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800409 </application>
410</manifest>