Rooting/Recovery Install for the S4... on a Mac!
I have searched high and low for an easy, clear guide to rooting/installing a custom recovery for your Galaxy S4 via Mac OSX... I couldn't find what I was looking for, so I decided to write this. I tried the Motochopper method on my Canadian S4 and it doesn't work at all (I believe that is due to an OTA breaking its functionality, similar to Sprint models).
Just to clarify - I tested and confirmed this method on the Rogers Samsung Galaxy S4 using a Mac that runs OSX Mavericks. It should work on any version of Mac OSX... and realistically this should
work on any GS4 Model with an Unlocked Bootloader
... the TWRP Recovery file should be the only variable.
Warning... I'm obviously not responsible for anything that happens if you test this... but I can tell you that the risk level is fairly low. It's by no means a "one-click" method but it shouldn't be very difficult if you have any experience with Flashing ROMS/Recoveries at all.
Here are the steps:
- Run the Uninstaller for Samsung Kies.
- Download and fully install Heimdall (will require a restart).
- Download correct version of TWRP for your device (with the .img extension)
- Place recovery on your desktop for easy access.
- Rename recovery(for easy command line entry - named mine recovery.img)
- Put your device into Download Mode (hold Volume Down, Home, Power) and plug in to your Mac.
- Open Terminal on your Mac.
- Verify device is connected... type “heimdall detect” into terminal then press "Enter". It should say "Device Detected".
- Install the recovery using the command “heimdall flash --RECOVERY /users/”you”/desktop/recovery.img --no-reboot"
It is important that your device does not reboot. Rebooting will overwrite this recovery with the stock recovery.
You now have a custom recovery installed.
Hold "Volume Up, Home & Power"
Your device should have booted into Recovery Mode running Team Win Recovery Project (TWRP).
Now that you are in TWRP, you can simply press "Reboot" and it will provide you with a warning stating that the SU Binaries weren't found (something like that). It will then tell you to "Swipe to Install" which will root your device, retaining your custom recovery and rooting your stock ROM.