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 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
6 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
7 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
8 <uses-permission android:name="android.permission.INTERNET" />
9 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
10 <uses-permission android:name="android.permission.WAKE_LOCK" />
11 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
12 <uses-permission android:name="android.permission.VIBRATE" />
13 <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
14 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
15 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
16 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
17 <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
18
19 <uses-feature
20 android:name="android.hardware.location"
21 android:required="false" />
22 <uses-feature
23 android:name="android.hardware.location.gps"
24 android:required="false" />
25 <uses-feature
26 android:name="android.hardware.location.network"
27 android:required="false" />
28
29 <uses-permission android:name="android.permission.CAMERA" />
30 <uses-permission android:name="android.permission.RECORD_AUDIO" />
31 <uses-permission android:name="android.permission.BLUETOOTH" />
32 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
33 <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
34 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
35 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
36
37 <!-- New permissions required to run as foreground service on Android 14.
38 SYSTEM_EXEMPTED is used when the app is on the doze allow list. This is normal
39 and the expected default behaviour. The other two hijack RECORD_AUDIO and CAMERA if they
40 happen to be granted. -->
41 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
42 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED" />
43 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
44 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
45 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
46
47 <!-- this foreground service type permission is exclusively used for import and export backup -->
48 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
49
50 <uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
51
52 <uses-feature
53 android:name="android.hardware.camera"
54 android:required="false" />
55 <uses-feature
56 android:name="android.hardware.camera.autofocus"
57 android:required="false" />
58
59 <uses-feature
60 android:name="android.hardware.microphone"
61 android:required="false" />
62
63 <queries>
64 <package android:name="org.sufficientlysecure.keychain" />
65 <package android:name="org.torproject.android" />
66
67 <intent>
68 <action android:name="eu.siacs.conversations.location.request" />
69 </intent>
70 <intent>
71 <action android:name="eu.siacs.conversations.location.show" />
72 </intent>
73 <intent>
74 <action android:name="android.intent.action.VIEW" />
75 <data android:mimeType="resource/folder" />
76 </intent>
77 <intent>
78 <action android:name="android.intent.action.VIEW" />
79 </intent>
80 <intent>
81 <action android:name="org.unifiedpush.android.connector.MESSAGE" />
82 </intent>
83 </queries>
84
85
86 <application
87 android:name=".Conversations"
88 android:allowBackup="true"
89 android:appCategory="social"
90 android:dataExtractionRules="@xml/data_extraction_rules"
91 android:fullBackupContent="@xml/backup_content"
92 android:hardwareAccelerated="true"
93 android:icon="@mipmap/new_launcher"
94 android:label="@string/app_name"
95 android:largeHeap="true"
96 android:localeConfig="@xml/locales_config"
97 android:networkSecurityConfig="@xml/network_security_configuration"
98 android:preserveLegacyExternalStorage="true"
99 android:requestLegacyExternalStorage="true"
100 android:theme="@style/Theme.Conversations3"
101 tools:targetApi="tiramisu">
102
103 <meta-data
104 android:name="com.google.android.gms.car.application"
105 android:resource="@xml/automotive_app_desc" />
106
107 <!-- The warning that systemExempted requires alarm permission is incorrect because doze white list is sufficient -->
108 <service
109 android:name=".services.XmppConnectionService"
110 android:exported="false"
111 android:foregroundServiceType="specialUse|systemExempted|microphone|camera"
112 tools:ignore="ForegroundServicePermission">
113 <property
114 android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
115 android:value="xmpp-im" />
116 </service>
117
118 <service
119 android:name="androidx.work.impl.foreground.SystemForegroundService"
120 android:foregroundServiceType="dataSync"
121 tools:node="merge" />
122
123 <service
124 android:name=".services.ImportBackupService"
125 android:exported="false"
126 android:foregroundServiceType="dataSync" />
127 <service
128 android:name=".services.ContactChooserTargetService"
129 android:exported="true"
130 android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
131 <intent-filter>
132 <action android:name="android.service.chooser.ChooserTargetService" />
133 </intent-filter>
134 </service>
135
136 <service
137 android:name=".services.CallIntegrationConnectionService"
138 android:exported="true"
139 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
140 <intent-filter>
141 <action android:name="android.telecom.ConnectionService" />
142 </intent-filter>
143 </service>
144
145 <receiver
146 android:name=".receiver.SystemEventReceiver"
147 android:exported="false">
148 <intent-filter>
149 <action android:name="android.intent.action.BOOT_COMPLETED" />
150 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
151 <action
152 android:name="android.net.conn.CONNECTIVITY_CHANGE"
153 tools:ignore="BatteryLife" />
154 <action android:name="android.intent.action.ACTION_SHUTDOWN" />
155 <action android:name="android.media.RINGER_MODE_CHANGED" />
156 </intent-filter>
157 </receiver>
158
159 <receiver
160 android:name=".receiver.UnifiedPushDistributor"
161 android:enabled="false"
162 android:exported="true">
163 <intent-filter>
164 <action android:name="org.unifiedpush.android.distributor.REGISTER" />
165 <action android:name="org.unifiedpush.android.distributor.UNREGISTER" />
166 <action android:name="org.unifiedpush.android.distributor.feature.BYTES_MESSAGE" />
167 <action android:name="org.unifiedpush.android.distributor.feature.MESSENGER" />
168 <action android:name="org.unifiedpush.android.distributor.feature.APP_VALIDATION" />
169 </intent-filter>
170 <intent-filter>
171 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
172 <data android:scheme="package" />
173 </intent-filter>
174 </receiver>
175
176 <activity
177 android:name=".ui.ShareLocationActivity"
178 android:label="@string/title_activity_share_location" />
179 <activity
180 android:name=".ui.SearchActivity"
181 android:label="@string/search_messages" />
182 <activity
183 android:name=".ui.RecordingActivity"
184 android:configChanges="orientation|screenSize"
185 android:theme="@style/Theme.Conversations3.Dialog" />
186 <activity
187 android:name=".ui.ShowLocationActivity"
188 android:label="@string/title_activity_show_location" />
189 <activity
190 android:name=".ui.ConversationActivity"
191 android:exported="true"
192 android:theme="@style/Theme.Conversations3.SplashScreen">
193 <intent-filter>
194 <action android:name="android.intent.action.MAIN" />
195 <category android:name="android.intent.category.LAUNCHER" />
196 </intent-filter>
197 </activity>
198 <activity
199 android:name=".ui.ConversationsActivity"
200 android:launchMode="singleTask"
201 android:minWidth="300dp"
202 android:minHeight="300dp"
203 android:windowSoftInputMode="stateHidden" />
204 <activity
205 android:name=".ui.ScanActivity"
206 android:screenOrientation="portrait"
207 android:theme="@style/Theme.Conversations3.FullScreen"
208 android:windowSoftInputMode="stateAlwaysHidden" />
209 <activity
210 android:name=".ui.UriHandlerActivity"
211 android:exported="true">
212 <intent-filter>
213 <action android:name="android.intent.action.VIEW" />
214
215 <category android:name="android.intent.category.DEFAULT" />
216 <category android:name="android.intent.category.BROWSABLE" />
217
218 <data android:scheme="xmpp" />
219 </intent-filter>
220 <intent-filter android:autoVerify="true">
221 <action android:name="android.intent.action.VIEW" />
222
223 <category android:name="android.intent.category.DEFAULT" />
224 <category android:name="android.intent.category.BROWSABLE" />
225
226 <data android:scheme="https" />
227 <data android:host="conversations.im" />
228 <data android:pathPrefix="/i/" />
229 <data android:pathPrefix="/j/" />
230 </intent-filter>
231 <intent-filter>
232 <action android:name="android.intent.action.SENDTO" />
233
234 <category android:name="android.intent.category.DEFAULT" />
235
236 <data android:scheme="imto" />
237 <data android:host="jabber" />
238 </intent-filter>
239 <intent-filter>
240 <action android:name="android.intent.action.SENDTO" />
241
242 <category android:name="android.intent.category.DEFAULT" />
243
244 <data android:scheme="imto" />
245 <data android:host="xmpp" />
246 </intent-filter>
247 </activity>
248 <activity
249 android:name=".ui.StartConversationActivity"
250 android:exported="true"
251 android:label="@string/title_activity_new_chat"
252 android:launchMode="singleTop">
253 <intent-filter>
254 <action android:name="android.intent.action.VIEW" />
255 </intent-filter>
256 </activity>
257 <activity
258 android:name=".ui.activity.SettingsActivity"
259 android:exported="true"
260 android:label="@string/title_activity_settings">
261 <intent-filter>
262 <action android:name="android.intent.action.MAIN" />
263 <category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
264 </intent-filter>
265 </activity>
266 <activity
267 android:name=".ui.ChooseContactActivity"
268 android:label="@string/title_activity_choose_contact" />
269 <activity
270 android:name=".ui.BlocklistActivity"
271 android:label="@string/title_activity_block_list" />
272 <activity
273 android:name=".ui.ChangePasswordActivity"
274 android:label="@string/change_password_on_server" />
275 <activity
276 android:name=".ui.ChooseAccountForProfilePictureActivity"
277 android:enabled="false"
278 android:exported="true"
279 android:label="@string/choose_account">
280 <intent-filter android:label="@string/set_profile_picture">
281 <action android:name="android.intent.action.ATTACH_DATA" />
282 <category android:name="android.intent.category.DEFAULT" />
283
284 <data android:mimeType="image/*" />
285 </intent-filter>
286 </activity>
287 <activity
288 android:name=".ui.ShareViaAccountActivity"
289 android:label="@string/title_activity_share_via_account"
290 android:launchMode="singleTop" />
291 <activity
292 android:name=".ui.EditAccountActivity"
293 android:exported="false"
294 android:launchMode="singleTop"
295 android:windowSoftInputMode="stateHidden|adjustResize" />
296 <activity
297 android:name=".ui.ConferenceDetailsActivity"
298 android:label="@string/action_muc_details"
299 android:windowSoftInputMode="stateHidden" />
300 <activity
301 android:name=".ui.ContactDetailsActivity"
302 android:windowSoftInputMode="stateHidden" />
303 <activity
304 android:name=".ui.PublishProfilePictureActivity"
305 android:label="@string/mgmt_account_publish_avatar"
306 android:windowSoftInputMode="stateHidden" />
307 <activity
308 android:name=".ui.PublishGroupChatProfilePictureActivity"
309 android:label="@string/group_chat_avatar" />
310 <activity
311 android:name=".ui.ShareWithActivity"
312 android:exported="true"
313 android:launchMode="singleTop">
314
315 <intent-filter>
316 <action android:name="android.intent.action.SEND" />
317 <action android:name="android.intent.action.SEND_MULTIPLE" />
318
319 <category android:name="android.intent.category.DEFAULT" />
320
321 <data android:mimeType="text/plain" />
322 </intent-filter>
323
324 <intent-filter>
325 <action android:name="android.intent.action.SEND" />
326 <action android:name="android.intent.action.SEND_MULTIPLE" />
327
328 <category android:name="android.intent.category.DEFAULT" />
329
330 <data android:mimeType="*/*" />
331 </intent-filter>
332
333 <!-- the value here needs to be the full class name; independent of the configured applicationId -->
334 <meta-data
335 android:name="android.service.chooser.chooser_target_service"
336 android:value="eu.siacs.conversations.services.ContactChooserTargetService" />
337 </activity>
338 <activity
339 android:name=".ui.TrustKeysActivity"
340 android:label="@string/trust_omemo_fingerprints"
341 android:windowSoftInputMode="stateAlwaysHidden" />
342 <activity
343 android:name=".ui.AboutActivity"
344 android:parentActivityName=".ui.SettingsActivity">
345 <meta-data
346 android:name="android.support.PARENT_ACTIVITY"
347 android:value="eu.siacs.conversations.ui.SettingsActivity" />
348 </activity>
349 <activity
350 android:name="com.canhub.cropper.CropImageActivity"
351 android:theme="@style/Base.Theme.AppCompat" />
352 <activity android:name=".ui.MemorizingActivity" />
353
354 <activity
355 android:name=".ui.MediaBrowserActivity"
356 android:label="@string/media_browser" />
357
358 <provider
359 android:name="androidx.core.content.FileProvider"
360 android:authorities="${applicationId}.files"
361 android:exported="false"
362 android:grantUriPermissions="true">
363 <meta-data
364 android:name="android.support.FILE_PROVIDER_PATHS"
365 android:resource="@xml/file_paths" />
366 </provider>
367 <provider
368 android:name=".services.BarcodeProvider"
369 android:authorities="${applicationId}.barcodes"
370 android:exported="false"
371 android:grantUriPermissions="true" />
372
373 <activity
374 android:name=".ui.ShortcutActivity"
375 android:exported="true"
376 android:label="@string/contact">
377 <intent-filter>
378 <action android:name="android.intent.action.CREATE_SHORTCUT" />
379 </intent-filter>
380 </activity>
381 <activity
382 android:name=".ui.MucUsersActivity"
383 android:label="@string/group_chat_members" />
384 <activity
385 android:name=".ui.ChannelDiscoveryActivity"
386 android:label="@string/discover_channels" />
387 <activity
388 android:name=".ui.RtpSessionActivity"
389 android:autoRemoveFromRecents="true"
390 android:launchMode="singleInstance"
391 android:supportsPictureInPicture="true" />
392 </application>
393
394</manifest>