Skip to content

Conversation

simonrozsival
Copy link
Member

Starting in Android API 35, TLS 1.0 and 1.1 are not supported:

Android 15 restricts the usage of TLS versions 1.0 and 1.1. These versions had previously been deprecated in Android, but are now disallowed for apps targeting Android 15.
-- Behavior changes: Apps targeting Android 15 or higher (developer.android.com)

Our tests assumed that these protocol versions are supported across all Android versions. We need to change the PlatformDetection implementation going forward.

Fixes #119016

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@simonrozsival simonrozsival changed the title [Android] Fix detection of supported TLS versions on Android [Android][Testing] Fix detection of supported TLS versions on Android Aug 26, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the detection of TLS 1.0 and 1.1 support on Android to properly handle the restriction introduced in Android API 35. Starting with Android 15, TLS 1.0 and 1.1 are no longer supported for apps targeting that API level.

Key changes:

  • Separates Android TLS version detection from macOS detection logic
  • Implements proper API level-based TLS support detection for Android using existing AndroidGetSslProtocolSupport method

@simonrozsival simonrozsival merged commit 627217b into main Aug 26, 2025
92 checks passed
@simonrozsival simonrozsival deleted the dev/srozsival/fix-android-platform-detection-supported-tls-versions branch August 26, 2025 19:18
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants