Sunday, April 17, 2016

Install Cyanogenmod 13 on Samsung Galaxy S4

These are my installation notes from installing Cyanogenmod 13 on Samsung Galaxy S4. This S4 was originally brought from T-Mobile and its model number is SGH-M919. The Cyanogenmod codename for this device is jfltetmo. Prior to following my notes, read through the CM wiki at

1. Install JDK and Android SDK for adb

2. Install heimdall. However the classic one doesn't install. Had to use Heimdall-1.4.1-Unofficial-Signed.dmg

3. Go into Download Mode (Vol Down + Power + Home Key) with no wires connected. After you are in the loading
screen, connect USB wire to computer and install recovery image (from TWRP).

4. Install TWRP 3.0.2-0 using heimdall as per command:
heimdall flash --RECOVERY ~/Downloads/Cyanogenmod/Samsung\ S4/twrp-3.0.2-0-jfltetmo.img --no-reboot

5. In case that doesn't work, try OUDHS-Recovery-jfltetmo- However, this is
sticky. When using the OUDHS-Recovery-jfltetmo-, it screws up the booting in a way that no other
recovery image (TWRP, CWM, etc.) can fix it. The best way to fix it is to use OUDHS-Recovery-Installer-Premia-4G-
and then use twrp-3.0.2-0-jfltetmo.img in sequence. This allows TWRP to run without issues

6. On your SD card, copy "" and "".

7. Load the phone into Recovery Mode (Vol Up + Power + Home Key). TWRP allows you to install
multiple zips (up to 10). Install both the zips from #6 by selecting them in order (CM first).

8. Reboot your phone and welcome to Cyanogenmod 13 (Android 6.0.1) on your Samsung Galaxy S4 (SGH-M919)