Android Question Android 4 and SSL without GMS

WimS

Member
Licensed User
I have a device with Android 4.4.3 and without GMS (Google Mobile Service).

I use Okhttp and I get the following error using SSL :

ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x613ab318: Failure in SSL library, usually a protocol error

I have looked at this tread : https://www.b4x.com/android/forum/threads/android-4-and-ssl-problem.97719/#post-696647

But the device don't have GMS. So what can I do ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Test it with Android 5+ device.
2. Android 4.4, especially without Google services are very rare devices. I'm not sure that it is worth the efforts to try and deal with such devices.

You might be able to create a library that uses a custom TLSSocketFactory. However it will be difficult to combine it with OkHttp.
 
Upvote 0
Top