From 08e71b4b98b12898cda3481d8f8842ee8a8b5b5e Mon Sep 17 00:00:00 2001 From: fpanizza Date: Fri, 28 Nov 2025 14:15:05 -0300 Subject: [PATCH] Tls 1.1 is not suported anymore in Android 16 or up. Remove from Http client init --- .../java/com/genexus/specific/android/HttpClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/genexus/specific/android/HttpClient.java b/android/src/main/java/com/genexus/specific/android/HttpClient.java index 372b68374..a2578c8dd 100644 --- a/android/src/main/java/com/genexus/specific/android/HttpClient.java +++ b/android/src/main/java/com/genexus/specific/android/HttpClient.java @@ -88,14 +88,14 @@ public void prepareSSLSocket(SSLSocket socket) { // enable TLSv1.1/1.2 if available // (see https://github.com/rfc2822/davdroid/issues/229) String[] supportedProtocols = socket.getSupportedProtocols(); + ArrayList tempList = new ArrayList(); Collections.addAll(tempList, supportedProtocols); - // remove only olds and unsecure protocols (SSLv3 ), TLS in all version are supported. + // remove only olds and unsecure protocols (SSLv3 ), TLS 1.2 and up are supported. tempList.remove("SSLv3"); // from : https://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/ - // add 1.1 and 1.2 if not yet added, at least in Android 4.x - if (!tempList.contains("TLSv1.1")) - tempList.add("TLSv1.1"); + // Tls 1.1 is not supoerted anymore in Android 16 or up. Exception java.lang.IllegalArgumentException: protocol TLSv1.1 is not supported if added + // add 1.2 if not yet added, at least in Android 4.x if (!tempList.contains("TLSv1.2")) tempList.add("TLSv1.2");