From 0f5f39a9fefdc9e9e3609458142da1b2c6113e8b Mon Sep 17 00:00:00 2001 From: Ricki Hirner Date: Tue, 20 Oct 2015 12:56:48 +0200 Subject: [PATCH] Lower target SDK to 22 (pre-M) to fixes crashes on Android 6; new permissions model will be implemented later --- app/build.gradle | 3 ++- app/src/main/AndroidManifest.xml | 19 +++++++++++-------- .../davdroid/SSLSocketFactoryCompat.java | 3 ++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index af35acca..cb6fa9e2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,7 +15,7 @@ android { defaultConfig { applicationId "at.bitfire.davdroid" minSdkVersion 14 - targetSdkVersion 23 + targetSdkVersion 22 versionCode 79 versionName "0.9.0.1" @@ -39,6 +39,7 @@ android { disable 'InconsistentLayout' disable 'MergeRootFrame' disable 'MissingTranslation' + disable 'OldTargetApi' disable 'RtlEnabled' disable 'Typos' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b36e0acd..6eeeb717 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -11,23 +11,26 @@ package="at.bitfire.davdroid" android:installLocation="internalOnly"> + - - - - - + + writing to app-private directory doesn't require extra permissions --> - - + + + + + + + + protocols = new LinkedList<>(); for (String protocol : socket.getSupportedProtocols()) - if (!protocol.toUpperCase().contains("SSL")) + if (!protocol.toUpperCase(Locale.US).contains("SSL")) protocols.add(protocol); Constants.log.debug("Setting allowed TLS protocols: " + TextUtils.join(", ", protocols)); SSLSocketFactoryCompat.protocols = protocols.toArray(new String[protocols.size()]);