Trying to use Conscrypt + OkHttp in Android seems to force HTTP/1.1. I suspect this is rare, since most common options are
Conscrypt provider + AndroidPlatform seems to result in ALPN not working? You can't easily opt into ConscryptPlatform for a couple of reasons
It's working fine on a desktop, just on Android having issues testing.

Runtime socket with Conscrypt = org.conscrypt.Java8FileDescriptorSocket
AndroidPlatform uses com.android.org.conscrypt.OpenSSLSocketImpl
Also failing with GMS - com.google.android.gms.org.conscrypt.Java8FileDescriptorSocket
cc @swankjesse curious if this is surprising to you? Should we warn against using Gms provider until we fix this? Everything works, but Http/1.1 certainly isn't optimal.
I'll put a PR up for conscrypt support and Android to bump it to the top.
I鈥檓 surprised GMS doesn鈥檛 work. I don鈥檛 think Conscrypt on Android is common.
With GMS
sslSocketClass = com.android.org.conscrypt.OpenSSLSocketImpl
sslSocket is com.google.android.gms.org.conscrypt.Java8FileDescriptorSocket
com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket
com.google.android.gms.org.conscrypt.OpenSSLSocketImpl
com.google.android.gms.org.conscrypt.AbstractConscryptSocket
javax.net.ssl.SSLSocket
I don't think this is urgent, since it's opt-in per app. The default just works. But probably worth fixing in 3.12.x, 3.14.x and 4.1? Choosing high security here, means giving up on HTTP/2 currently :(
Package names from here https://android.googlesource.com/platform/external/conscrypt/+/b578b39/src/main/java/org/conscrypt/NativeCrypto.java#53
cc @flooey
Testing a fix on https://github.com/square/okhttp/pull/5243
Worth noting that I believe Google's Firestore SDK installs Conscrypt asynchronously behind the scenes. This can create a race condition when setting up new sockets.
My intended fix should handle the socket type changing
Most helpful comment
Worth noting that I believe Google's Firestore SDK installs Conscrypt asynchronously behind the scenes. This can create a race condition when setting up new sockets.