AndroidManifest.xml 11.8 KB
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/Calendar/AndroidManifest.xml
**
** Copyright 2006, The Android Open Source Project
**
7 8 9
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
10
**
11
**     http://www.apache.org/licenses/LICENSE-2.0
12
**
13 14 15 16
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
17 18 19 20 21 22 23
** limitations under the License.
*/
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.calendar"
        android:sharedUserLabel="@string/app_label">

24 25 26 27
    <!--
       NOTE: and original-package cannot be used, since the Eclair
       version was using a shared user ID with the provider.
    -->
28

29
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
30
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
31 32
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.VIBRATE"/>
33
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
34 35 36
    <uses-permission android:name="android.permission.READ_CALENDAR" />
    <uses-permission android:name="android.permission.WRITE_CALENDAR" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
37
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
38
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
39
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
40
    <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
41
    <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="18"></uses-sdk>
42 43

    <application android:name="CalendarApplication"
Justin Ho's avatar
Justin Ho committed
44
            android:label="@string/app_label" android:icon="@mipmap/ic_launcher_calendar"
45
            android:taskAffinity="android.task.calendar"
46
            android:hardwareAccelerated="true"
47 48
            android:backupAgent="com.android.calendar.CalendarBackupAgent"
            android:requiredAccountType="*" >
49 50 51

        <meta-data android:name="com.google.android.backup.api_key"
                android:value="AEdPqrEAAAAIM256oVOGnuSel5QKDpL8je_T65ZI8rFnDinssA" />
52

53 54
        <activity
            android:name="AllInOneActivity"
55
            android:theme="@style/CalendarTheme.WithActionBar"
56
            android:launchMode="singleTask"
57 58
            android:windowSoftInputMode="adjustPan"
            android:exported="true">
59 60 61 62
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
Jeff Brown's avatar
Jeff Brown committed
63
                <category android:name="android.intent.category.APP_CALENDAR" />
64
            </intent-filter>
65 66 67 68 69 70 71
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="time/epoch" />
                <data android:host="com.android.calendar" />
                <data android:scheme="content"/>
            </intent-filter>
72 73 74
        </activity>

        <activity-alias android:name="LaunchActivity"
75 76
            android:targetActivity=".AllInOneActivity"
            android:exported="true">
Erik's avatar
Erik committed
77 78
        </activity-alias>

79
        <activity android:name="EventInfoActivity"
Isaac Katzenelson's avatar
Isaac Katzenelson committed
80
            android:parentActivityName="com.android.calendar.AllInOneActivity"
81 82 83 84 85
            android:theme="@style/CalendarTheme.WithActionBar">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
Isaac Katzenelson's avatar
Isaac Katzenelson committed
86 87 88 89 90
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/event" />
            </intent-filter>
91 92
            <meta-data android:name="android.support.PARENT_ACTIVITY"
                android:value="com.android.calendar.AllInOneActivity" />
93 94
        </activity>

Erik's avatar
Erik committed
95 96 97 98 99
        <activity android:name=".event.EditEventActivity"
            android:theme="@style/CalendarTheme.WithActionBar">
        </activity>

        <activity-alias android:name="EditEventActivity"
100 101
            android:targetActivity=".event.EditEventActivity"
            android:exported="true">
102 103
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
104
                <action android:name="android.intent.action.INSERT" />
105 106
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.item/event" />
Erik's avatar
Erik committed
107 108 109
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.EDIT" />
110
                <action android:name="android.intent.action.INSERT" />
Erik's avatar
Erik committed
111 112
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.cursor.dir/event" />
113
            </intent-filter>
114
        </activity-alias>
115

116
        <activity android:name="GoogleCalendarUriIntentFilter" android:label="@string/app_label"
117
            android:theme="@android:style/Theme.NoDisplay"
118 119
            android:configChanges="orientation|keyboardHidden">

120 121
            <intent-filter
               android:priority="50">
122 123 124 125 126 127 128 129 130 131
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
               <data android:scheme="http" android:host="www.google.com" android:pathPrefix="/calendar/event" />
               <data android:scheme="https" android:host="www.google.com" android:pathPrefix="/calendar/event" />
               <data android:scheme="http" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" />
               <data android:scheme="https" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" />
            </intent-filter>
        </activity>

132 133 134 135 136 137 138 139
        <activity android:name=".selectcalendars.SelectVisibleCalendarsActivity"
            android:label="@string/select_visible_calendars_title"
            android:theme="@android:style/Theme.Holo.Light"/>

        <activity android:name=".selectcalendars.SelectSyncedCalendarsMultiAccountActivity"
            android:label="@string/select_synced_calendars_title"
            android:theme="@android:style/Theme.Holo.Light"/>

140
        <activity android:name="CalendarSettingsActivity" android:label="@string/preferences_title"
141
            android:theme="@android:style/Theme.Holo.Light"/>
142

143 144 145 146 147
        <!-- Declarations for search -->
        <!-- Make all activities a searchable context -->
        <meta-data android:name="android.app.default_searchable"
            android:value="com.android.calendar.SearchActivity"/>

148
        <activity android:name="SearchActivity" android:label="@string/search_title"
149
            android:launchMode="singleTop" android:theme="@style/CalendarTheme.WithActionBar"
150
            android:windowSoftInputMode="stateAlwaysHidden"
151
            android:exported="true">
152 153 154 155 156 157
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
        </activity>

158
        <provider android:name=".CalendarRecentSuggestionsProvider"
159
            android:exported="false"
160 161
            android:authorities="com.android.calendar.CalendarRecentSuggestionsProvider" />

162 163
        <!-- Declarations for alerts/reminders -->
        <activity android:name=".alerts.AlertActivity" android:launchMode="singleInstance"
164
             android:theme="@android:style/Theme.Holo.Dialog" android:excludeFromRecents="true" />
165

166 167 168 169
        <activity android:name=".alerts.QuickResponseActivity" android:launchMode="singleInstance"
             android:theme="@android:style/Theme.Holo.Dialog" android:excludeFromRecents="true"
             android:label="@string/quick_response_dialog_title" />

170
        <receiver android:name=".alerts.AlertReceiver">
171 172 173
            <intent-filter>
                <action android:name="android.intent.action.EVENT_REMINDER" />
                <action android:name="android.intent.action.TIME_SET" />
174
                <data android:scheme="content" />
175
            </intent-filter>
176 177 178
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
179 180 181 182 183 184 185 186
            <intent-filter>
                <action android:name="android.intent.action.LOCALE_CHANGED" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PROVIDER_CHANGED"/>
                <data android:scheme="content"/>
                <data android:host="com.android.calendar"/>
            </intent-filter>
187 188
        </receiver>

189 190 191
        <receiver android:name=".alerts.GlobalDismissManager"
                  android:exported="false" />

192 193 194 195 196 197 198 199 200 201
        <receiver android:name=".UpgradeReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>

202
        <service android:name=".alerts.AlertService" />
203

204 205 206
        <service android:name=".alerts.DismissAlarmsService" />

        <service android:name=".alerts.SnoozeAlarmsService" />
207

208 209
        <service android:name=".alerts.InitAlarmsService" />

210
        <!-- Declarations for the widget -->
211
        <receiver android:name=".widget.CalendarAppWidgetProvider" android:label="@string/gadget_title">
212 213 214 215 216 217 218
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                <action android:name="com.android.calendar.APPWIDGET_UPDATE" />
            </intent-filter>
            <meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
        </receiver>

219 220 221 222 223
        <receiver android:name=".widget.CalendarAppWidgetService$CalendarFactory">
            <intent-filter>
                <action android:name="android.intent.action.TIMEZONE_CHANGED"/>
                <action android:name="android.intent.action.DATE_CHANGED"/>
                <action android:name="android.intent.action.TIME_SET"/>
224
                <action android:name="android.intent.action.LOCALE_CHANGED"/>
225 226 227 228 229 230 231 232 233 234
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PROVIDER_CHANGED"/>
                <data android:scheme="content"/>
                <data android:host="com.android.calendar"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.android.calendar.APPWIDGET_SCHEDULED_UPDATE"/>
                <data android:scheme="content"/>
                <data android:host="com.android.calendar"/>
235
                <data android:mimeType="vnd.android.data/update" />
236 237 238
            </intent-filter>
        </receiver>

Michael Chan's avatar
Michael Chan committed
239
        <service android:name=".widget.CalendarAppWidgetService"
240
            android:permission="android.permission.BIND_REMOTEVIEWS"
241 242
            android:exported="false">
        </service>
243

Michael Chan's avatar
Michael Chan committed
244 245
        <service android:name=".AsyncQueryServiceHelper" />

246 247 248
    </application>
</manifest>