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

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

AndroidManifest.xml151 lines · 6.9 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <!-- Task reminders and the daily summary. USE_EXACT_ALARM is install-granted on API 33+;
5 SCHEDULE_EXACT_ALARM covers 31-32. The scheduler still checks canScheduleExactAlarms()
6 and falls back to inexact alarms. -->
7 <uses-permission android:name="android.permission.USE_EXACT_ALARM" />
8 <uses-permission
9 android:name="android.permission.SCHEDULE_EXACT_ALARM"
10 android:maxSdkVersion="32" />
11 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
12 <!-- Optional "show tasks in calendar" mirror into a local read-only calendar; asked for
13 only when the user turns it on in settings. -->
14 <uses-permission android:name="android.permission.READ_CALENDAR" />
15 <uses-permission android:name="android.permission.WRITE_CALENDAR" />
16 <!-- Alarms do not survive a reboot; re-armed by BootReceiver. -->
17 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
18
19 <!-- Relay IPC for the everysync app's TodoSink. Signature-level: only apps signed
20 with the Modern Apps key can hold it, and the provider additionally narrows the
21 caller to com.vayunmathur.everysync at runtime. -->
22 <permission
23 android:name="com.vayunmathur.todo.permission.RELAY"
24 android:protectionLevel="signature" />
25
26 <!-- Assistant tools (get_todos / create_todo / complete_todo) for openassistant. -->
27 <permission
28 android:name="com.vayunmathur.todo.permissions.ACCESS_TODO"
29 android:protectionLevel="signature" />
30
31 <!-- Voice input in quick add goes through the user's speech recognizer. -->
32 <queries>
33 <intent>
34 <action android:name="android.speech.action.RECOGNIZE_SPEECH" />
35 </intent>
36 <!-- Settings' sync row opens EverySync. -->
37 <package android:name="com.vayunmathur.everysync" />
38 </queries>
39
40 <application
41 android:name=".TodoApplication"
42 android:allowBackup="true"
43 android:backupAgent=".platform.AppBackupAgent"
44 android:dataExtractionRules="@xml/data_extraction_rules"
45 android:icon="@mipmap/ic_launcher"
46 android:label="@string/app_name"
47 android:roundIcon="@mipmap/ic_launcher"
48 android:supportsRtl="true"
49 android:theme="@style/Theme.General">
50 <activity
51 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
52 android:name=".MainActivity"
53 android:exported="true"
54 android:launchMode="singleTop"
55 android:theme="@style/Theme.General">
56 <intent-filter>
57 <action android:name="android.intent.action.MAIN" />
58 <category android:name="android.intent.category.LAUNCHER" />
59 </intent-filter>
60 <!-- Text shared from any app becomes a new task (one per line). -->
61 <intent-filter android:label="@string/share_label">
62 <action android:name="android.intent.action.SEND" />
63 <category android:name="android.intent.category.DEFAULT" />
64 <data android:mimeType="text/plain" />
65 </intent-filter>
66 <meta-data
67 android:name="android.app.shortcuts"
68 android:resource="@xml/shortcuts" />
69 </activity>
70
71 <activity
72 android:name=".intents.GetTodosIntent"
73 android:exported="true"
74 android:permission="com.vayunmathur.todo.permissions.ACCESS_TODO"
75 android:theme="@android:style/Theme.NoDisplay" />
76 <activity
77 android:name=".intents.InsertTodoIntent"
78 android:exported="true"
79 android:permission="com.vayunmathur.todo.permissions.ACCESS_TODO"
80 android:theme="@android:style/Theme.NoDisplay" />
81 <activity
82 android:name=".intents.CompleteTodoIntent"
83 android:exported="true"
84 android:permission="com.vayunmathur.todo.permissions.ACCESS_TODO"
85 android:theme="@android:style/Theme.NoDisplay" />
86
87 <receiver
88 android:name=".widget.TodayWidgetReceiver"
89 android:exported="true"
90 android:label="@string/widget_today_label">
91 <intent-filter>
92 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
93 </intent-filter>
94 <intent-filter>
95 <action android:name="android.intent.action.DATE_CHANGED" />
96 <action android:name="android.intent.action.TIME_SET" />
97 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
98 </intent-filter>
99 <meta-data
100 android:name="android.appwidget.provider"
101 android:resource="@xml/today_widget_info" />
102 </receiver>
103 <receiver
104 android:name=".widget.QuickAddWidgetReceiver"
105 android:exported="true"
106 android:label="@string/widget_quick_add_label">
107 <intent-filter>
108 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
109 </intent-filter>
110 <meta-data
111 android:name="android.appwidget.provider"
112 android:resource="@xml/quick_add_widget_info" />
113 </receiver>
114
115 <service
116 android:name=".service.QuickAddTileService"
117 android:exported="true"
118 android:icon="@drawable/ic_add"
119 android:label="@string/tile_label"
120 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
121 <intent-filter>
122 <action android:name="android.service.quicksettings.action.QS_TILE" />
123 </intent-filter>
124 </service>
125
126 <provider
127 android:name=".sync.RelayTodoProvider"
128 android:authorities="com.vayunmathur.todo.relay"
129 android:exported="true"
130 android:readPermission="com.vayunmathur.todo.permission.RELAY"
131 android:writePermission="com.vayunmathur.todo.permission.RELAY" />
132
133 <receiver
134 android:name=".notifications.ReminderReceiver"
135 android:exported="false" />
136 <receiver
137 android:name=".notifications.ReminderActionReceiver"
138 android:exported="false" />
139 <receiver
140 android:name=".notifications.BootReceiver"
141 android:exported="true">
142 <intent-filter>
143 <action android:name="android.intent.action.BOOT_COMPLETED" />
144 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
145 <action android:name="android.intent.action.TIME_SET" />
146 <action android:name="android.intent.action.TIMEZONE_CHANGED" />
147 </intent-filter>
148 </receiver>
149 </application>
150
151</manifest>