mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 05:44:14 +00:00
Added network security config
This commit is contained in:
parent
9b95d909d3
commit
f83d03e615
2 changed files with 12 additions and 0 deletions
|
@ -52,6 +52,7 @@
|
||||||
android:description="@string/app_description"
|
android:description="@string/app_description"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppThemeTeal"
|
android:theme="@style/AppThemeTeal"
|
||||||
|
|
11
app/src/main/res/xml/network_security_config.xml
Normal file
11
app/src/main/res/xml/network_security_config.xml
Normal 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>
|
Loading…
Reference in a new issue