Allow user certs for development on Android

This commit is contained in:
Broks Randolfs Gailītis 2025-03-05 21:40:54 +02:00
parent 5c8c3dcf9e
commit 2433eb53e3
2 changed files with 10 additions and 1 deletions

View File

@ -24,7 +24,8 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true"
android:networkSecurityConfig="@xml/network_security_config">
<provider
android:name="androidx.core.content.FileProvider"

View File

@ -0,0 +1,8 @@
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>