From f64f585c904ca6f5d38414c7d2760200505bb24f Mon Sep 17 00:00:00 2001 From: Martin Wilhelm Date: Thu, 7 Sep 2017 10:43:05 +0200 Subject: [PATCH] Adds a new network_security_config to allow custom CAs installed by user. This is needed for Android 7+, see https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html. --- app/src/main/AndroidManifest.xml | 3 ++- app/src/main/res/xml/network_security_config.xml | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/xml/network_security_config.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 79cd006..db2c290 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,8 @@ android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" - android:theme="@style/AppTheme"> + android:theme="@style/AppTheme" + android:networkSecurityConfig=”@xml/network_security_config”> + + + + + + + +