1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2012 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.android.mail" 19 android:versionCode="1" 20 android:versionName="1.0" > 21 22 <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 23 <!-- Allows mail to access the user's contacts, for email address auto-completion --> 24 <uses-permission android:name="android.permission.READ_CONTACTS"/> 25 <!-- Allows access to EmailProvider (EAS/IMAP/POP3) --> 26 <uses-permission android:name="com.android.email.permission.ACCESS_PROVIDER"/> 27 <uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"/> 28 <uses-permission android:name="android.permission.NFC" /> 29 30 <!-- This needs to be present when we are doing unbundled releases. --> 31 <uses-sdk android:targetSdkVersion="17" android:minSdkVersion="14" /> 32 33 <application 34 android:icon="@mipmap/ic_launcher_mail" 35 android:label="@string/app_name" 36 android:theme="@style/UnifiedEmailTheme" 37 android:supportsRtl="false" > 38 <!-- Enable search in all activities --> 39 <meta-data android:name="android.app.default_searchable" 40 android:value=".ui.MailActivity" /> 41 <!-- TODO: add a permission on this --> 42 <activity 43 android:label="@string/app_name" 44 android:name=".ui.MailActivity" 45 android:launchMode="singleTop" 46 android:theme="@style/PlainUnifiedEmailTheme" > 47 <intent-filter > 48 <action android:name="android.intent.action.MAIN" /> 49 <category android:name="android.intent.category.LAUNCHER" /> 50 </intent-filter> 51 <intent-filter> 52 <action android:name="android.intent.action.VIEW" /> 53 <category android:name="android.intent.category.DEFAULT" /> 54 <data android:scheme="content"/> 55 <data android:mimeType="application/mail-ls" /> 56 </intent-filter> 57 <intent-filter> 58 <action android:name="android.intent.action.SEARCH" /> 59 <category android:name="android.intent.category.DEFAULT" /> 60 </intent-filter> 61 <meta-data android:name="android.app.searchable" android:resource="@xml/searchable" /> 62 </activity> 63 <activity android:name=".compose.ComposeActivity" 64 android:theme="@style/ComposeTheme"> 65 <intent-filter> 66 <action android:name="android.intent.action.VIEW" /> 67 <action android:name="android.intent.action.SENDTO" /> 68 <category android:name="android.intent.category.DEFAULT" /> 69 <category android:name="android.intent.category.BROWSABLE" /> 70 <data android:scheme="mailto" /> 71 </intent-filter> 72 73 <intent-filter> 74 <action android:name="android.nfc.action.NDEF_DISCOVERED" /> 75 <category android:name="android.intent.category.DEFAULT" /> 76 <data android:scheme="mailto" /> 77 </intent-filter> 78 79 <intent-filter android:label="@string/compose"> 80 <action android:name="android.intent.action.SEND" /> 81 <category android:name="android.intent.category.DEFAULT" /> 82 <data android:mimeType="*/*" /> 83 </intent-filter> 84 85 <intent-filter android:label="@string/compose"> 86 <action android:name="android.intent.action.SEND_MULTIPLE" /> 87 <category android:name="android.intent.category.DEFAULT" /> 88 <data android:mimeType="*/*" /> 89 </intent-filter> 90 </activity> 91 92 <activity android:name=".ui.CreateShortcutActivity" 93 android:theme="@style/ShortcutWidgetTheme" 94 android:label="@string/activity_folder_selection" /> 95 96 <activity android:name=".ui.FolderSelectionActivity" 97 android:theme="@style/ShortcutWidgetTheme" 98 android:label="@string/activity_folder_selection" /> 99 100 <activity android:name=".ui.MailboxSelectionActivity" 101 android:theme="@style/InvisibleShortcutWidgetTheme" 102 android:label="@string/app_name" > 103 <intent-filter> 104 <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> 105 </intent-filter> 106 </activity> 107 108 <activity 109 android:name=".photo.MailPhotoViewActivity" 110 android:label="@string/app_name" 111 android:theme="@style/PhotoViewTheme" > 112 </activity> 113 <activity 114 android:name=".browse.EmlViewerActivity" 115 android:label="@string/app_name" 116 android:theme="@style/UnifiedEmailTheme" > 117 <intent-filter> 118 <action android:name="android.intent.action.VIEW" /> 119 <category android:name="android.intent.category.DEFAULT" /> 120 <data android:mimeType="message/rfc822" /> 121 <data android:mimeType="application/eml" /> 122 </intent-filter> 123 </activity> 124 125 <provider 126 android:authorities="com.android.mail.accountcache" 127 android:label="@string/account_cache_provider" 128 android:multiprocess="false" 129 android:name=".providers.UnifiedAccountCacheProvider" > 130 <grant-uri-permission android:pathPattern=".*" /> 131 </provider> 132 133 <provider 134 android:authorities="com.android.mail.mockprovider" 135 android:label="@string/mock_content_provider" 136 android:multiprocess="false" 137 android:name=".providers.protos.mock.MockUiProvider" > 138 <grant-uri-permission android:pathPattern=".*" /> 139 </provider> 140 141 <provider 142 android:authorities="com.android.mail.conversation.provider" 143 android:label="@string/conversation_content_provider" 144 android:multiprocess="false" 145 android:name=".browse.UnifiedConversationProvider" > 146 <grant-uri-permission android:pathPattern=".*" /> 147 </provider> 148 149 <provider 150 android:authorities="@string/eml_attachment_provider" 151 android:multiprocess="false" 152 android:exported="false" 153 android:name="com.android.mail.providers.EmlAttachmentProvider" > 154 <grant-uri-permission android:pathPattern=".*" /> 155 </provider> 156 157 <!-- The android:name is the name of the Provider class which is stored in 158 UnifiedEmail, and has package name com.android.mail.providers and the class is 159 called SuggestionsProvider. The authority name is specified in the MailAppProvider 160 which is specific to the two apps separately. --> 161 <provider android:name="com.android.mail.providers.SuggestionsProvider" 162 android:authorities="com.android.mail.suggestionsprovider" /> 163 164 <service android:name=".compose.EmptyService"/> 165 166 <!-- Widget --> 167 <receiver android:name=".widget.WidgetProvider" android:label="@string/app_name"> 168 <intent-filter> 169 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 170 </intent-filter> 171 <intent-filter> 172 <action android:name="com.android.mail.ACTION_NOTIFY_DATASET_CHANGED" /> 173 </intent-filter> 174 <meta-data android:name="android.appwidget.provider" 175 android:resource="@xml/widget_info" /> 176 </receiver> 177 <service android:name=".widget.WidgetService" 178 android:permission="android.permission.BIND_REMOTEVIEWS" 179 android:exported="false" /> 180 <service android:name=".MailLogService"/> 181 <service android:name=".browse.EmlTempFileDeletionService" /> 182 183 </application> 184 185 </manifest> 186