summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDániel Zolnai <dzolnai@users.noreply.github.com>2021-04-13 11:17:24 +0200
committerArne Schwabe <arne@rfc2549.org>2021-07-18 14:02:40 +0200
commit4c2abd81b48f054bb1853b9efa4bd9350b2ca8a1 (patch)
tree29f1ad818f97f425db7057aca5ff0d7cadbbb2fb
parente7d5155abee039a9000e8b80bed5201520cb6577 (diff)
Change provider authority reference to include applicationId
We have found an issue that we couldn't install any of our apps next to each other, and also next to the official OpenVPN for Android app. The reason is that the provider authorities must be unique globally on the device. Since the class name is hardcoded, it will be the same for all of the implementors of this library. Although this issue can be easily fixed by changing this manually, I think it is important to do it, because it might be missed by most developers, since we usually do not test 2 VPN apps next to each other. By doing this change, the authority will always start with the final application package ID, so it should be unique globally.
-rw-r--r--main/src/ui/AndroidManifest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/AndroidManifest.xml b/main/src/ui/AndroidManifest.xml
index 1fd0e5e5..a9dfa380 100644
--- a/main/src/ui/AndroidManifest.xml
+++ b/main/src/ui/AndroidManifest.xml
@@ -160,7 +160,7 @@
<provider
android:name=".FileProvider"
- android:authorities="de.blinkt.openvpn.FileProvider"
+ android:authorities="${applicationId}.FileProvider"
android:exported="true"
android:grantUriPermissions="true"
tools:ignore="ExportedContentProvider" />