From 8cfae03550e37954fb2c109bfa13364cbe307651 Mon Sep 17 00:00:00 2001 From: Robert Robinson Date: Tue, 6 Oct 2020 20:46:33 -0600 Subject: [PATCH] Allow User Trusted Credentials Subsonic/Ampache are self-hosted applications and should need to be able to support a user defined root certificate if that is installed on the android device. The default of android applications is to ignore the user trusted credentials. This patch overrides this by allowing certificates that are signed by certificates added by the user to their device. See: https://developer.android.com/training/articles/security-config --- app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/network_security_config.xml | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 f82a798..a1f06b1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,6 +47,7 @@ android:icon="@drawable/launch" android:label="@string/common.appname" android:usesCleartextTraffic="true" + android:networkSecurityConfig="@xml/network_security_config" android:theme="@style/LaunchScreen"> diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000..51e00d0 --- /dev/null +++ b/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file