Add support for TLSv1.2 for WebDAV in Android 4.x
NOTE: I am aware that this project is currently unmaintained, and even so this change would not make it in as support for pre-5.0 Android versions was dropped in version 1.8.6.
This PR is intended with pushing a patch and APK I had to create to get WebDAV working with modern TLS on an old Android device (or, more specifically, a Blackberry Q10 running its Android emulator). Other people might find it useful. The base of this PR is the v1.8.5 tag.
Android 4.1 to 5.0 have support for TLSv1.2 in creating encrypted sockets, but this is (for some reason) disabled by default. This commit adds conditional support for using a TLS socket override with added support for TLSv1.2 in these SDK build versions, in making WebDAV connections.
Attaching a self-signed APK, built against SDK version 18 (Android 4.3 Jelly Bean). Hope it's useful to others!
There is an active fork of this project: https://github.com/orgzly-revived/orgzly-android-revived
There is an active fork of this project: https://github.com/orgzly-revived/orgzly-android-revived
The revived version doesn't have support for SDK targets required here (essentially Android 4.3 and below).