blob: 1f7f8ab126da84b3e1b9756297c7e73b0b526d56 [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" >
Makoto Onukie105fbe2010-07-26 14:35:06 -0700209 </activity>
210 <activity
211 android:name=".activity.MessageFileView"
212 android:theme="@android:style/Theme.NoTitleBar" >
Marc Blank391ae252010-05-04 15:33:08 -0700213 <intent-filter android:label="@string/app_name">
214 <action android:name="android.intent.action.VIEW" />
215 <data android:mimeType="application/eml" />
216 <data android:mimeType="message/rfc822" />
217 <category android:name="android.intent.category.DEFAULT" />
218 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800219 </activity>
220 <activity
221 android:name=".activity.MessageCompose"
222 android:label="@string/app_name"
223 android:enabled="false"
224 >
225 <intent-filter>
226 <action android:name="android.intent.action.VIEW" />
227 <action android:name="android.intent.action.SENDTO" />
228 <data android:scheme="mailto" />
229 <category android:name="android.intent.category.DEFAULT" />
230 <category android:name="android.intent.category.BROWSABLE" />
231 </intent-filter>
232 <intent-filter android:label="@string/app_name">
233 <action android:name="android.intent.action.SEND" />
Andrew Stadler92a1ff92009-09-27 23:49:10 -0700234 <data android:mimeType="*/*" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800235 <category android:name="android.intent.category.DEFAULT" />
236 </intent-filter>
Mihai Predafa2238c2009-09-01 16:25:30 +0200237 <intent-filter android:label="@string/app_name">
238 <action android:name="android.intent.action.SEND_MULTIPLE" />
239 <data android:mimeType="*/*" />
240 <category android:name="android.intent.category.DEFAULT" />
241 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800242 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800243 <!--EXCHANGE-REMOVE-SECTION-START-->
Makoto Onuki898283b2010-05-27 18:29:35 -0700244 <receiver android:name="com.android.exchange.EmailSyncAlarmReceiver"/>
245 <receiver android:name="com.android.exchange.MailboxAlarmReceiver"/>
Makoto Onuki91237e92010-02-02 15:06:52 -0800246 <!--EXCHANGE-REMOVE-SECTION-END-->
Marc Blank53cb37c2009-08-28 10:33:18 -0700247
Makoto Onuki898283b2010-05-27 18:29:35 -0700248 <receiver android:name=".service.EmailBroadcastReceiver" android:enabled="true">
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800249 <intent-filter>
250 <action android:name="android.intent.action.BOOT_COMPLETED" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800251 <action android:name="android.intent.action.DEVICE_STORAGE_LOW" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800252 <action android:name="android.intent.action.DEVICE_STORAGE_OK" />
253 </intent-filter>
Makoto Onuki42e3f102010-06-30 15:43:12 -0700254 <!-- To handle secret code to activate the debug screen. -->
255 <intent-filter>
256 <action android:name="android.provider.Telephony.SECRET_CODE" />
257 <!-- "36245" = "email" -->
258 <data android:scheme="android_secret_code" android:host="36245" />
259 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800260 </receiver>
Makoto Onuki898283b2010-05-27 18:29:35 -0700261 <service android:name=".service.EmailBroadcastProcessorService" />
Marc Blank53cb37c2009-08-28 10:33:18 -0700262
Andrew Stadlerd6286082010-02-01 16:48:16 -0800263 <!-- Support for DeviceAdmin / DevicePolicyManager. See SecurityPolicy class for impl. -->
264 <receiver
265 android:name=".SecurityPolicy$PolicyAdmin"
266 android:label="@string/device_admin_label"
267 android:description="@string/device_admin_description"
268 android:permission="android.permission.BIND_DEVICE_ADMIN" >
269 <meta-data
270 android:name="android.app.device_admin"
271 android:resource="@xml/device_admin" />
272 <intent-filter>
273 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
274 </intent-filter>
275 </receiver>
Makoto Onukib854d052010-01-28 10:07:51 -0800276
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800277 <service
278 android:name=".service.MailService"
279 android:enabled="false"
280 >
281 </service>
Makoto Onukid6a29782010-07-21 14:29:49 -0700282
Makoto Onuki91237e92010-02-02 15:06:52 -0800283 <!--EXCHANGE-REMOVE-SECTION-START-->
Marc Blanke6cc6622010-07-08 10:08:47 -0700284 <!--Required stanza to register the PopImapAuthenticatorService with AccountManager -->
285 <service
286 android:name=".service.PopImapAuthenticatorService"
287 android:exported="true"
288 android:enabled="true"
289 >
290 <intent-filter>
291 <action android:name="android.accounts.AccountAuthenticator" />
292 </intent-filter>
293 <meta-data
294 android:name="android.accounts.AccountAuthenticator"
295 android:resource="@xml/pop_imap_authenticator"
296 />
297 </service>
298
299 <!--Required stanza to register the PopImapSyncAdapterService with SyncManager -->
300 <service
301 android:name="com.android.email.service.PopImapSyncAdapterService"
302 android:exported="true">
303 <intent-filter>
304 <action android:name="android.content.SyncAdapter" />
305 </intent-filter>
306 <meta-data android:name="android.content.SyncAdapter"
307 android:resource="@xml/syncadapter_pop_imap" />
308 </service>
309
310 <!--EXCHANGE-REMOVE-SECTION-START-->
311 <!--Required stanza to register the EAS EmailSyncAdapterService with SyncManager -->
312 <service
313 android:name="com.android.exchange.EmailSyncAdapterService"
314 android:exported="true">
315 <intent-filter>
316 <action android:name="android.content.SyncAdapter" />
317 </intent-filter>
318 <meta-data android:name="android.content.SyncAdapter"
319 android:resource="@xml/syncadapter_email" />
320 </service>
321
322 <!--Required stanza to register the EAS ContactsSyncAdapterService with SyncManager -->
Makoto Onukid6a29782010-07-21 14:29:49 -0700323 <service
324 android:name="com.android.exchange.ContactsSyncAdapterService"
325 android:exported="true">
Marc Blank948c36f2009-07-27 10:24:58 -0700326 <intent-filter>
327 <action android:name="android.content.SyncAdapter" />
328 </intent-filter>
329 <meta-data android:name="android.content.SyncAdapter"
330 android:resource="@xml/syncadapter_contacts" />
331 </service>
332
Marc Blanke6cc6622010-07-08 10:08:47 -0700333 <!--Required stanza to register the EAS CalendarSyncAdapterService with SyncManager -->
Marc Blankf3fcb892009-10-28 18:12:51 -0700334 <service
335 android:name="com.android.exchange.CalendarSyncAdapterService"
336 android:exported="true">
337 <intent-filter>
338 <action android:name="android.content.SyncAdapter" />
339 </intent-filter>
340 <meta-data android:name="android.content.SyncAdapter"
341 android:resource="@xml/syncadapter_calendar" />
342 </service>
343
Marc Blank28fc7792009-07-20 17:15:45 -0700344 <!-- Add android:process=":remote" below to enable SyncManager as a separate process -->
Marc Blank2c67f1f2009-06-16 12:03:45 -0700345 <service
346 android:name="com.android.exchange.SyncManager"
347 android:enabled="true"
348 >
349 </service>
Andrew Stadler17250422009-07-07 09:39:11 -0700350
351 <!--Required stanza to register the EasAuthenticatorService with AccountManager -->
Makoto Onukib854d052010-01-28 10:07:51 -0800352 <service
353 android:name=".service.EasAuthenticatorService"
354 android:exported="true"
355 android:enabled="true"
356 >
Andrew Stadler17250422009-07-07 09:39:11 -0700357 <intent-filter>
358 <action android:name="android.accounts.AccountAuthenticator" />
359 </intent-filter>
Makoto Onukib854d052010-01-28 10:07:51 -0800360 <meta-data
361 android:name="android.accounts.AccountAuthenticator"
Marc Blanke6cc6622010-07-08 10:08:47 -0700362 android:resource="@xml/eas_authenticator"
Makoto Onukib854d052010-01-28 10:07:51 -0800363 />
364 </service>
365 <!--
366 EasAuthenticatorService with the altenative label. Disabled by default,
367 and OneTimeInitializer enables it if the vendor policy tells so.
368 -->
369 <service
370 android:name=".service.EasAuthenticatorServiceAlternate"
371 android:exported="true"
372 android:enabled="false"
373 >
374 <intent-filter>
375 <action android:name="android.accounts.AccountAuthenticator" />
376 </intent-filter>
377 <meta-data
378 android:name="android.accounts.AccountAuthenticator"
379 android:resource="@xml/authenticator_alternate"
380 />
Andrew Stadler17250422009-07-07 09:39:11 -0700381 </service>
Makoto Onuki91237e92010-02-02 15:06:52 -0800382 <!--EXCHANGE-REMOVE-SECTION-END-->
Andrew Stadler17250422009-07-07 09:39:11 -0700383
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800384 <provider
385 android:name=".provider.AttachmentProvider"
386 android:authorities="com.android.email.attachmentprovider"
387 android:multiprocess="true"
388 android:grantUriPermissions="true"
389 android:readPermission="com.android.email.permission.READ_ATTACHMENT"
390 />
Andrew Stadler22722202009-09-20 17:23:59 -0700391
392 <!-- This provider MUST be protected by strict permissions, as granting access to
393 it exposes user passwords and other confidential information. -->
Marc Blankc5f2a7a2009-05-27 15:43:27 -0700394 <provider
395 android:name=".provider.EmailProvider"
396 android:authorities="com.android.email.provider"
397 android:multiprocess="true"
Andrew Stadler22722202009-09-20 17:23:59 -0700398 android:permission="com.android.email.permission.ACCESS_PROVIDER"
Marc Blanke6cc6622010-07-08 10:08:47 -0700399 android:label="@string/app_name"
Marc Blankc5f2a7a2009-05-27 15:43:27 -0700400 />
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800401
402 <!--EXCHANGE-REMOVE-SECTION-START-->
403 <!-- In this release, GAL information is used locally only, so we used the same
404 strict permissions. -->
Marc Blank270b0c12010-06-29 13:32:36 -0700405 <!-- NOTE: ExchangeDirectoryProvider will replace ExchangeProvider after integration with
Marc Blank5bd2fae2010-06-13 17:39:15 -0700406 the new GAL/contacts implementation -->
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800407 <provider
408 android:name="com.android.exchange.provider.ExchangeProvider"
409 android:authorities="com.android.exchange.provider"
410 android:multiprocess="true"
411 android:permission="com.android.email.permission.ACCESS_PROVIDER"
412 />
Marc Blank5bd2fae2010-06-13 17:39:15 -0700413 <provider
Marc Blank270b0c12010-06-29 13:32:36 -0700414 android:name="com.android.exchange.provider.ExchangeDirectoryProvider"
415 android:authorities="com.android.exchange.directory.provider"
Marc Blank5bd2fae2010-06-13 17:39:15 -0700416 android:readPermission="android.permission.READ_CONTACTS"
417 android:multiprocess="false"
418 />
Andrew Stadlere2c56fc2010-03-13 00:38:47 -0800419 <!--EXCHANGE-REMOVE-SECTION-END-->
420
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800421 </application>
422</manifest>