blob: dc5437b27927ead39dbd8e183f46b5fe3f38741b [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
The Android Open Source Project96c5af42009-03-03 19:32:22 -080059 <application android:icon="@drawable/icon" android:label="@string/app_name"
60 android:name="Email">
Andrew Stadler842ac042010-02-10 23:17:55 -080061 <activity
62 android:name=".activity.Welcome">
The Android Open Source Project96c5af42009-03-03 19:32:22 -080063 <intent-filter>
64 <action android:name="android.intent.action.MAIN" />
65 <category android:name="android.intent.category.DEFAULT" />
66 <category android:name="android.intent.category.LAUNCHER" />
67 </intent-filter>
68 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -070069 <!--
70 We show this on the home for the development purpose.
71 STOPSHIP: Remove label, and MAIN/LAUNCHER intent filter.
72 -->
73 <activity
74 android:name=".activity.MessageListXL"
75 android:label="@string/activity_label_2pane"
76 android:theme="@android:style/Theme.WithActionBar"
77 >
78 <intent-filter>
79 <action android:name="android.intent.action.MAIN" />
80 <category android:name="android.intent.category.LAUNCHER" />
81 </intent-filter>
82 </activity>
Andrew Stadler842ac042010-02-10 23:17:55 -080083 <activity
84 android:name=".activity.UpgradeAccounts"
85 android:label="@string/upgrade_accounts_title"
86 android:theme="@android:style/Theme.NoTitleBar"
87 android:configChanges="keyboardHidden|orientation" >
88 </activity>
Marc Blank06275c42009-08-05 21:48:15 -070089 <!-- Must be exported in order for the AccountManager to launch it -->
The Android Open Source Project96c5af42009-03-03 19:32:22 -080090 <activity
91 android:name=".activity.setup.AccountSetupBasics"
92 android:label="@string/account_setup_basics_title"
Marc Blank06275c42009-08-05 21:48:15 -070093 android:exported="true"
The Android Open Source Project96c5af42009-03-03 19:32:22 -080094 >
95 </activity>
96 <activity
97 android:name=".activity.setup.AccountSetupAccountType"
98 android:label="@string/account_setup_account_type_title"
99 >
100 </activity>
101 <activity
102 android:name=".activity.setup.AccountSetupIncoming"
103 android:label="@string/account_setup_incoming_title"
104 >
105 </activity>
106 <activity
107 android:name=".activity.setup.AccountSetupOutgoing"
108 android:label="@string/account_setup_outgoing_title"
109 >
110 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800111 <!--EXCHANGE-REMOVE-SECTION-START-->
Andrew Stadler9f732492010-03-03 22:19:41 -0800112 <!-- This activity ignores configuration changes (e.g. rotation) so that it will
113 not make multiple calls to AccountSetupCheckSettings. -->
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800114 <activity
Andy Stadler87c43ca2009-04-03 16:02:55 -0700115 android:name=".activity.setup.AccountSetupExchange"
116 android:label="@string/account_setup_exchange_title"
Andrew Stadler9f732492010-03-03 22:19:41 -0800117 android:configChanges="keyboardHidden|orientation"
Andy Stadler87c43ca2009-04-03 16:02:55 -0700118 >
119 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800120 <!--EXCHANGE-REMOVE-SECTION-END-->
Andy Stadler87c43ca2009-04-03 16:02:55 -0700121 <activity
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800122 android:name=".activity.setup.AccountSetupOptions"
123 android:label="@string/account_setup_options_title"
124 >
125 </activity>
126 <activity
127 android:name=".activity.setup.AccountSetupNames"
128 android:label="@string/account_setup_names_title"
129 >
130 </activity>
131 <!-- XXX Note: this activity is hacked to ignore config changes,
132 since it doesn't currently handle them correctly in code. -->
133 <activity
134 android:name=".activity.setup.AccountSetupCheckSettings"
135 android:label="@string/account_setup_check_settings_title"
136 android:configChanges="keyboardHidden|orientation"
137 >
138 </activity>
139 <activity
140 android:name=".activity.setup.AccountSettings"
141 android:label="@string/account_settings_action"
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800142 >
Makoto Onuki0fef1f12010-02-16 14:04:25 -0800143 <intent-filter>
144 <action android:name="com.android.email.activity.setup.ACCOUNT_MANAGER_ENTRY" />
145 <category android:name="android.intent.category.DEFAULT" />
146 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800147 </activity>
Andrew Stadler3d2b3b32010-02-05 11:10:39 -0800148 <activity
149 android:name=".activity.setup.AccountSecurity"
150 android.label="@string/account_security_title"
151 >
152 </activity>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800153
154 <activity
155 android:name=".activity.Debug"
156 android:label="@string/debug_title">
157 </activity>
158 <activity
Andrew Stadler72dce732009-07-09 12:33:09 -0700159 android:name=".activity.AccountFolderList"
Andrew Stadler0d6ce632010-06-28 16:00:25 -0700160 android:launchMode="singleTop"
161 android:theme="@android:style/Theme.WithActionBar" >
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800162 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700163
164 <activity
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800165 android:name=".activity.AccountShortcutPicker"
166 android:label="@string/app_name"
167 android:enabled="false"
168 >
169 <intent-filter>
170 <action android:name="android.intent.action.CREATE_SHORTCUT" />
171 <category android:name="android.intent.category.DEFAULT" />
172 </intent-filter>
173 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700174
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800175 <activity
Mihai Predab0528852010-02-10 16:46:41 +0100176 android:name=".activity.MailboxList"
Andrew Stadlerd5b2da32010-06-28 23:17:27 -0700177 android:theme="@android:style/Theme.WithActionBar" >
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800178 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700179
Andrew Stadler47654722009-06-30 15:12:23 -0700180 <activity
Mihai Predab0528852010-02-10 16:46:41 +0100181 android:name=".activity.MessageList"
182 android:theme="@style/ThemeNoTitleBar">
Andrew Stadler4e4abc62009-07-21 11:06:14 -0700183 <intent-filter>
184 <!-- This action is only to allow an entry point for launcher shortcuts -->
185 <action android:name="android.intent.action.MAIN" />
186 </intent-filter>
Andrew Stadler47654722009-06-30 15:12:23 -0700187 </activity>
Makoto Onukia9428582010-03-26 11:01:12 -0700188
189 <!--
190 This activity catches shortcuts to account created on Android 1.6 and before,
191 and redirects to MessageList.
192 singleTask is necessary to make sure the activity is really launched.
193 Without it, the framework brings up the app to front, but doesn't necessarily
194 launch the activity.
195 -->
196 <activity
197 android:name=".activity.FolderMessageList"
198 android:launchMode="singleTask"
199 >
200 <intent-filter>
201 <!-- This action is only to allow an entry point for launcher shortcuts -->
202 <action android:name="android.intent.action.MAIN" />
203 </intent-filter>
204 </activity>
Makoto Onukid6a29782010-07-21 14:29:49 -0700205
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800206 <activity
207 android:name=".activity.MessageView"
208 android:theme="@android:style/Theme.NoTitleBar" >
Marc Blank391ae252010-05-04 15:33:08 -0700209 <intent-filter android:label="@string/app_name">
210 <action android:name="android.intent.action.VIEW" />
211 <data android:mimeType="application/eml" />
212 <data android:mimeType="message/rfc822" />
213 <category android:name="android.intent.category.DEFAULT" />
214 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800215 </activity>
216 <activity
217 android:name=".activity.MessageCompose"
218 android:label="@string/app_name"
219 android:enabled="false"
220 >
221 <intent-filter>
222 <action android:name="android.intent.action.VIEW" />
223 <action android:name="android.intent.action.SENDTO" />
224 <data android:scheme="mailto" />
225 <category android:name="android.intent.category.DEFAULT" />
226 <category android:name="android.intent.category.BROWSABLE" />
227 </intent-filter>
228 <intent-filter android:label="@string/app_name">
229 <action android:name="android.intent.action.SEND" />
Andrew Stadler92a1ff92009-09-27 23:49:10 -0700230 <data android:mimeType="*/*" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800231 <category android:name="android.intent.category.DEFAULT" />
232 </intent-filter>
Mihai Predafa2238c2009-09-01 16:25:30 +0200233 <intent-filter android:label="@string/app_name">
234 <action android:name="android.intent.action.SEND_MULTIPLE" />
235 <data android:mimeType="*/*" />
236 <category android:name="android.intent.category.DEFAULT" />
237 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800238 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800239 <!--EXCHANGE-REMOVE-SECTION-START-->
Makoto Onuki898283b2010-05-27 18:29:35 -0700240 <receiver android:name="com.android.exchange.EmailSyncAlarmReceiver"/>
241 <receiver android:name="com.android.exchange.MailboxAlarmReceiver"/>
Makoto Onuki91237e92010-02-02 15:06:52 -0800242 <!--EXCHANGE-REMOVE-SECTION-END-->
Marc Blank53cb37c2009-08-28 10:33:18 -0700243
Makoto Onuki898283b2010-05-27 18:29:35 -0700244 <receiver android:name=".service.EmailBroadcastReceiver" android:enabled="true">
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800245 <intent-filter>
246 <action android:name="android.intent.action.BOOT_COMPLETED" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800247 <action android:name="android.intent.action.DEVICE_STORAGE_LOW" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800248 <action android:name="android.intent.action.DEVICE_STORAGE_OK" />
249 </intent-filter>
Makoto Onuki42e3f102010-06-30 15:43:12 -0700250 <!-- To handle secret code to activate the debug screen. -->
251 <intent-filter>
252 <action android:name="android.provider.Telephony.SECRET_CODE" />
253 <!-- "36245" = "email" -->
254 <data android:scheme="android_secret_code" android:host="36245" />
255 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800256 </receiver>
Makoto Onuki898283b2010-05-27 18:29:35 -0700257 <service android:name=".service.EmailBroadcastProcessorService" />
Marc Blank53cb37c2009-08-28 10:33:18 -0700258
Andrew Stadlerd6286082010-02-01 16:48:16 -0800259 <!-- Support for DeviceAdmin / DevicePolicyManager. See SecurityPolicy class for impl. -->
260 <receiver
261 android:name=".SecurityPolicy$PolicyAdmin"
262 android:label="@string/device_admin_label"
263 android:description="@string/device_admin_description"
264 android:permission="android.permission.BIND_DEVICE_ADMIN" >
265 <meta-data
266 android:name="android.app.device_admin"
267 android:resource="@xml/device_admin" />
268 <intent-filter>
269 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
270 </intent-filter>
271 </receiver>
Makoto Onukib854d052010-01-28 10:07:51 -0800272
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800273 <service
274 android:name=".service.MailService"
275 android:enabled="false"
276 >
277 </service>
Makoto Onukid6a29782010-07-21 14:29:49 -0700278
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 Blank28fc7792009-07-20 17:15:45 -0700340 <!-- Add android:process=":remote" below to enable SyncManager as a separate process -->
Marc Blank2c67f1f2009-06-16 12:03:45 -0700341 <service
342 android:name="com.android.exchange.SyncManager"
343 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-->
399 <!-- In this release, GAL information is used locally only, so we used the same
400 strict permissions. -->
Marc Blank270b0c12010-06-29 13:32:36 -0700401 <!-- NOTE: ExchangeDirectoryProvider will replace ExchangeProvider after integration with
Marc Blank5bd2fae2010-06-13 17:39:15 -0700402 the new GAL/contacts implementation -->
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800403 <provider
404 android:name="com.android.exchange.provider.ExchangeProvider"
405 android:authorities="com.android.exchange.provider"
406 android:multiprocess="true"
407 android:permission="com.android.email.permission.ACCESS_PROVIDER"
408 />
Marc Blank5bd2fae2010-06-13 17:39:15 -0700409 <provider
Marc Blank270b0c12010-06-29 13:32:36 -0700410 android:name="com.android.exchange.provider.ExchangeDirectoryProvider"
411 android:authorities="com.android.exchange.directory.provider"
Marc Blank5bd2fae2010-06-13 17:39:15 -0700412 android:readPermission="android.permission.READ_CONTACTS"
413 android:multiprocess="false"
414 />
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800415 <!--EXCHANGE-REMOVE-SECTION-END-->
416
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800417 </application>
418</manifest>