feat: allow user CA's when validating server's certs under android

This commit is contained in:
Mark Lopez
2026-07-18 16:49:11 -05:00
parent e9d93a6744
commit a3b861972e
2 changed files with 10 additions and 6 deletions
@@ -1,17 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- usesCleartextTraffic: OpenChamber connects to user-hosted servers over
plain http:// on the local network (LAN transport). Android blocks all
cleartext HTTP by default (targetSdk >= 28), which silently failed every
LAN probe and forced Android onto relay-only. This mirrors the iOS ATS
exceptions (NSAllowsArbitraryLoadsInWebContent + NSAllowsLocalNetworking). -->
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation"
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>