Home | History | Annotate | Download | only in exchange2
      1 <?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
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     package="com.android.exchange"
     20     android:versionCode="500000"
     21     android:versionName="5.0"
     22      >
     23 
     24     <uses-permission
     25         android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
     26     <uses-permission
     27         android:name="android.permission.ACCESS_NETWORK_STATE"/>
     28     <uses-permission
     29         android:name="android.permission.INTERNET"/>
     30     <uses-permission
     31         android:name="android.permission.VIBRATE"/>
     32     <uses-permission
     33         android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     34     <uses-permission
     35         android:name="android.permission.GET_ACCOUNTS" />
     36     <uses-permission
     37         android:name="android.permission.MANAGE_ACCOUNTS" />
     38     <uses-permission
     39         android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
     40     <uses-permission
     41         android:name="android.permission.READ_SYNC_SETTINGS" />
     42     <uses-permission
     43         android:name="android.permission.WRITE_SYNC_SETTINGS" />
     44 
     45     <uses-permission
     46         android:name="android.permission.READ_CONTACTS"/>
     47     <uses-permission
     48         android:name="android.permission.WRITE_CONTACTS"/>
     49     <uses-permission
     50         android:name="android.permission.READ_CALENDAR"/>
     51     <uses-permission
     52         android:name="android.permission.WRITE_CALENDAR"/>
     53     <uses-permission
     54         android:name="android.permission.USE_CREDENTIALS"/>
     55 
     56     <!-- Only required if a store implements push mail and needs to keep network open -->
     57     <uses-permission
     58         android:name="android.permission.WAKE_LOCK"/>
     59     <uses-permission
     60         android:name="android.permission.READ_PHONE_STATE"/>
     61 
     62     <uses-permission
     63         android:name="com.android.email.permission.READ_ATTACHMENT"/>
     64     <uses-permission
     65         android:name="com.android.email.permission.ACCESS_PROVIDER"/>
     66 
     67     <!-- Required for sending images from Gallery -->
     68     <uses-permission android:name="com.google.android.gallery3d.permission.GALLERY_PROVIDER" />
     69 
     70     <application
     71         android:icon="@mipmap/icon"
     72         android:label="@string/app_name"
     73         android:name="Exchange"
     74         android:theme="@android:style/Theme.Holo.Light"
     75         >
     76 
     77         <receiver
     78             android:name="com.android.exchange.EmailSyncAlarmReceiver"/>
     79         <receiver
     80             android:name="com.android.exchange.MailboxAlarmReceiver"/>
     81 
     82         <receiver
     83             android:name=".service.ExchangeBroadcastReceiver"
     84             android:enabled="true">
     85             <intent-filter>
     86                 <action
     87                     android:name="android.intent.action.BOOT_COMPLETED" />
     88                 <action
     89                     android:name="android.intent.action.DEVICE_STORAGE_LOW" />
     90                 <action
     91                     android:name="android.intent.action.DEVICE_STORAGE_OK" />
     92                 <action
     93                     android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
     94             </intent-filter>
     95         </receiver>
     96 
     97         <service
     98             android:name=".service.ExchangeBroadcastProcessorService" />
     99 
    100         <!--Required stanza to register the EAS EmailSyncAdapterService with SyncManager -->
    101         <service
    102             android:name="com.android.exchange.EmailSyncAdapterService"
    103             android:exported="true">
    104             <intent-filter>
    105                 <action
    106                     android:name="android.content.SyncAdapter" />
    107             </intent-filter>
    108             <meta-data android:name="android.content.SyncAdapter"
    109                        android:resource="@xml/syncadapter_email" />
    110         </service>
    111 
    112         <!--Required stanza to register the EAS ContactsSyncAdapterService with SyncManager -->
    113         <service
    114             android:name="com.android.exchange.ContactsSyncAdapterService"
    115             android:exported="true">
    116             <intent-filter>
    117                 <action
    118                     android:name="android.content.SyncAdapter" />
    119             </intent-filter>
    120             <meta-data android:name="android.content.SyncAdapter"
    121                        android:resource="@xml/syncadapter_contacts" />
    122         </service>
    123 
    124         <!--Required stanza to register the EAS CalendarSyncAdapterService with SyncManager -->
    125         <service
    126             android:name="com.android.exchange.CalendarSyncAdapterService"
    127             android:exported="true">
    128             <intent-filter>
    129                 <action
    130                     android:name="android.content.SyncAdapter" />
    131             </intent-filter>
    132             <meta-data android:name="android.content.SyncAdapter"
    133                        android:resource="@xml/syncadapter_calendar" />
    134         </service>
    135 
    136         <!-- Add android:process=":remote" below to enable ExchangeService as a separate process -->
    137         <service
    138             android:name="com.android.exchange.ExchangeService"
    139             android:enabled="true"
    140             android:permission="com.android.email.permission.ACCESS_PROVIDER"
    141             >
    142             <intent-filter>
    143                 <action
    144                     android:name="com.android.email.EXCHANGE_INTENT" />
    145             </intent-filter>
    146         </service>
    147 
    148         <provider
    149             android:name="com.android.exchange.provider.ExchangeDirectoryProvider"
    150             android:authorities="com.android.exchange.directory.provider"
    151             android:readPermission="android.permission.READ_CONTACTS"
    152             android:multiprocess="false"
    153             android:exported="true"
    154             >
    155           <meta-data
    156               android:name="android.content.ContactDirectory"
    157               android:value="true"/>
    158         </provider>
    159 
    160         <activity android:name=".EasCertificateRequestor">
    161             <intent-filter>
    162                 <action android:name="com.android.emailcommon.REQUEST_CERT" />
    163                 <data android:scheme="eas" android:path="/certrequest" />
    164                 <category android:name="android.intent.category.DEFAULT" />
    165             </intent-filter>
    166         </activity>
    167         <activity android:name=".SettingsRedirector">
    168             <intent-filter>
    169                 <action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />
    170                 <category android:name="android.intent.category.DEFAULT" />
    171             </intent-filter>
    172         </activity>
    173     </application>
    174 </manifest>
    175