orgzly-android icon indicating copy to clipboard operation
orgzly-android copied to clipboard

Add support for TLSv1.2 for WebDAV in Android 4.x

Open deuill opened this issue 1 year ago • 3 comments

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.

deuill avatar Mar 02 '24 00:03 deuill

Attaching a self-signed APK, built against SDK version 18 (Android 4.3 Jelly Bean). Hope it's useful to others!

app-fdroid-release.apk.zip

deuill avatar Mar 02 '24 00:03 deuill

There is an active fork of this project: https://github.com/orgzly-revived/orgzly-android-revived

amberin avatar Feb 09 '25 00:02 amberin

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).

deuill avatar Feb 12 '25 17:02 deuill