1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-22 07:43:15 +00:00

Added network security config

This commit is contained in:
M66B 2022-02-06 10:20:58 +01:00
parent 9b95d909d3
commit f83d03e615
2 changed files with 12 additions and 0 deletions

View file

@ -52,6 +52,7 @@
android:description="@string/app_description"
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/AppThemeTeal"

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:tools="http://schemas.android.com/tools"
tools:ignore="InsecureBaseConfiguration,AcceptsUserCertificates">
<!-- https://developer.android.com/training/articles/security-config -->
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>