Skip to content

Fix Android TLS issue caused by matrix SDK change#957

Merged
kevinaboos merged 4 commits into
project-robius:mainfrom
kevinaboos:android_tls
Jul 9, 2026
Merged

Fix Android TLS issue caused by matrix SDK change#957
kevinaboos merged 4 commits into
project-robius:mainfrom
kevinaboos:android_tls

Conversation

@kevinaboos

Copy link
Copy Markdown
Member

On Android, matrix-sdk's reqwest config now defaults to rustls-platform-verifier, which panics by default because it wasn't being initialized. Instead we now just directly use Mozilla's webpki roots directly (Android only).

This commit also dedups the client builder stuff so that we don't mess it up across different callsites (first-time login vs. session restore).

Another important change: use the platform-canonical cache dir as the location for the SDK's event and media caches. This allows the user to clear them easily using OS-provided mechanisms.

On Android, matrix-sdk's reqwest config now defaults to `rustls-platform-verifier`,
which panics by default because it wasn't being initialized.
Instead we now just directly use Mozilla's `webpki` roots directly (Android only).

This commit also dedups the client builder stuff so that we don't mess it up
across different callsites (first-time login vs. session restore).

Another important change: use the platform-canonical cache dir as the location
for the SDK's event and media caches. This allows the user to clear them easily
using OS-provided mechanisms.
@kevinaboos kevinaboos merged commit 39f1be1 into project-robius:main Jul 9, 2026
18 of 20 checks passed
@kevinaboos kevinaboos deleted the android_tls branch July 9, 2026 22:45
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