mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
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:
parent
18d2753144
commit
ddb41a0f6f
2 changed files with 11 additions and 0 deletions
|
@ -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" />
|
||||
|
|
10
oeffi/res/xml/network_security_config.xml
Normal file
10
oeffi/res/xml/network_security_config.xml
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue