diff options
author | Dániel Zolnai <dzolnai@users.noreply.github.com> | 2021-04-13 11:17:24 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-07-18 14:02:40 +0200 |
commit | 4c2abd81b48f054bb1853b9efa4bd9350b2ca8a1 (patch) | |
tree | 29f1ad818f97f425db7057aca5ff0d7cadbbb2fb /main/src | |
parent | e7d5155abee039a9000e8b80bed5201520cb6577 (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.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/AndroidManifest.xml | 2 |
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" /> |