Enforce HTTPS app-wide via network security config#160
Merged
luantak merged 1 commit intoJul 1, 2026
Conversation
Add a network security config with cleartextTrafficPermitted=false and reference it from the manifest, so the app never sends cleartext HTTP. All current network use (the weather widget's Open-Meteo request) is already HTTPS, so this is defense-in-depth with no functional change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a network security config that disallows cleartext (HTTP) traffic app-wide, so the launcher never sends an unencrypted request.
res/xml/network_security_config.xmlwithcleartextTrafficPermitted="false".<application android:networkSecurityConfig=...>in the manifest.Why
Defense-in-depth. All current network use — the weather widget's Open-Meteo request — is already HTTPS, so there is no functional change; this just makes the guarantee explicit and enforced by the platform (a future cleartext URL would fail fast rather than silently send in the clear). Supported since API 24, so it covers the full
minSdk 26range.Testing
assembleDebugbuilds cleanly; no source useshttp://.🤖 Generated with Claude Code