Skip to content

TLS 1.2 for older android versions#1551

Open
nlevi-dev wants to merge 1 commit intomoonlight-stream:masterfrom
nlevi-dev:master
Open

TLS 1.2 for older android versions#1551
nlevi-dev wants to merge 1 commit intomoonlight-stream:masterfrom
nlevi-dev:master

Conversation

@nlevi-dev
Copy link
Copy Markdown

@nlevi-dev nlevi-dev commented Jan 28, 2026

This PR addresses handshake failures on older Android devices (5.0–5.1.x) when connecting to Sunshine/Moonlight. The issue is caused by Android 5’s outdated TLS stack, which does not fully support TLS 1.2. Modern Sunshine servers require TLS 1.2, and legacy protocols like TLS 1.0 or 1.1 are no longer supported or secure, so server-side changes are not a safe option.

The fix adds Conscrypt as a client-side TLS provider and configures Moonlight to use it for secure connections. Conscrypt provides full TLS 1.2 support on Android 5 devices, ensuring the handshake completes successfully without lowering server security. This patch is entirely client-side and does not affect newer Android versions or server configurations.

Tested on a Samsung P600 running Android 5.1.1, the patch allows pairing and streaming with Sunshine. It works alongside modern devices and preserves compatibility with existing TLS configurations. This ensures older devices remain supported without compromising security for other users.

Fixes these bugs:
#1228
#1300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant