diff options
author | Arne Schwabe <arne@rfc2549.org> | 2022-12-14 13:49:07 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2022-12-14 13:49:07 +0100 |
commit | d9ef18f4fa02e56d013fec9ef918d66073b7b99a (patch) | |
tree | 087440c46db2378d960bcd6d09fc65af8332cde3 /main/src/ui | |
parent | 00097e479ba05462da3b0cc4794952ebfe1fea73 (diff) |
Warn more explicit about file:/// URLs
Diffstat (limited to 'main/src/ui')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt b/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt index fa786dcb..b85eaa26 100644 --- a/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt +++ b/main/src/ui/java/de/blinkt/openvpn/activities/ConfigConverter.kt @@ -811,8 +811,10 @@ class ConfigConverter : BaseActivity(), FileSelectCallback, View.OnClickListener // We got a file:/// URL and have no permission to read it. Technically an error of the calling app since // it makes an assumption about other apps being able to read the url but well ... - if (data != null && "file" == data.scheme) + if (data != null && "file" == data.scheme) { + log("An external app instructed OpenVPN for Android to open a file:// URI. This kind of URI have been deprecated since Android 7 and no longer work on modern Android versions at all.") doRequestSDCardPermission(PERMISSION_REQUEST_READ_URL) + } } |