Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / calendar / src / main / AndroidManifest.xml

AndroidManifest.xml169 lines · 8.6 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools">
4
5 <!-- Offline app (#884): androidx.work merges in ACCESS_NETWORK_STATE, which nothing here uses. -->
6 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
7
8 <uses-permission android:name="android.permission.READ_CALENDAR" />
9 <uses-permission android:name="android.permission.WRITE_CALENDAR" />
10 <uses-permission android:name="android.permission.USE_EXACT_ALARM" />
11 <!-- SCHEDULE_EXACT_ALARM is only needed up to API 32: on API 33+ the
12 USE_EXACT_ALARM permission above covers exact reminders (install-granted,
13 non-revocable). The gate still checks canScheduleExactAlarms() at runtime
14 via SpecialAccess.hasExactAlarms() so a denial routes through
15 AppPermissionsGate instead of silently degrading. -->
16 <uses-permission
17 android:name="android.permission.SCHEDULE_EXACT_ALARM"
18 android:maxSdkVersion="32" />
19 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
20 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
21
22 <permission
23 android:name="com.vayunmathur.calendar.permissions.ACCESS_CALENDAR"
24 android:protectionLevel="signature" />
25
26 <application
27 android:allowBackup="true"
28 android:dataExtractionRules="@xml/data_extraction_rules"
29 android:icon="@mipmap/ic_launcher"
30 android:label="@string/app_name"
31 android:roundIcon="@mipmap/ic_launcher"
32 android:supportsRtl="true"
33 android:theme="@style/Theme.General">
34 <activity
35 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
36 android:name="MainActivity"
37 android:exported="true"
38 android:launchMode="singleTask"
39 android:theme="@style/Theme.General">
40 <intent-filter>
41 <action android:name="android.intent.action.MAIN" />
42 <category android:name="android.intent.category.LAUNCHER" />
43 </intent-filter>
44 <intent-filter>
45 <action android:name="android.intent.action.APPLICATION_PREFERENCES" />
46 <category android:name="android.intent.category.DEFAULT" />
47 </intent-filter>
48 <intent-filter>
49 <action android:name="android.intent.action.INSERT" />
50 <data android:mimeType="vnd.android.cursor.dir/event" />
51 <category android:name="android.intent.category.DEFAULT" />
52 </intent-filter>
53 <!-- Date-jump from the system provider. The provider usually sends
54 these VIEW intents with a null type, so the second filter matches
55 on scheme+host+path only (no mimeType). Both are scoped to /time
56 so event URIs never fall into the ICS path. -->
57 <intent-filter>
58 <action android:name="android.intent.action.VIEW" />
59 <category android:name="android.intent.category.DEFAULT" />
60 <data android:mimeType="time/epoch" />
61 <data android:host="com.android.calendar" />
62 <data android:scheme="content"/>
63 <data android:pathPrefix="/time" />
64 </intent-filter>
65 <intent-filter>
66 <action android:name="android.intent.action.VIEW" />
67 <category android:name="android.intent.category.DEFAULT" />
68 <data android:scheme="content" />
69 <data android:host="com.android.calendar" />
70 <data android:pathPrefix="/time" />
71 </intent-filter>
72 <!-- ICS import: text/calendar family only, via content/file URIs
73 (file managers, Downloads, shares, picker). application/octet-stream
74 is deliberately excluded: it matched every download. http/https are
75 deliberately excluded too: browsers only route links to BROWSABLE
76 activities and App Links require declared hosts, so keeping them
77 would either re-introduce browser hijacking or break lint; a
78 browser-downloaded .ics still imports fine via the Downloads app.
79 No pathPattern: filter dimensions AND-match, and opaque content
80 URIs (MediaStore/Gmail IDs) rarely end in .ics — the mimeType
81 scoping above is what prevents hijacks. -->
82 <intent-filter>
83 <action android:name="android.intent.action.VIEW" />
84 <action android:name="android.intent.action.SEND" />
85 <action android:name="android.intent.action.SEND_MULTIPLE" />
86 <action android:name="android.intent.action.GET_CONTENT" />
87 <category android:name="android.intent.category.DEFAULT" />
88 <data android:scheme="content" />
89 <data android:scheme="file" />
90 <data android:mimeType="text/calendar" />
91 <data android:mimeType="application/calendar" />
92 <data android:mimeType="application/x-icalendar" />
93 <data android:mimeType="text/x-icalendar" />
94 <data android:mimeType="text/icalendar" />
95 <data android:mimeType="application/ics" />
96 </intent-filter>
97 </activity>
98 <receiver
99 android:name=".glance.CalendarGlanceWidgetReceiver"
100 android:exported="true">
101 <intent-filter>
102 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
103 </intent-filter>
104 <intent-filter>
105 <action android:name="android.intent.action.DATE_CHANGED" />
106 <action android:name="android.intent.action.TIME_SET" />
107 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
108 </intent-filter>
109 <intent-filter>
110 <action android:name="android.intent.action.PROVIDER_CHANGED" />
111 <data android:scheme="content" />
112 </intent-filter>
113 <meta-data
114 android:name="android.appwidget.provider"
115 android:resource="@xml/calendar_glance_widget_info" />
116 </receiver>
117 <receiver
118 android:name=".glance.CalendarMonthGlanceWidgetReceiver"
119 android:exported="true">
120 <intent-filter>
121 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
122 </intent-filter>
123 <intent-filter>
124 <action android:name="android.intent.action.DATE_CHANGED" />
125 <action android:name="android.intent.action.TIME_SET" />
126 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
127 </intent-filter>
128 <intent-filter>
129 <action android:name="android.intent.action.PROVIDER_CHANGED" />
130 <data android:scheme="content" />
131 </intent-filter>
132 <meta-data
133 android:name="android.appwidget.provider"
134 android:resource="@xml/calendar_month_widget_info" />
135 </receiver>
136
137 <receiver
138 android:name=".util.ReminderReceiver"
139 android:enabled="true"
140 android:directBootAware="true"
141 android:exported="false" />
142 <receiver
143 android:name=".util.BootReceiver"
144 android:enabled="true"
145 android:directBootAware="true"
146 android:exported="true">
147 <intent-filter>
148 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
149 <action android:name="android.intent.action.BOOT_COMPLETED" />
150 <action android:name="android.intent.action.QUICKBOOT_POWERON" />
151 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
152 </intent-filter>
153 </receiver>
154 <activity
155 android:name=".intents.GetIntent"
156 android:exported="true"
157 android:theme="@android:style/Theme.NoDisplay"
158 android:permission="com.vayunmathur.calendar.permissions.ACCESS_CALENDAR">
159 </activity>
160
161 <activity
162 android:name=".intents.InsertIntent"
163 android:exported="true"
164 android:theme="@android:style/Theme.NoDisplay"
165 android:permission="com.vayunmathur.calendar.permissions.ACCESS_CALENDAR">
166 </activity>
167 </application>
168
169</manifest>