From f21d89eb2985109143e12b5f833fe8bbd613ef0d Mon Sep 17 00:00:00 2001 From: ariskotsomitopoulos Date: Tue, 14 Sep 2021 19:09:50 +0300 Subject: [PATCH] Minimize the use of exported="true" in android Manifest - Add comments on Add exported="true" attributes - Disable manifest exporting for: - (service) VectorConnectionService - (receiver) MediaButtonReceiver --- changelog.d/4018.misc | 1 + vector/src/main/AndroidManifest.xml | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 changelog.d/4018.misc diff --git a/changelog.d/4018.misc b/changelog.d/4018.misc new file mode 100644 index 0000000000..d0849d5842 --- /dev/null +++ b/changelog.d/4018.misc @@ -0,0 +1 @@ +Minimize the use of exported="true" in android Manifest (link: https://github.com/matrix-org/matrix-dinsic/issues/618) diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index 13a85e1e6f..7492da37e8 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -92,8 +92,10 @@ android:theme="@style/Theme.Vector.Launcher" /> + @@ -107,9 +109,12 @@ + + @@ -124,9 +129,12 @@ android:scheme="element" /> + + @@ -147,7 +155,6 @@ android:name=".features.media.VectorAttachmentViewerActivity" android:theme="@style/Theme.Vector.Black.Transparent" tools:ignore="Instantiatable" /> - - @@ -186,6 +192,7 @@ + + + - - - - @@ -308,7 +314,6 @@ @@ -379,7 +386,9 @@ 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. --> - +