From 4d1d78390e6eced500404e8f176d2d69b7ec98a6 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 21 Feb 2025 11:25:03 +0100 Subject: [PATCH] android: Fix IntentFilter to not match all URLs Intent filters can match on the data of an intent through the tag. When multiple tags are present, they act as a boolean OR, intended if you want to match multiple data types. When a boolean AND is required, the attributes should instead be added to a single tag. Two of our intent filters try to match ".pbw" and ".pbz" files. These both start with a single match on the "content" schema, followed by a match on the "*/*" MIME type, and finally a path filter for the file type in question. By virtue of being boolean OR, this meant that both filters would match every possible URL. Combine the attributes in a single data tag to turn it into a boolean AND for both of these filters. --- android/app/src/main/AndroidManifest.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index ee846786..19418ac8 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -101,9 +101,7 @@ - - - + @@ -168,9 +166,7 @@ - - - +