Merge pull request #159 from donetick/respecting-ca-from-user-store

fix(android): trust user-installed CA certificates
This commit is contained in:
Mohamad Tarbin
2026-07-18 18:00:01 -04:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation"

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<!--
Trust both the system CA store and user-installed CA certificates.
This lets self-hosted Donetick instances that use custom or self-signed
certificates work once the user installs their CA on the device, without
having to modify/repackage the APK. See donetick/donetick#727.
-->
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>