How to put TWRP and Custom Roms on the Samsung Galaxy S4

I have been getting quite a few requests on XDA from members who need to know how to put TWRP and custom roms on their Samsung Galaxy S4. So, I thought I would post it here as well. Keep in mind, this does not work for Verizon, Sprint, or AT&T models, but will work for the International and T-Mobile models, as well as the Canadian models.

You can download any of the custom roms from my site at the title bar links.

If you use Windows instructions

[CODE]
If your phone is a JFLTEXX (i9505)
Go to: https://dl.twrp.me/jfltexx/
and download 3.0.2-0 tar

If your phone is a JFLTETMO (M919)
Go to: https://dl.twrp.me/jfltetmo/
and download 3.0.2-0 tar

If your phone is a JFLTEAIO (i337z)
Go to: https://dl.twrp.me/jflteatt/
and download 3.0.2-0 tar

Then, download this:
http://www.mediafire.com/download/7us5q44aab1xl9d/Odin304.zip

-Unzip Odin.
-Turn on your phone (normal turn on) boot up into the stock system.
-plug in your phone, let Windows find the drivers.
-Once Windows found your drivers, unplug the phone, turn your phone off.
-open Odin.exe
-Click on PDA, and choose the TWRP file you downloaded.
-With your phone unplugged and off, Now press and hold the DOWN volume button and the power button.
-When the phone vibrates, you can release the power button, but keep holding the down button.
-You will see a warning screen. Release the down button, and press the volume up button to enter “download” mode.
-Plug your phone into the computer.
-Press start/ok button on Odin.

You should see a blue bar on your phone screen that fills up from left to right. Odin should say “pass” or “success”. Your phone should automatically reboot itself. If this did not happen, seek help. Seriously. 😀

-Plug your phone into the computer again, and copy the Gapps and Rom from post #1 to your external sdcard of your phone.
-Now, turn off the phone again.
-Hold the UP volume button, and the power button.
-When the phone vibrates, you can release the power button, but keep holding the UP volume button.
-You will enter TWRP. Now you can release the UP volume button.
-You should now MAKE A BACKUP TO YOUR EXTERNAL SDCARD. -With this, you can always go back!
-After making a backup, you should wipe your phone. Select wipe, slide the slider to wipe your phone. This will not wipe your external sdcard.
-Install Rom.
-Wipe Cache and Davlik.
-Install Gapps. – Optional
-Reboot to system and enjoy!
[/CODE]

If you use Linux instructions

[CODE]
If your phone is a JFLTEXX (i9505)
Go to: https://dl.twrp.me/jfltexx/
and download 3.0.2-0 tar

If your phone is a JFLTETMO (M919)
Go to: https://dl.twrp.me/jfltetmo/
and download 3.0.2-0 tar

If your phone is a JFLTEAIO (i337z)
Go to: https://dl.twrp.me/jflteatt/
and download 3.0.2-0 tar

Then,
$ sudo apt-get heimdall heimdall-frontend -y

$ sudo heimdall-frontend

-This will open up heimdall.
-Click on the tab called Utilities
-With your phone unplugged and off, press and hold the DOWN volume button and the power button.
-When the phone vibrates, you can release the power button, but keep holding the down button.
-You will see a warning screen. Release the down button, and press the volume up button to enter “download” mode.
-Plug your phone into the computer.
-Under Detect Device, click “detect” – the Output box will say something like, detected.
-Under Download PIT -> destination file -> click save as.
-Choose a name for your pit, like jfltexx.pit
-Click Download.
-Exit heimdall-frontend and power off your phone by holding the power button.
-Open heimdall again with the command: $ sudo heimdall-frontend
-Click the tab called “Flash”
-Under “pit” click browse.
-Choose the pit file you downloaded.
-Under partitions(files), click “add”
-Under Partition Details, click partition name, and click recovery.
-Under File (recovery.img), click browse.
-Choose the 3.0.2-0 img you downloaded.
-Click on the “Utilities” tab.
-With your phone unplugged and off, Now press and hold the DOWN volume button and the power button.
-When the phone vibrates, you can release the power button, but keep holding the down button.
-You will see a warning screen. Release the down button, and press the volume up button to enter “download” mode.
-Plug your phone into the computer.
-Under Detect Device, click “detect” – the Output box will say something like, detected.
-Click on the Flash tab.
-Under Session, click “start”

You should see a blue bar on your phone screen that fills up from left to right. Heimdall should say “pass” or “success”. Your phone should automatically reboot itself. If this did not happen, seek help. Seriously. 😀

-Plug your phone into the computer again, and copy the Gapps and Rom from post #1 to your external sdcard of your phone.
-Now, turn off the phone again.
-Hold the UP volume button, and the power button.
-When the phone vibrates, you can release the power button, but keep holding the UP volume button.
-You will enter TWRP. Now you can release the UP volume button.
-You should now MAKE A BACKUP TO YOUR EXTERNAL SDCARD. -With this, you can always go back!
-After making a backup, you should wipe your phone. Select wipe, slide the slider to wipe your phone. This will not wipe your external sdcard.
-Install Rom.
-Wipe Cache and Davlik.
-Install Gapps. – Optional
-Reboot to system and enjoy!
[/CODE]

I hope that clears things up a bit. Leave a comment if you have any trouble following this process, I would be glad to help out.

Linux – keep it simple.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s