Define network security configuration.

For now, we use the Android 7/8 defaults which allow cleartext traffic and trust system CAs.
This commit is contained in:
Andreas Schildbach 2018-09-26 13:02:40 +02:00
parent 18d2753144
commit ddb41a0f6f
2 changed files with 11 additions and 0 deletions

View file

@ -57,6 +57,7 @@
android:allowBackup="true"
android:icon="@mipmap/ic_oeffi_stations_color_48dp"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/My.Theme.Light" >
<activity android:name=".PreferencesActivity" />
<activity android:name=".AboutActivity" />

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" >
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>