Android Question HTTPS and SDK 16-19

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

Today we installed a certificate on our webserver (TLS 1.1 and 1.2). In program I changed "http:" to "https:" only. Works fine under Android 5+.
But KitKat returns "javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x788a48b8: I/O error during system call, Connection reset by peer -1".
I saw similar questions on forum, for instance, https://www.b4x.com/android/forum/t...shake-aborted-ssl-i-o-error-during-sys.72187/
But didn't find a solution for Android 4 (where both protocols are disabled as default).

Any ideas ?

PS. I use OkHttpUtils2 (v2.62) from https://www.b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/#content
 

Semen Matusovskiy

Well-Known Member
Licensed User
Thanx, Erel. I cut a fragment (without websockets).
Works fine under Android 4.4 (native phone and in Android emulator).

But there are troubles in emulators of 4.1 - 4.3.
Probably, the reason is Google Play Services release.

In 4.4 - 12.5.21 (000300-189987672). Enough modern.

In 4.1 - 4.3 - 9.2.56 (030-124593566). And I am not able to update it.
Another strange moment. isGooglePlayServicesAvailable returns unexpected results (unlike 4.4)
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…