Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deuill
Copy link

@deuill deuill commented Mar 2, 2024

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.

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
Copy link
Author

deuill commented Mar 2, 2024

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

@@ -59,7 +59,7 @@ buildscript {

versions.glide = '4.10.0'

versions.sardine = '0.5'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 0.5 brings an upgrade to OKHTTP 4.0, which breaks connections on older Android versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant