Merge pull request #6345 from element-hq/feature/bma/removeMatrixToDeeplinkSupport

Remove matrix.to intent filter from the AndroidManifest.
This commit is contained in:
Benoit Marty
2026-03-16 10:19:38 +01:00
committed by GitHub
3 changed files with 10 additions and 15 deletions

View File

@@ -118,20 +118,6 @@
<data android:host="mobile.element.io" /> <data android:host="mobile.element.io" />
<data android:path="/element/" /> <data android:path="/element/" />
</intent-filter> </intent-filter>
<!--
matrix.to links
Note: On Android 12 and higher clicking a web link (that is not an Android App Link) always shows content in a web browser
https://developer.android.com/training/app-links#web-links
-->
<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="matrix.to" />
</intent-filter>
<!-- <!--
matrix: links matrix: links
--> -->

9
tools/adb/deeplink_element.sh Executable file
View File

@@ -0,0 +1,9 @@
#! /bin/bash
# Copyright (c) 2026 Element Creations Ltd.
#Fix
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
# Please see LICENSE files in the repository root for full details.
adb shell am start -a android.intent.action.VIEW \
-d "element://room/%23element-android%3Amatrix.org"

View File

@@ -7,4 +7,4 @@
# Please see LICENSE files in the repository root for full details. # Please see LICENSE files in the repository root for full details.
adb shell am start -a android.intent.action.VIEW \ adb shell am start -a android.intent.action.VIEW \
-d "element://room/%23element-android%3Amatrix.org" -d "https://matrix.to/#/#matrix:matrix.org"