Dropping support for Android 4.x

The F-Droid Android client, aka fdroidclient, has been around for over 10 years. The code base needs modernization to make it a lot easier to maintain and to be more inline with what contributors are used to working on. This is made a lot more difficult if we have to support very old Android versions. Right now, I think we need to set the minSdkVersion to 22 (Android 5.1).

We like supporting all working devices, but we also have to be realistic about what we can accomplish given the level of contributions we currently have. The best outcome might be that someone contributes the work to support Java8 in SDK Versions older than 22, then we can keep minSdkVersion at 14 (4.0). Another possibility is someone contributes work to make only the F-Droid Basic ā€œbuild flavorā€ support back to 14, and the main flavor is bumped to 22. Or someone could make a fork to support older versions.

So there are a lot of things blocked until this happens:

  • Java8
  • using libraries written in Kotlin
  • using signatures better than SHA-1 on the F-Droid.apk

F-Droid v1.11 would stay working for a long time, so old devices can stay on v1.11 and have a working F-Droid. Someone could even maintain a stable branch off of 1.11 for old devices.

I would love to hear thoughts and feedback.

@n8fr8 @proletarius101 @contributors

More info here:

6 Likes

Hi! An ancient 4.4 user hereā€¦

Iā€™m grateful that F-Droid has kept working for so long. I knew this would happen eventually and I completely understand. The reason I stick to an old device (an Xperia U) is the size (merely 11x5cm with a 3.5" screen). Iā€™m using it as a dedicated podcast player (running cyanogenmod with only F-Droid and AntennaPod installed and no SIM card). Sadly new phones are just not made in this portable size, otherwise I would have replaced it long ago.

I completely see the problem with supporting old versions indefinitely, and I have already had to make several contributions to antennapod to keep it working on old android systems (including an unfortunate increase of the apk size a lot by bundling conscrypt). But knowing that the old version of F-Droid will continue working for some time is great to hear.

But it would be interesting to know how many F-Droid users this would affect. This (the number of user of old android devices) was previously discussed regarding bundling Conscrypt with AntennaPod (the trade-of between increasing the apk size for everyone vs. how many would benefit from it) and according to google statistics it seemed to be a very small number of users.

But I suspect the F-Droid users in general are more inclined to keep their ā€œoldā€ devices: more technically oriented and reflashing the stock rom to both remove the google services and bundleware (leaving more hardware performance) and makes the device more personal (and more valuable to keep as long as it works).

Is there any statistics about android versions of F-Droid users? I suspect not, since you have a policy to not log users. But maybe thereā€™s something that can give a hint on it? It would be unfortunate if a large number of users would be affected by this, and maybe only find out when the new version releases.

3 Likes

Thank you for your feedback @Slinger.

We are also discussing on our issue for that: Dropping support for Android 4.x (#2145) Ā· Issues Ā· F-Droid / Client Ā· GitLab. There we have some ā€œsmallā€ stats.

I started a wiki page to document which F-Droid releases work on old Androids: Running on old Androids Ā· Wiki Ā· F-Droid / wiki Ā· GitLab

1 Like

@hans that seems like very good information, maybe even worth linking to from the homepage (for those about to click on the download link).

@fossdd thank you, there seem to be more conversation in the issue. I donā€™t have much to add (and I donā€™t bother creating a gitlab account right now, since ā€œSlingerā€ is already taken there), but I got one remark: the statistics there seem based on google information (Android Studio/Play Store), which might not represent F-Droid users.

The idea that is brought up, of using HTTP requests/agents to get some statistics, sounds interesting at first. But speaking for myself, I NEVER use a browser on this (podcast-dedicated) device. Itā€™s too old (performance, feature and security issues). I even installed F-Droid using the OTA privilege extension zip through rescue mode, not using the browser.

You got me charge up batteries and fire up a couple old devices with Android 2.2.3. One even had an old version of F-Droid from 2016.

Android 2+x and the required hardware ā€œupgradesā€ are ā€˜ā€˜muchā€™ā€™ better, right? As if. :smiley:

Unfortunately,

E/UpdateService( 3979): org.fdroid.fdroid.RepoUpdater$UpdateException: Error getting index file
ā€¦
E/UpdateService( 3979): Caused by: javax.net.ssl.SSLException: Not trusted server certificate
ā€¦

Tried the apk at the linked gitlab page. Same result. Could be worse. Play Store app force closed.

This seems to be a known issue with lots of previous discussion, but TL;DR enough to find the solution, yet.

thatā€™s not F-Droidā€™s fault, looks like that device doesnā€™t support modern
Certificate Authorities. You could add them to let things work.

A pointer on how would be appreciated. at.bitfire.cadroid_8.apk install didnā€™t work (too old sdk), and my import attempt of a mozilla pem/crt file also failedā€¦

FYI, Unihertz makes a couple models that are as small or smaller, although they use Mediatek.

Maybe this post is useful? But you will need to check which certificate(s) you are missing. Based on a quick check of f-droid.org, they are using Letā€™s Encrypt. Which is still provided by IdenTrust, I think? But soon Letā€™s Encrypt will use their own root certificate (ISRG Root X1).

Of course, itā€™s possible to ship missing certificates within an app (like this for example), but itā€™s probably not relevant here - unless old versions of the f-droid client is still ā€œmaintainedā€ on some level?

Also thanks for the suggestion of Unihertz. I really appreciate it. Seems a bit tricky to get hold of (and there seem to be limited support by LineageOS and similar roms). But itā€™s promising to see that smaller sized devices are still being developed. Thanks!

1 Like

Amazon :confused: has Jelly Pro for $115 in stock, for US delivery, with Android 8.1. You could disable most apps and install f-droid and AntennaPod. With the armband, if you can find or fit one, it can be a super smart watch.

I fully understand your decision. Personally I use a phone under Android 5.0.1 which still perfectly suits my needs, apart from the lack of space with only 8 GB of internal memory. What is most important to me is that a version, no matter which one (Frdoid classic or another branch of Fdroid for example) continues to work with my current phone. The best solution would of course be to get around the problem of the minSDKversion in order to offer only one version that works on all devices. But itā€™s not a big deal if it doesnā€™t work ^^

I have a phone and and two 7-inch tablets, none with SIMs, that still use Android 4.x.x. I primarily use them for media, mostly playing songs and rarely for photos and videos because of the low res. They serve their purpose and it would be overkill to try to upgrade them as they are fit for purpose. All have F-Droid installed. They are non-critical but I still like to install the occasional app upgrade from F-Droid.

My most important devices are my rooted phone with LineageOS 14.1 (7.1.2) that I use for everything, and a nice 4K 8-inch tablet running 7.0. I use the tablet for media and web browsing. Itā€™s important for me that 7.0+ is still supported.

1 Like

the existing version of F-Droid that runs on those devices should stay working
for the foreseeable future.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.