mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-28 11:58:35 +03:00
285 lines
No EOL
13 KiB
XML
285 lines
No EOL
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
package="im.vector.app">
|
|
|
|
<!-- Needed for VOIP call to detect and switch to headset-->
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
<uses-permission android:name="android.permission.CAMERA" />
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
|
|
<!-- Call feature -->
|
|
<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" /-->
|
|
<!-- Needed for voice call to toggle speaker on or off -->
|
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
<!-- READ_PHONE_STATE is needed only if your calling app reads numbers from the `PHONE_STATE`
|
|
intent action. -->
|
|
|
|
<!-- Needed to show incoming calls activity in lock screen-->
|
|
<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" />
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- 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" />
|
|
|
|
<application
|
|
android:name=".VectorApplication"
|
|
android:allowBackup="false"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:networkSecurityConfig="@xml/network_security_config"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/AppTheme.Light"
|
|
tools:replace="android:allowBackup">
|
|
|
|
<!-- No limit for screen ratio: avoid black strips -->
|
|
<meta-data
|
|
android:name="android.max_aspect"
|
|
android:value="9.9" />
|
|
|
|
<activity
|
|
android:name=".features.MainActivity"
|
|
android:theme="@style/AppTheme.Launcher" />
|
|
|
|
<!-- Activity alias for the launcher Activity (must be declared after the Activity it targets) -->
|
|
<activity-alias
|
|
android:name=".features.Alias"
|
|
android:targetActivity=".features.MainActivity">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity-alias>
|
|
|
|
<activity android:name=".features.home.HomeActivity" />
|
|
<activity
|
|
android:name=".features.login.LoginActivity"
|
|
android:launchMode="singleTask"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<!-- 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:scheme="element" />
|
|
<data android:host="element" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name=".features.media.ImageMediaViewerActivity" />
|
|
|
|
<activity
|
|
android:name=".features.media.VectorAttachmentViewerActivity"
|
|
android:theme="@style/AppTheme.Transparent" />
|
|
|
|
<activity android:name=".features.media.BigImageViewerActivity" />
|
|
<activity
|
|
android:name=".features.rageshake.BugReportActivity"
|
|
android:label="@string/title_activity_bug_report" />
|
|
<activity
|
|
android:name=".features.settings.VectorSettingsActivity"
|
|
android:label="@string/title_activity_settings"
|
|
android:windowSoftInputMode="adjustResize" />
|
|
<activity android:name=".features.media.VideoMediaViewerActivity" />
|
|
<activity
|
|
android:name=".features.crypto.keysbackup.restore.KeysBackupRestoreActivity"
|
|
android:label="@string/title_activity_keys_backup_setup" />
|
|
<activity
|
|
android:name=".features.crypto.keysbackup.setup.KeysBackupSetupActivity"
|
|
android:label="@string/title_activity_keys_backup_restore" />
|
|
<activity
|
|
android:name=".features.crypto.keysbackup.settings.KeysBackupManageActivity"
|
|
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.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" />
|
|
<activity android:name=".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="https" />
|
|
<data android:host="riot.im" />
|
|
<data android:host="element.io" />
|
|
<data android:pathPrefix="/config/" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".features.share.IncomingShareActivity"
|
|
android:parentActivityName=".features.home.HomeActivity">
|
|
<meta-data
|
|
android:name="android.support.PARENT_ACTIVITY"
|
|
android:value=".features.home.HomeActivity" />
|
|
|
|
<intent-filter>
|
|
<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>
|
|
<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>
|
|
</activity>
|
|
|
|
<activity android:name=".features.roomprofile.RoomProfileActivity" />
|
|
|
|
<activity android:name=".features.signout.hard.SignedOutActivity" />
|
|
<activity
|
|
android:name=".features.signout.soft.SoftLogoutActivity"
|
|
android:windowSoftInputMode="adjustResize" />
|
|
<activity android:name=".features.permalink.PermalinkHandlerActivity">
|
|
<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" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".features.roommemberprofile.RoomMemberProfileActivity"
|
|
android:parentActivityName=".features.home.HomeActivity">
|
|
<meta-data
|
|
android:name="android.support.PARENT_ACTIVITY"
|
|
android:value=".features.home.HomeActivity" />
|
|
</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/AppTheme.AttachmentsPreview" />
|
|
<activity android:name=".features.call.VectorCallActivity" />
|
|
<activity
|
|
android:name=".features.call.conference.VectorJitsiActivity"
|
|
android:configChanges="orientation|screenSize" />
|
|
|
|
<activity android:name=".features.terms.ReviewTermsActivity" />
|
|
<activity android:name=".features.widgets.WidgetActivity" />
|
|
<activity android:name=".features.pin.PinActivity" />
|
|
|
|
<!-- Services -->
|
|
|
|
<service
|
|
android:name=".core.services.CallService"
|
|
android:exported="false">
|
|
<!-- in order to get headset button events -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MEDIA_BUTTON" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<service
|
|
android:name=".core.services.VectorSyncService"
|
|
android:exported="false" />
|
|
|
|
<service
|
|
android:name=".features.call.telecom.VectorConnectionService"
|
|
android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
|
|
<intent-filter>
|
|
<action android:name="android.telecom.ConnectionService" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<!-- Receivers -->
|
|
|
|
<receiver
|
|
android:name=".features.call.service.CallHeadsUpActionReceiver"
|
|
android:exported="false" />
|
|
|
|
<!-- Exported false, should only be accessible from this app!! -->
|
|
<receiver
|
|
android:name=".features.notifications.NotificationBroadcastReceiver"
|
|
android:enabled="true"
|
|
android:exported="false" />
|
|
|
|
<!--
|
|
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">
|
|
<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.work.impl.WorkManagerInitializer"
|
|
android:authorities="${applicationId}.workmanager-init"
|
|
tools:node="remove" />
|
|
|
|
<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"
|
|
android:resource="@xml/sdk_provider_paths" />
|
|
</provider>
|
|
</application>
|
|
|
|
</manifest> |