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.GET_ACCOUNTS_PRIVILEGED" />
28    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
29    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
30    <uses-permission android:name="android.permission.READ_SYNC_STATS" />
31    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
32    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
33    <uses-permission android:name="android.permission.INTERNET" />
34    <uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_READ" />
35    <uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_WRITE" />
36    <uses-permission android:name="android.permission.WAKE_LOCK" />
37    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
38    <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
39    <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
40    <uses-permission android:name="android.permission.MANAGE_USERS" />
41    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
42
43    <application android:label="@string/calendar_storage"
44                 android:allowBackup="false"
45                 android:icon="@drawable/app_icon"
46                 android:usesCleartextTraffic="false">
47
48        <provider android:name="CalendarProvider2" android:authorities="com.android.calendar"
49                android:label="@string/provider_label"
50                android:multiprocess="false"
51                android:exported="true"
52                android:readPermission="android.permission.READ_CALENDAR"
53                android:writePermission="android.permission.WRITE_CALENDAR" />
54
55        <receiver android:name="CalendarReceiver"
56            android:exported="true">
57            <intent-filter>
58                <action android:name="android.intent.action.BOOT_COMPLETED" />
59            </intent-filter>
60        </receiver>
61
62        <activity android:name="CalendarDebug" android:label="@string/calendar_info"
63            android:exported="true">
64            <intent-filter>
65                <action android:name="android.intent.action.MAIN" />
66                <category android:name="android.intent.category.DEFAULT" />
67            </intent-filter>
68        </activity>
69        <activity android:name="CalendarDebugActivity" android:label="@string/calendar_info"
70                android:exported="true"
71                android:theme="@android:style/Theme.Holo.Dialog">
72            <intent-filter>
73                <action android:name="android.intent.action.MAIN" />
74                <category android:name="android.intent.category.DEFAULT" />
75            </intent-filter>
76        </activity>
77        <receiver android:name="CalendarDebugReceiver"
78            android:exported="true">
79            <intent-filter>
80                 <action android:name="android.provider.Telephony.SECRET_CODE" />
81                 <data android:scheme="android_secret_code" android:host="225" />
82            </intent-filter>
83       </receiver>
84
85       <!-- Handles database upgrades after OTAs, then disables itself -->
86       <receiver android:name="CalendarUpgradeReceiver"
87           android:exported="true">
88           <!-- This broadcast is sent after the core system has finished
89                booting, before the home app is launched or BOOT_COMPLETED
90                is sent. -->
91           <intent-filter>
92               <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
93           </intent-filter>
94       </receiver>
95
96        <receiver android:name="CalendarProviderBroadcastReceiver"
97                  android:exported="false">
98            <intent-filter>
99                <action android:name="com.android.providers.calendar.intent.CalendarProvider2"/>
100                <category android:name="com.android.providers.calendar"/>
101            </intent-filter>
102            <intent-filter>
103                <action android:name="android.intent.action.EVENT_REMINDER"/>
104                <data android:scheme="content" />
105            </intent-filter>
106        </receiver>
107
108    </application>
109</manifest>
110