Flashing old Smartphones with Custom Firmware

We live in a world, where everything is thrown away after a short time. People aren't interested in repairing or reusing stuff, they just want the newest stuff, even if it doesn't have any advantage for them, but only disadvantages for the planet and all living being on it. Child labour and exploiting/destroying environments for rare elements to build electronic parts, which will be thrown away after a short time. This has to stop!

A good way to stop it, is to install an up-to-date operating system, which is most likely managed by programmers, who do this in their free time or by beneficial organisations. This process is called: “Flashing a custom firmware”.

Which old Smartphone should you use?

Obviously the most sustainable one. For me it's the Samsung Galaxy S5 (SM-G900F), because it was the last powerful device, which has a replaceable battery. Replacing a battery could extend the life of a phone for around 7 years (if the system is up-to-date). And it has everything I need, a good camera, a slot for microSD cards, a headphone jack and wifi. The only reason why I need a sim card is, because Signal is using it for authentication. Otherwise I could even live without one...

Please let me know (Mastodon or email) if you know about more sustainable phones.

What do you need?

How to flash custom firmware?

Boot into download mode (Press HOME+VOLDOWN+POWER).

Connect your phone with a USB cable.

Execute following command:

heimdall flash --RECOVERY lineage-18.1-20220814-recovery-klte.img --no-reboot

It is important to have the no-reboot flag active. After that, remove the battery, put it in again and boot into recovery mode (Press HOME+VOLUP+POWER) and adb push the LineageOS image to /storage/emulated with the following command (your lineage version might vary)

adb push lineage-18.1-20220814-nightly-klte-signed.zip /storage/emulated

and choose “Apply Update –> Choose from internal storage” and choose the uploaded zip file.

If “Choose from internal storage” isn't selectable, just try adb sideload lineage-xxxx.zip after choosing “Apply Update –> Apply from ADB”. There is a bug at this point and adb sideload will stop at 47%. Just wait some minutes, your device is working now and it will show you if it's done. Check the screen of your phone.

Factory reset/wipe data.

Reboot into system and wait a while. The first boot takes some time...

Important mods after system is ready: It's recommended to install a mic gain mod. I use MICGAIN-20201111-normal.zip and it works perfectly. This can easily be done with adb sideload in recovery mode.

After that, install F-Droid Privileged Extension with adb sideload, too.

It might be possible you have to reboot into recovery mod every time you used adb sideload.

Congratulation! You've just saved a lot of resources and use this old phone with the newest Android version for a long time.

Thanks for saving the planet...

–> Comment section <-

Author: maxmoon

Mastodon | Main Blog