Skip to content

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

Open
deuill wants to merge 1 commit into
orgzly:masterfrom
deuill:android-4x-tls-12
Open

Add support for TLSv1.2 for WebDAV in Android 4.x#1054
deuill wants to merge 1 commit into
orgzly:masterfrom
deuill:android-4x-tls-12

Conversation

@deuill

@deuill deuill commented Mar 2, 2024

Copy link
Copy Markdown

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

deuill commented Mar 2, 2024

Copy link
Copy Markdown
Author

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

Comment thread build.gradle Outdated

versions.glide = '4.10.0'

versions.sardine = '0.5'

Copy link
Copy Markdown
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.

@amberin

amberin commented Feb 9, 2025

Copy link
Copy Markdown
Contributor

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

@deuill

deuill commented Feb 12, 2025

Copy link
Copy Markdown
Author

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

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.

2 participants