Fulguris icon indicating copy to clipboard operation
Fulguris copied to clipboard

Can't download image

Open Kita2345 opened this issue 3 years ago • 16 comments

https://i.ylilauta.org/96/45/96453830cad9b5a7.jpg

Kita2345 avatar Feb 18 '22 07:02 Kita2345

Works fine here. Just long press download image did it. Lots of dirty snow…

Slion avatar Feb 18 '22 10:02 Slion

The download dialog appears but the download is not running appears as in queue waiting and then fail

Kita2345 avatar Feb 18 '22 10:02 Kita2345

Also this https://internetbaik.telkomsel.com/asset/logo-inet.jpg

Kita2345 avatar Feb 18 '22 10:02 Kita2345

I confirm. Is not downloading.

ghost avatar Feb 18 '22 12:02 ghost

That's odd. You need to tell me which device, OS and possibly even WebView you are running. You can put your device here for future reference: https://github.com/Slion/Fulguris/wiki/Devices

Slion avatar Feb 18 '22 15:02 Slion

Also this https://internetbaik.telkomsel.com/asset/logo-inet.jpg

That works for me too on Android 11/Lineage 19.1.

Slion avatar Feb 18 '22 15:02 Slion

ZenFone Max Pro (M2) Android 9 98.0.4758.101

Kita2345 avatar Feb 18 '22 22:02 Kita2345

I'll correct my words. The first picture does not load, the second one loaded easily. My device: ZTE Blade V9 vita, Android 8.1.0, WebView 98.0.4758.101.

ghost avatar Feb 19 '22 01:02 ghost

I will add that I also tried to download the first image with a Huawei P Smart smartphone on Android 9 and with the above WebView and it did not work. Very strange, because this is a common picture.

ghost avatar Feb 19 '22 12:02 ghost

I think it's a problem of WebView or system download manager... Not working in Fulguris, Lightning and Jelly (all using system WebView), but working in Bromite (which has its own WebView and downloader). Lineage 16, WebView 95.0.4638.78

Helium314 avatar Feb 22 '22 10:02 Helium314

Not working in Fulguris, Lightning and Jelly also does not work in Via.

ghost avatar Mar 01 '22 17:03 ghost

I tried downloading the image using okhttp (to avoid Android downloader), and for the image in first post I get javax.net.ssl.SSLHandshakeException: Handshake failed (for most others, download works)

Now the question is why the handshake works when the browser displays the image... And the next question is: why does the browser actually download an image that is already downloaded? Can we access the displayed image instead?

Helium314 avatar Mar 01 '22 18:03 Helium314

Hi, This problem is caused by not supporting TLS1.3 certificate. But since TLS1.3 is provided from Android 10 or higher, it seems that the problem will still occur in Android 9 and lower versions. It appears normally on the web, but the download is done on Android.

Kita2345 avatar Mar 04 '22 07:03 Kita2345

Thanks! So TLS 1.3 is supported in recent versions of WebView, but not by Android 9 and older.

Reading these posts, Fulguris will need conscrypt for old Android versions, and do downloads via OkHttp to make it work.

Helium314 avatar Mar 04 '22 09:03 Helium314

I have a question for Kita2345 and Helium314: If the problem is TLS 1.3, then why does the Chrome browser easily load these pictures on both Android 8 and Android 9 (OS, which, as you say, do not support TLS 1.3)? Or I misunderstood what you are talking about here?

ghost avatar Mar 04 '22 12:03 ghost

Probably WebView brings its own implementation of TLS 1.3, but downloads are done by Android system downloader

Helium314 avatar Mar 04 '22 12:03 Helium314