Lineage OS on a Samsung Galaxy S4
2019-06-15 - psic4t
Today I installed Lineage OS on an old Galaxy S4 I found in a drawer. Unfortunately the S4 is already unsupported by the LineageOS guys so you have to rely on someone on XDA developers if you don't want to compile the stuff yourself. I used this ROM.
The installation process is pretty straightforward. Install TWRP reovery fist, then LineageOS.
On your Linux box you need Heimdall installed.
INSTALL TWRP
- Connect your phone with USB
- Start the phone, hold Vol down, Power and Home for a second. The phone will boot into download mode.
Flash TWRP: heimdall flash --no-reboot --RECOVERY /path/to/twrp.img
Unplug cable when finished and shutdown phone (hold Power for 5 secs)
- Boot into recovery using Volume up and Home while pressing the power key. You can release the power key after the Samsung logo displays
You have to boot directly to recovery after flashing, otherwise TWRP gets overwritten.
INSTALL LINEAGEOS
- Put the ROM on your MicroSD card
- Boot into reovery (see above)
- Follow the instructions. I didn't flash Google Apps.