Home | History | Annotate | Download | only in CalendarProvider
      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 xmlns:android="http://schemas.android.com/apk/res/android"
     18         package="com.android.providers.calendar"
     19         android:sharedUserId="android.uid.calendar">
     20 
     21     <uses-permission android:name="android.permission.READ_CALENDAR" />
     22     <uses-permission android:name="android.permission.WRITE_CALENDAR" />
     23     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
     24     <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
     25     <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.cl" />
     26     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     27     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
     28     <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
     29     <uses-permission android:name="android.permission.READ_SYNC_STATS" />
     30     <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
     31     <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
     32     <uses-permission android:name="android.permission.INTERNET" />
     33     <uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_READ" />
     34     <uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_WRITE" />
     35     <uses-permission android:name="android.permission.WAKE_LOCK" />
     36 
     37     <application android:label="@string/calendar_storage"
     38                  android:icon="@drawable/app_icon">
     39         <!-- TODO: Remove dependency of application on the test runner
     40              (android.test) library. -->
     41         <uses-library android:name="android.test.runner" />
     42 
     43         <provider android:name="CalendarProvider2" android:authorities="com.android.calendar"
     44                 android:label="@string/provider_label"
     45                 android:multiprocess="false"
     46                 android:readPermission="android.permission.READ_CALENDAR"
     47                 android:writePermission="android.permission.WRITE_CALENDAR" />
     48 
     49         <!-- This is used to keep the provider alive long enough to send update
     50             intent broadcasts. -->
     51         <service android:name=".EmptyService" />
     52 
     53         <activity android:name="CalendarContentProviderTests" android:label="Calendar Content Provider">
     54             <intent-filter>
     55                 <action android:name="android.intent.action.MAIN" />
     56                 <category android:name="android.intent.category.UNIT_TEST" />
     57             </intent-filter>
     58         </activity>
     59         <receiver android:name="CalendarReceiver">
     60             <intent-filter>
     61                 <action android:name="android.intent.action.BOOT_COMPLETED" />
     62             </intent-filter>
     63         </receiver>
     64         <receiver android:name=".CalendarAppWidgetProvider" android:label="@string/gadget_title">
     65             <intent-filter>
     66                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
     67                 <action android:name="com.android.calendar.APPWIDGET_UPDATE" />
     68             </intent-filter>
     69             <meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
     70         </receiver>
     71         <receiver android:name=".TimeChangeReceiver" android:enabled="false">
     72             <intent-filter>
     73                 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
     74                 <action android:name="android.intent.action.TIME_SET" />
     75                 <action android:name="android.intent.action.DATE_CHANGED" />
     76             </intent-filter>
     77         </receiver>
     78         <service android:name=".CalendarAppWidgetService" />
     79         <activity android:name="CalendarDebug" android:label="@string/calendar_info">
     80             <intent-filter>
     81                 <action android:name="android.intent.action.MAIN" />
     82                 <category android:name="android.intent.category.DEFAULT" />
     83             </intent-filter>
     84         </activity>
     85         <receiver android:name="CalendarDebugReceiver">
     86             <intent-filter>
     87                  <action android:name="android.provider.Telephony.SECRET_CODE" />
     88                  <data android:scheme="android_secret_code" android:host="225" />
     89             </intent-filter>
     90        </receiver>
     91 
     92        <!-- Handles database upgrades after OTAs, then disables itself -->
     93        <receiver android:name="CalendarUpgradeReceiver">
     94            <!-- This broadcast is sent after the core system has finished
     95                 booting, before the home app is launched or BOOT_COMPLETED
     96                 is sent. -->
     97            <intent-filter>
     98                <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
     99            </intent-filter>
    100        </receiver>
    101 
    102     </application>
    103 </manifest>
    104