From 111078353da9fac9b5f62fa538bf5e13bf2e9701 Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sat, 3 Oct 2026 05:11:36 +0000 Subject: [PATCH] trust user-installed CAs for self-signed servers Port the Flutter app's network security config: add a base-config that trusts system and user certificate anchors and permits cleartext, and reference it from the application manifest. android:usesCleartextTraffic is now redundant and removed. --- app/src/main/AndroidManifest.xml | 4 ++-- app/src/main/res/xml/network_security_config.xml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/xml/network_security_config.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 013b7533..db459a74 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,10 +15,10 @@ android:enableOnBackInvokedCallback="false" 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:theme="@style/Theme.Subtracks" - android:usesCleartextTraffic="true"> + android:theme="@style/Theme.Subtracks"> + + + + + + + +