blob: 473ca67f970c3ae37964de84706783095fdaf081 [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
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 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">
19 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
20 <uses-permission android:name="android.permission.READ_CONTACTS"/>
21 <uses-permission android:name="android.permission.READ_OWNER_DATA"/>
22 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
23 <uses-permission android:name="android.permission.INTERNET"/>
24 <uses-permission android:name="android.permission.VIBRATE"/>
Andrew Stadlera392e072009-06-04 15:16:43 -070025 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Marc Blank03ecce72009-08-20 14:38:12 -070026 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
Andrew Stadler627d1ae2009-07-24 16:25:18 -070027 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
Marc Blank948c36f2009-07-27 10:24:58 -070028 <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
Fred Quintana4c195432009-08-17 13:05:44 -070029 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
30 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
31
Marc Blankb6493a02009-07-05 12:54:49 -070032 <!-- For EAS purposes; could be removed when EAS has a permanent home -->
33 <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
Marc Blankf3fcb892009-10-28 18:12:51 -070034 <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
35 <uses-permission android:name="android.permission.READ_CALENDAR"/>
Marc Blankb6493a02009-07-05 12:54:49 -070036
Andy Stadlerdab90a72009-05-06 17:50:29 -070037 <!-- Only required if a store implements push mail and needs to keep network open -->
38 <uses-permission android:name="android.permission.WAKE_LOCK"/>
39 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
Andrew Stadler22722202009-09-20 17:23:59 -070040
41 <!-- Grant permission to other apps to view attachments -->
The Android Open Source Project96c5af42009-03-03 19:32:22 -080042 <permission android:name="com.android.email.permission.READ_ATTACHMENT"
43 android:permissionGroup="android.permission-group.MESSAGES"
44 android:protectionLevel="dangerous"
45 android:label="@string/read_attachment_label"
46 android:description="@string/read_attachment_desc"/>
47 <uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"/>
Andrew Stadler22722202009-09-20 17:23:59 -070048
49 <!-- Grant permission to system apps to access provider (see provider below) -->
50 <permission android:name="com.android.email.permission.ACCESS_PROVIDER"
51 android:protectionLevel="signatureOrSystem"
52 android:label="@string/permission_access_provider_label"
53 android:description="@string/permission_access_provider_desc"/>
54 <uses-permission android:name="com.android.email.permission.ACCESS_PROVIDER"/>
55
The Android Open Source Project96c5af42009-03-03 19:32:22 -080056 <application android:icon="@drawable/icon" android:label="@string/app_name"
57 android:name="Email">
Andrew Stadler842ac042010-02-10 23:17:55 -080058 <activity
59 android:name=".activity.Welcome">
The Android Open Source Project96c5af42009-03-03 19:32:22 -080060 <intent-filter>
61 <action android:name="android.intent.action.MAIN" />
62 <category android:name="android.intent.category.DEFAULT" />
63 <category android:name="android.intent.category.LAUNCHER" />
64 </intent-filter>
65 </activity>
Andrew Stadler842ac042010-02-10 23:17:55 -080066 <activity
67 android:name=".activity.UpgradeAccounts"
68 android:label="@string/upgrade_accounts_title"
69 android:theme="@android:style/Theme.NoTitleBar"
70 android:configChanges="keyboardHidden|orientation" >
71 </activity>
Marc Blank06275c42009-08-05 21:48:15 -070072 <!-- Must be exported in order for the AccountManager to launch it -->
The Android Open Source Project96c5af42009-03-03 19:32:22 -080073 <activity
74 android:name=".activity.setup.AccountSetupBasics"
75 android:label="@string/account_setup_basics_title"
Marc Blank06275c42009-08-05 21:48:15 -070076 android:exported="true"
The Android Open Source Project96c5af42009-03-03 19:32:22 -080077 >
78 </activity>
79 <activity
80 android:name=".activity.setup.AccountSetupAccountType"
81 android:label="@string/account_setup_account_type_title"
82 >
83 </activity>
84 <activity
85 android:name=".activity.setup.AccountSetupIncoming"
86 android:label="@string/account_setup_incoming_title"
87 >
88 </activity>
89 <activity
90 android:name=".activity.setup.AccountSetupOutgoing"
91 android:label="@string/account_setup_outgoing_title"
92 >
93 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -080094 <!--EXCHANGE-REMOVE-SECTION-START-->
The Android Open Source Project96c5af42009-03-03 19:32:22 -080095 <activity
Andy Stadler87c43ca2009-04-03 16:02:55 -070096 android:name=".activity.setup.AccountSetupExchange"
97 android:label="@string/account_setup_exchange_title"
98 >
99 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800100 <!--EXCHANGE-REMOVE-SECTION-END-->
Andy Stadler87c43ca2009-04-03 16:02:55 -0700101 <activity
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800102 android:name=".activity.setup.AccountSetupOptions"
103 android:label="@string/account_setup_options_title"
104 >
105 </activity>
106 <activity
107 android:name=".activity.setup.AccountSetupNames"
108 android:label="@string/account_setup_names_title"
109 >
110 </activity>
111 <!-- XXX Note: this activity is hacked to ignore config changes,
112 since it doesn't currently handle them correctly in code. -->
113 <activity
114 android:name=".activity.setup.AccountSetupCheckSettings"
115 android:label="@string/account_setup_check_settings_title"
116 android:configChanges="keyboardHidden|orientation"
117 >
118 </activity>
119 <activity
120 android:name=".activity.setup.AccountSettings"
121 android:label="@string/account_settings_action"
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800122 >
123 </activity>
Andrew Stadler3d2b3b32010-02-05 11:10:39 -0800124 <activity
125 android:name=".activity.setup.AccountSecurity"
126 android.label="@string/account_security_title"
127 >
128 </activity>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800129
130 <activity
131 android:name=".activity.Debug"
132 android:label="@string/debug_title">
133 </activity>
134 <activity
Andrew Stadler72dce732009-07-09 12:33:09 -0700135 android:name=".activity.AccountFolderList"
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800136 android:launchMode="singleTop" >
137 </activity>
138
139 <activity
140 android:name=".activity.AccountShortcutPicker"
141 android:label="@string/app_name"
142 android:enabled="false"
143 >
144 <intent-filter>
145 <action android:name="android.intent.action.CREATE_SHORTCUT" />
146 <category android:name="android.intent.category.DEFAULT" />
147 </intent-filter>
148 </activity>
149
150 <activity
Andrew Stadler9e5ee452009-07-29 19:21:37 -0700151 android:name=".activity.MailboxList">
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800152 </activity>
Andrew Stadler47654722009-06-30 15:12:23 -0700153
154 <activity
155 android:name=".activity.MessageList">
Andrew Stadler4e4abc62009-07-21 11:06:14 -0700156 <intent-filter>
157 <!-- This action is only to allow an entry point for launcher shortcuts -->
158 <action android:name="android.intent.action.MAIN" />
159 </intent-filter>
Andrew Stadler47654722009-06-30 15:12:23 -0700160 </activity>
161
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800162 <activity
163 android:name=".activity.MessageView"
164 android:theme="@android:style/Theme.NoTitleBar" >
165 </activity>
166 <activity
167 android:name=".activity.MessageCompose"
168 android:label="@string/app_name"
169 android:enabled="false"
170 >
171 <intent-filter>
172 <action android:name="android.intent.action.VIEW" />
173 <action android:name="android.intent.action.SENDTO" />
174 <data android:scheme="mailto" />
175 <category android:name="android.intent.category.DEFAULT" />
176 <category android:name="android.intent.category.BROWSABLE" />
177 </intent-filter>
178 <intent-filter android:label="@string/app_name">
179 <action android:name="android.intent.action.SEND" />
Andrew Stadler92a1ff92009-09-27 23:49:10 -0700180 <data android:mimeType="*/*" />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800181 <category android:name="android.intent.category.DEFAULT" />
182 </intent-filter>
Mihai Predafa2238c2009-09-01 16:25:30 +0200183 <intent-filter android:label="@string/app_name">
184 <action android:name="android.intent.action.SEND_MULTIPLE" />
185 <data android:mimeType="*/*" />
186 <category android:name="android.intent.category.DEFAULT" />
187 </intent-filter>
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800188 </activity>
Makoto Onuki91237e92010-02-02 15:06:52 -0800189 <!--EXCHANGE-REMOVE-SECTION-START-->
Marc Blank5f251622009-08-04 22:33:32 -0700190 <receiver android:name="com.android.exchange.EmailSyncAlarmReceiver"/>
Marc Blankb6493a02009-07-05 12:54:49 -0700191 <receiver android:name="com.android.exchange.MailboxAlarmReceiver"/>
Marc Blank53cb37c2009-08-28 10:33:18 -0700192 <receiver android:name="com.android.exchange.BootReceiver" android:enabled="true">
193 <intent-filter>
194 <action android:name="android.intent.action.BOOT_COMPLETED" />
195 </intent-filter>
196 </receiver>
Makoto Onuki91237e92010-02-02 15:06:52 -0800197 <!--EXCHANGE-REMOVE-SECTION-END-->
Marc Blank53cb37c2009-08-28 10:33:18 -0700198
Marc Blank5fed9342009-09-23 15:06:19 -0700199 <receiver android:name=".service.BootReceiver" android:enabled="true">
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800200 <intent-filter>
201 <action android:name="android.intent.action.BOOT_COMPLETED" />
202 </intent-filter>
203 <intent-filter>
204 <action android:name="android.intent.action.DEVICE_STORAGE_LOW" />
205 </intent-filter>
206 <intent-filter>
207 <action android:name="android.intent.action.DEVICE_STORAGE_OK" />
208 </intent-filter>
209 </receiver>
Marc Blank53cb37c2009-08-28 10:33:18 -0700210
Andrew Stadlerd6286082010-02-01 16:48:16 -0800211 <!-- Support for DeviceAdmin / DevicePolicyManager. See SecurityPolicy class for impl. -->
212 <receiver
213 android:name=".SecurityPolicy$PolicyAdmin"
214 android:label="@string/device_admin_label"
215 android:description="@string/device_admin_description"
216 android:permission="android.permission.BIND_DEVICE_ADMIN" >
217 <meta-data
218 android:name="android.app.device_admin"
219 android:resource="@xml/device_admin" />
220 <intent-filter>
221 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
222 </intent-filter>
223 </receiver>
224
Makoto Onukib854d052010-01-28 10:07:51 -0800225 <receiver
226 android:name=".OneTimeInitializer"
227 android:enabled="true"
228 >
229 <intent-filter>
230 <action android:name="android.intent.action.BOOT_COMPLETED" />
231 </intent-filter>
232 </receiver>
233
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800234 <service
235 android:name=".service.MailService"
236 android:enabled="false"
237 >
238 </service>
Marc Blank28fc7792009-07-20 17:15:45 -0700239
Makoto Onuki91237e92010-02-02 15:06:52 -0800240 <!--EXCHANGE-REMOVE-SECTION-START-->
Marc Blank948c36f2009-07-27 10:24:58 -0700241 <!--Required stanza to register the ContactsSyncAdapterService with SyncManager -->
242 <service
243 android:name="com.android.exchange.ContactsSyncAdapterService"
244 android:exported="true">
245 <intent-filter>
246 <action android:name="android.content.SyncAdapter" />
247 </intent-filter>
248 <meta-data android:name="android.content.SyncAdapter"
249 android:resource="@xml/syncadapter_contacts" />
250 </service>
251
Marc Blankf3fcb892009-10-28 18:12:51 -0700252 <!--Required stanza to register the CalendarSyncAdapterService with SyncManager -->
253 <service
254 android:name="com.android.exchange.CalendarSyncAdapterService"
255 android:exported="true">
256 <intent-filter>
257 <action android:name="android.content.SyncAdapter" />
258 </intent-filter>
259 <meta-data android:name="android.content.SyncAdapter"
260 android:resource="@xml/syncadapter_calendar" />
261 </service>
262
Marc Blank28fc7792009-07-20 17:15:45 -0700263 <!-- Add android:process=":remote" below to enable SyncManager as a separate process -->
Marc Blank2c67f1f2009-06-16 12:03:45 -0700264 <service
265 android:name="com.android.exchange.SyncManager"
266 android:enabled="true"
267 >
268 </service>
Andrew Stadler17250422009-07-07 09:39:11 -0700269
270 <!--Required stanza to register the EasAuthenticatorService with AccountManager -->
Makoto Onukib854d052010-01-28 10:07:51 -0800271 <service
272 android:name=".service.EasAuthenticatorService"
273 android:exported="true"
274 android:enabled="true"
275 >
Andrew Stadler17250422009-07-07 09:39:11 -0700276 <intent-filter>
277 <action android:name="android.accounts.AccountAuthenticator" />
278 </intent-filter>
Makoto Onukib854d052010-01-28 10:07:51 -0800279 <meta-data
280 android:name="android.accounts.AccountAuthenticator"
281 android:resource="@xml/authenticator"
282 />
283 </service>
284 <!--
285 EasAuthenticatorService with the altenative label. Disabled by default,
286 and OneTimeInitializer enables it if the vendor policy tells so.
287 -->
288 <service
289 android:name=".service.EasAuthenticatorServiceAlternate"
290 android:exported="true"
291 android:enabled="false"
292 >
293 <intent-filter>
294 <action android:name="android.accounts.AccountAuthenticator" />
295 </intent-filter>
296 <meta-data
297 android:name="android.accounts.AccountAuthenticator"
298 android:resource="@xml/authenticator_alternate"
299 />
Andrew Stadler17250422009-07-07 09:39:11 -0700300 </service>
Makoto Onuki91237e92010-02-02 15:06:52 -0800301 <!--EXCHANGE-REMOVE-SECTION-END-->
Andrew Stadler17250422009-07-07 09:39:11 -0700302
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800303 <provider
304 android:name=".provider.AttachmentProvider"
305 android:authorities="com.android.email.attachmentprovider"
306 android:multiprocess="true"
307 android:grantUriPermissions="true"
308 android:readPermission="com.android.email.permission.READ_ATTACHMENT"
309 />
Andrew Stadler22722202009-09-20 17:23:59 -0700310
311 <!-- This provider MUST be protected by strict permissions, as granting access to
312 it exposes user passwords and other confidential information. -->
Marc Blankc5f2a7a2009-05-27 15:43:27 -0700313 <provider
314 android:name=".provider.EmailProvider"
315 android:authorities="com.android.email.provider"
316 android:multiprocess="true"
Andrew Stadler22722202009-09-20 17:23:59 -0700317 android:permission="com.android.email.permission.ACCESS_PROVIDER"
Marc Blankc5f2a7a2009-05-27 15:43:27 -0700318 />
The Android Open Source Project96c5af42009-03-03 19:32:22 -0800319 </application>
320</manifest>