SchildiChat-android/vector/src/main/AndroidManifest.xml

453 lines
21 KiB
XML
Raw Normal View History

2018-10-03 18:56:33 +03:00
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2019-03-28 19:51:54 +03:00
xmlns:tools="http://schemas.android.com/tools"
package="im.vector.app">
2018-10-03 18:56:33 +03:00
2020-06-18 18:46:50 +03:00
<!-- Needed for VOIP call to detect and switch to headset-->
2021-11-08 17:36:17 +03:00
<uses-permission
android:name="android.permission.BLUETOOTH"
android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
2018-10-03 18:56:33 +03:00
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
2020-01-02 20:12:44 +03:00
<uses-permission android:name="android.permission.VIBRATE" />
2020-01-22 16:19:04 +03:00
<uses-permission android:name="android.permission.CAMERA" />
2020-05-05 12:46:21 +03:00
<uses-permission android:name="android.permission.RECORD_AUDIO" />
2020-03-20 12:12:59 +03:00
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
2018-10-03 18:56:33 +03:00
2020-05-05 12:46:21 +03:00
<!-- Call feature -->
2020-05-20 11:08:53 +03:00
<uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
<!-- Commented because Google PlayStore does not like we add permission if we are not requiring it. And it was added for future use -->
<!--uses-permission android:name="android.permission.READ_CALL_LOG" /-->
2020-06-12 20:10:20 +03:00
<!-- Needed for voice call to toggle speaker on or off -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
2020-05-05 12:46:21 +03:00
<!-- READ_PHONE_STATE is needed only if your calling app reads numbers from the `PHONE_STATE`
intent action. -->
2020-06-17 16:03:51 +03:00
<!-- Needed to show incoming calls activity in lock screen-->
2020-05-20 11:08:53 +03:00
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Needed for incoming calls -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
2020-05-05 12:46:21 +03:00
<!-- To be able to install APK from the application -->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<!-- Jitsi libs adds CALENDAR permissions, but we can remove them safely according to https://github.com/jitsi/jitsi-meet/issues/4068#issuecomment-480482481 -->
<uses-permission
android:name="android.permission.READ_CALENDAR"
tools:node="remove" />
<uses-permission
android:name="android.permission.WRITE_CALENDAR"
tools:node="remove" />
<!-- Location Sharing -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- Debug only whilst live location sharing is WIP -->
<!--<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />-->
<!-- Jitsi SDK is now API23+ -->
2022-03-29 17:01:46 +03:00
<uses-sdk tools:overrideLibrary="org.jitsi.meet.sdk,com.oney.WebRTCModule,com.learnium.RNDeviceInfo,com.reactnativecommunity.asyncstorage,com.ocetnik.timer,com.calendarevents,com.reactnativecommunity.netinfo,com.kevinresol.react_native_default_preference,com.rnimmersive,com.corbt.keepawake,com.BV.LinearGradient,com.horcrux.svg,com.oblador.performance,com.reactnativecommunity.slider,com.brentvatne.react,com.reactnativecommunity.clipboard,com.swmansion.gesturehandler.react,org.linusu,org.reactnative.maskedview,com.reactnativepagerview,com.swmansion.reanimated,com.th3rdwave.safeareacontext,com.swmansion.rnscreens,org.devio.rn.splashscreen,com.reactnativecommunity.webview" />
<!-- Adding CAMERA permission prevents Chromebooks to see the application on the PlayStore -->
<!-- Tell that the Camera is not mandatory to install the application -->
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<!-- Since Android 11, see https://developer.android.com/training/package-visibility -->
<queries>
<!-- To open URL in CustomTab (prefetch, etc.). It makes CustomTabsClient.getPackageName() work
see https://developer.android.com/training/package-visibility/use-cases#open-urls-custom-tabs -->
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
<!-- The app can open attachments of any mime type
see https://developer.android.com/training/package-visibility/use-cases#open-a-file -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:mimeType="*/*" />
</intent>
</queries>
2018-10-03 18:56:33 +03:00
<application
android:name=".VectorApplication"
2019-03-28 19:51:54 +03:00
android:allowBackup="false"
2018-10-03 18:56:33 +03:00
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:resizeableActivity="true"
2018-10-03 18:56:33 +03:00
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:taskAffinity="${applicationId}.${appTaskAffinitySuffix}"
2022-03-18 15:26:11 +03:00
android:theme="@style/Theme.Vector.Light"
2019-03-28 19:51:54 +03:00
tools:replace="android:allowBackup">
2018-12-17 20:55:15 +03:00
2020-06-18 16:07:57 +03:00
<!-- No limit for screen ratio: avoid black strips -->
<meta-data
android:name="android.max_aspect"
android:value="9.9" />
<meta-data
android:name="com.google.android.gms.car.application"
android:resource="@xml/automotive_app_desc" />
2018-12-17 20:55:15 +03:00
<activity
android:name=".features.MainActivity"
android:theme="@style/Theme.Vector.Launcher" />
<!-- Activity alias for the launcher Activity (must be declared after the Activity it targets) -->
<!-- exported="true" is required to launch application -->
<activity-alias
android:name=".features.Alias"
android:exported="true"
android:targetActivity=".features.MainActivity">
2018-10-03 18:56:33 +03:00
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
2020-10-11 22:09:36 +03:00
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity-alias>
2021-02-23 12:31:00 +03:00
<activity android:name=".features.home.HomeActivity" />
2019-11-14 17:25:43 +03:00
<activity
android:name=".features.login.SSORedirectRouterActivity"
android:exported="true"
android:theme="@style/Theme.Vector.Black.Transparent">
<!-- Add intent filter to handle redirection URL after SSO login in external browser -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="connect"
android:scheme="element" />
</intent-filter>
</activity>
2021-04-14 13:35:33 +03:00
<activity
android:name=".features.login.LoginActivity"
2021-09-17 17:44:18 +03:00
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize" />
2021-04-14 13:35:33 +03:00
<activity
android:name=".features.onboarding.OnboardingActivity"
2021-09-17 17:44:18 +03:00
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize" />
2020-07-05 22:47:38 +03:00
2020-10-12 15:12:44 +03:00
<!-- Add tools:ignore="Instantiatable" for the error reported only by Buildkite :/ -->
2020-07-05 22:47:38 +03:00
<activity
android:name=".features.media.VectorAttachmentViewerActivity"
android:theme="@style/Theme.Vector.Black.Transparent"
2020-10-12 15:12:44 +03:00
tools:ignore="Instantiatable" />
<activity android:name=".features.media.BigImageViewerActivity" />
2019-03-28 19:51:54 +03:00
<activity
android:name=".features.rageshake.BugReportActivity"
2019-03-28 19:51:54 +03:00
android:label="@string/title_activity_bug_report" />
<activity
android:name=".features.settings.VectorSettingsActivity"
android:label="@string/title_activity_settings"
android:windowSoftInputMode="adjustResize" />
2019-05-16 11:23:57 +03:00
<activity
android:name=".features.crypto.keysbackup.restore.KeysBackupRestoreActivity"
2019-05-16 11:23:57 +03:00
android:label="@string/title_activity_keys_backup_setup" />
<activity
android:name=".features.crypto.keysbackup.setup.KeysBackupSetupActivity"
2019-05-16 11:23:57 +03:00
android:label="@string/title_activity_keys_backup_restore" />
<activity
android:name=".features.crypto.keysbackup.settings.KeysBackupManageActivity"
2019-05-16 11:23:57 +03:00
android:label="@string/encryption_message_recovery" />
<activity
android:name=".features.reactions.EmojiReactionPickerActivity"
android:label="@string/title_activity_emoji_reaction_picker" />
<activity android:name=".features.roomdirectory.createroom.CreateRoomActivity" />
<activity android:name=".features.roomdirectory.RoomDirectoryActivity" />
<activity android:name=".features.roomdirectory.roompreview.RoomPreviewActivity" />
<activity android:name=".features.home.room.filtered.FilteredRoomsActivity" />
<activity android:name=".features.home.room.threads.ThreadsActivity" />
2021-10-20 18:39:59 +03:00
<activity
android:name=".features.home.room.detail.RoomDetailActivity"
android:parentActivityName=".features.home.HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".features.home.HomeActivity" />
</activity>
<activity android:name=".features.debug.DebugMenuActivity" />
<activity android:name=".features.createdirect.CreateDirectRoomActivity" />
<activity android:name=".features.invite.InviteUsersToRoomActivity" />
<activity android:name=".features.webview.VectorWebViewActivity" />
2021-09-17 17:44:18 +03:00
<!-- Activity to intercept links coming from a web instance -->
<!-- exported="true" is required to handle android.intent.action.VIEW for URL redirection-->
<activity
android:name=".features.link.LinkHandlerActivity"
2021-09-17 17:44:18 +03:00
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="riot.im" />
<data android:host="app.element.io" />
2020-09-07 12:19:34 +03:00
<data android:host="mobile.element.io" />
<data android:host="develop.element.io" />
<data android:host="staging.element.io" />
</intent-filter>
</activity>
2019-05-24 12:35:46 +03:00
2021-09-17 17:44:18 +03:00
<!-- Activity alias for matrix.to or element permalinks -->
<!-- exported="true" is required to handle android.intent.action.VIEW for URL redirection-->
<activity-alias
android:name=".features.permalink.PermalinkHandlerActivity"
2021-09-17 17:44:18 +03:00
android:enabled="true"
android:exported="true"
android:launchMode="singleTask"
android:targetActivity=".features.link.LinkHandlerActivity">
<intent-filter>
<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" />
<data android:scheme="https" />
<data android:host="matrix.to" />
<data
android:host="user"
android:scheme="element" />
<data
android:host="room"
android:scheme="element" />
</intent-filter>
</activity-alias>
<!-- exported="true" is required for the share functionality-->
<activity
android:name=".features.share.IncomingShareActivity"
android:exported="true"
android:parentActivityName=".features.home.HomeActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".features.home.HomeActivity" />
<intent-filter>
2019-10-21 19:08:42 +03:00
<action android:name="android.intent.action.SEND" />
<data android:mimeType="*/*" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.OPENABLE" />
</intent-filter>
<intent-filter>
2019-10-21 19:08:42 +03:00
<action android:name="android.intent.action.SEND_MULTIPLE" />
<data android:mimeType="*/*" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.OPENABLE" />
</intent-filter>
2020-10-11 23:09:19 +03:00
<meta-data
android:name="android.service.chooser.chooser_target_service"
android:value="androidx.sharetarget.ChooserTargetServiceCompat" />
</activity>
<activity android:name=".features.roomprofile.RoomProfileActivity" />
2021-07-08 18:00:44 +03:00
<activity android:name=".features.roomprofile.settings.joinrule.RoomJoinRuleActivity" />
<activity android:name=".features.signout.hard.SignedOutActivity" />
2019-12-11 20:33:16 +03:00
<activity
android:name=".features.signout.soft.SoftLogoutActivity"
2019-12-11 20:33:16 +03:00
android:windowSoftInputMode="adjustResize" />
2020-01-15 16:57:21 +03:00
2020-01-22 16:19:04 +03:00
<activity
android:name=".features.roommemberprofile.RoomMemberProfileActivity"
android:parentActivityName=".features.home.HomeActivity">
2020-01-15 16:57:21 +03:00
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".features.home.HomeActivity" />
2020-01-15 16:57:21 +03:00
</activity>
<activity android:name=".features.qrcode.QrCodeScannerActivity" />
<activity android:name=".features.crypto.quads.SharedSecureStorageActivity" />
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait" />
<activity
android:name=".features.attachments.preview.AttachmentsPreviewActivity"
android:theme="@style/Theme.Vector.Black.AttachmentsPreview" />
2021-02-23 12:31:00 +03:00
<activity
android:name=".features.call.VectorCallActivity"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
android:excludeFromRecents="true"
2021-07-13 11:44:34 +03:00
android:launchMode="singleTask"
android:supportsPictureInPicture="true"
android:taskAffinity=".features.call.VectorCallActivity.${appTaskAffinitySuffix}" />
2021-02-23 13:27:04 +03:00
<!-- PIP Support https://developer.android.com/guide/topics/ui/picture-in-picture -->
2020-08-12 15:02:00 +03:00
<activity
android:name=".features.call.conference.VectorJitsiActivity"
2021-02-23 12:31:00 +03:00
android:configChanges="orientation|smallestScreenSize|screenLayout|screenSize"
2021-02-23 13:27:04 +03:00
android:launchMode="singleTask"
2021-02-23 12:31:00 +03:00
android:supportsPictureInPicture="true" />
<activity android:name=".features.terms.ReviewTermsActivity" />
<activity android:name=".features.widgets.WidgetActivity"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation" />
<activity android:name=".features.pin.PinActivity" />
<activity android:name=".features.analytics.ui.consent.AnalyticsOptInActivity" />
2020-09-21 15:40:46 +03:00
<activity android:name=".features.home.room.detail.search.SearchActivity" />
<activity android:name=".features.usercode.UserCodeActivity" />
<activity android:name=".features.call.transfer.CallTransferActivity" />
2021-01-27 11:52:18 +03:00
<!-- Single instance is very important for the custom scheme callback-->
2021-02-23 12:31:00 +03:00
<activity
android:name=".features.auth.ReAuthActivity"
android:launchMode="singleInstance">
2021-01-27 11:52:18 +03:00
<!-- XXX: UIA SSO has only web fallback, i.e no url redirect, so for now we comment this out
2021-02-02 11:32:04 +03:00
hopefully, we would use it when finally available
2021-01-27 11:52:18 +03:00
-->
<!-- Add intent filter to handle redirection URL after SSO login in external browser -->
2021-02-23 12:31:00 +03:00
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.VIEW" />-->
2021-01-27 11:52:18 +03:00
2021-02-23 12:31:00 +03:00
<!-- <category android:name="android.intent.category.DEFAULT" />-->
<!-- <category android:name="android.intent.category.BROWSABLE" />-->
2021-01-27 11:52:18 +03:00
2021-02-23 12:31:00 +03:00
<!-- <data-->
<!-- android:host="reauth"-->
<!-- android:scheme="element" />-->
<!-- </intent-filter>-->
2021-01-27 11:52:18 +03:00
</activity>
2021-02-23 12:31:00 +03:00
<activity android:name=".features.devtools.RoomDevToolActivity" />
2021-03-29 15:25:38 +03:00
<activity android:name=".features.spaces.SpacePreviewActivity" />
<activity android:name=".features.spaces.SpaceExploreActivity" />
<activity android:name=".features.spaces.SpaceCreationActivity" />
2021-04-16 17:55:11 +03:00
<activity android:name=".features.spaces.manage.SpaceManageActivity" />
2021-05-05 11:05:47 +03:00
<activity android:name=".features.spaces.people.SpacePeopleActivity" />
2021-07-30 12:06:52 +03:00
<activity android:name=".features.spaces.leave.SpaceLeaveAdvancedActivity" />
2021-10-29 16:54:54 +03:00
<activity android:name=".features.poll.create.CreatePollActivity" />
<activity android:name=".features.location.LocationSharingActivity" />
<activity android:name=".features.location.live.map.LocationLiveMapViewActivity" />
<!-- Services -->
<service
android:name=".core.services.CallService"
2020-06-25 10:33:21 +03:00
android:exported="false">
2020-06-18 15:30:08 +03:00
<!-- in order to get headset button events -->
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</service>
<!-- Add tools:ignore="Instantiatable" for the error reported only by Buildkite and for lintGplayRelease check :/ -->
<service
android:name=".core.services.VectorSyncService"
android:exported="false"
tools:ignore="Instantiatable" />
2020-05-20 11:08:53 +03:00
<service
android:name=".features.call.telecom.VectorConnectionService"
android:exported="false"
2020-05-05 12:46:21 +03:00
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
<intent-filter>
<action android:name="android.telecom.ConnectionService" />
</intent-filter>
</service>
2022-03-18 15:26:11 +03:00
<service
android:name=".features.location.LocationSharingService"
android:exported="false"
android:foregroundServiceType="location" />
<service
android:name=".features.call.webrtc.ScreenCaptureService"
android:exported="false"
android:foregroundServiceType="mediaProjection"
tools:targetApi="Q" />
<!-- Receivers -->
2020-05-20 11:08:53 +03:00
<receiver
android:name=".features.call.service.CallHeadsUpActionReceiver"
2020-05-20 11:08:53 +03:00
android:exported="false" />
<receiver
android:name=".features.settings.troubleshoot.TestNotificationReceiver"
android:exported="false" />
<!-- Exported false, should only be accessible from this app!! -->
<receiver
android:name=".features.notifications.NotificationBroadcastReceiver"
android:enabled="true"
android:exported="false" />
2020-06-18 15:30:08 +03:00
<!--
A media button receiver receives and helps translate hardware media playback buttons,
such as those found on wired and wireless headsets, into the appropriate callbacks in your app.
-->
<receiver
android:name="androidx.media.session.MediaButtonReceiver"
android:exported="false">
2020-06-18 15:30:08 +03:00
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
<!-- Providers -->
<!-- Remove WorkManagerInitializer Provider because we are using on-demand initialization of WorkManager-->
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup"
tools:node="remove" />
2021-12-13 14:36:46 +03:00
<!-- We init the lib ourself in EmojiCompatWrapper -->
<meta-data
android:name="androidx.emoji2.text.EmojiCompatInitializer"
2021-12-13 14:36:46 +03:00
tools:node="remove" />
</provider>
2019-05-07 15:02:15 +03:00
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
2020-06-25 10:33:21 +03:00
android:resource="@xml/sdk_provider_paths" />
2019-05-07 15:02:15 +03:00
</provider>
<!-- Temporary fix for Android 12. android:exported has to be explicitly set when targeting Android 12
Do it for services coming from dependencies - BEGIN -->
<service
android:name="androidx.sharetarget.ChooserTargetServiceCompat"
android:exported="false"
tools:node="merge" />
<!-- Temporary fix for Android 12 change - END -->
2018-10-03 18:56:33 +03:00
</application>
</manifest>