installing custom recovery - Galaxy S 4 Q&A, Help & Troubleshooting

so i have just rooted my samsung galaxy s4 sgh-i337 using kingroot. it is the at&t version of the phone and it is running android 5.0.1 so this means it has a locked bootloader right? If so how would i install a custom recovery on it, and a deodexed ROM. What will happen if i try to install a custom recovery on a device with a locked bootloader

It will fail, that's what's going to happen.
I think for the AT&T model you need safetrap recovery. It is a special recovery bașed on TWRP.

Related

[Q] Please Help!

Tried to flash a rom using TWRP and now I'm stuck on the Samsung Custom screen??? Seems like a soft brick. Need the phone to function......
Looks like you didn't flash the proper version of TWRP and flashed one for one of the other versions of the S4, 9500 or 9505 which have unlocked bootloaders. A special version of TWRP is made for the SGH-I337 because of its locked bootloader which contains the Loki exploit to allow it to boot.
Download Odin and the Stock Firmware, install USB drivers for phone, drivers are included in Samsung Kies or you can get them seperately
Put phone into Download mode
Restore stock firmware.
Use this to Root your phone and install the proper TWRP in one blow. http://forum.xda-developers.com/showthread.php?t=2297900
Use TWRP to flash any SGH-I337 Rom you want if thats what you were going to do, as long as it has the Loki patch. (Current CM10.1 does).

Can't flash recovery

So I have the AT&T Galaxy S4 SGH-I337 and I flashed a file through Odin and got the bootloader unlocked. If that's what that unlocked lock replacing the bootlogo was supposed to indicate. Then I rooted it, same way, flashed SuperSU through Odin. Then I tried flashing a custom recovery for the phone which seems to be a lot btw. And none of them works, I tried over 30 recoveries none of them work. I tried Odin, flashify, TWRP manager. None works, even tho TWRP has official support for the phone there is no way I can get it working on my phone. PhilZ worked with Flashify but when I rebooted the phone it said "unauthorized software" and would get stuck on the boot screen until I flash the stock recovery back through Odin.
So how am I supposed to get the recovery working? I'm on 4.4.4 btw. And I want to move to CM12.
I heard about Safestrap but also heard that not all roms will work with safestrap. Is that true?
Can I not just flash TWRP through Safestrap and use?
no, try goldeneye.

Easiest way to install custom ROMs to GS4? (i337)

I have a Samsung Galaxy S4 i337 with the oc4 bootloader running android 5.0.1. I'm seeking help on how to flash a custom ROM onto this device. It seems that it's very difficult to install a custom recovery onto the device, as it has a locked bootloader.
I've been reading up here on XDA and it seems the only possible way to do anything is to root it, but the only method I've used in the past to root phones was simply flashing root.zip in a custom recovery. I have seen a program called KingRoot that is apparently able to root the device on 5.0.1, however, I do not have much confirmation and it seems a slight bit sketchy. Even after rooting, I'm not sure of whether or not I'd be able to install a custom recovery and a custom rom from there.
The other thing I have seen is Safestrap. However, I do not know if it works with the oc4 bootloader. I have read this guide on XDA titled "Odin to Stock, Updating, Rooting, and Safestrap Guide" however, it doesn't really tell me the process of installing Safestrap onto a 5.0.1 device. If I "odin back to stock" to an earlier version of android, will I be able to then root and install custom recovery or Safestrap more easily? Link:
http://forum.xda-developers.com/galaxy-s4-att/general/guide-odin-to-stock-updating-rooting-t2926642
TL;DR: what's the easiest way to install custom ROMs onto the i337 Galaxy S4 running Android 5.0.1 with the oc4 bootloader?
I wouldn't reallly recommend kingroot.
And rooting your phone does not allow you to install a custom recovery. In fact, those are two different things which are non-dependent of each other.
To install a custom recovery and rom you will probably need to unlock the bootloader. Something about loki patching it.

Odin stuck at "File analysis"

Attempting to flash TWRP using Odin, only Odin keeps getting stuck at "File analysis." Please help!
TWRP can't be flashed to an AT&T s4 with a locked bootloader.
What is the exact model # of the s4? The model # can be found in download mode.
audit13 said:
TWRP can't be flashed to an AT&T s4 with a locked bootloader. What is the exact model # of the s4? The model # can be found in download mode.
Click to expand...
Click to collapse
I had 3.0.2-0 TWRP on my i337 (jflteatt) for a good while now. Then yesterday I flashed the latest 3.1.0-0 and it broke my recovery (stupid me, I keep forgeting that I should not "fix it if it ain't broken"!). Whoever posted the 3.1.0-0 version "forgot" to mention that it was not lokied! Now I am trying to recover my recovery, as it were: Someone posted a .tar of a lokied 3.1.0-0 TWRP, but it looks to me that the file is bad. Can you provide a working (i.e. lokied) .tar of an earlier TWRP version please?
Does your i337 have a locked bootloader?
audit13 said:
Does your i337 have a locked bootloader?
Click to expand...
Click to collapse
All ATT i337 (jflteatt) have locked bootloaders. That is why "they" came up with the loki-doki exploit.
The i337 bootloader was locked with the 4.3 or newer ROM. With a locked bootloader, no exploit will allow the installation of twrp, philz, or cwm which is why safestrap must be used with a locked bootloader. Same applies to the att note 3.
https://forum.xda-developers.com/showthread.php?t=2785166
What is the bootloader version on the i337?
audit13 said:
The i337 bootloader was locked with the 4.3 or newer ROM. With a locked bootloader, no exploit will allow the installation of twrp, philz, or cwm which is why safestrap must be used with a locked bootloader. ... What is the bootloader version on the i337?
Click to expand...
Click to collapse
Thanks for the replies. As I said in my earlier post, I used to run TWRP 3.0.2-0 on my jflteatt, and that should tell you everything you need to know. (I am currently running LinOS 14.1 on the phone.) Only yesterday, after "upgrading" my recovery to 3.1.0-0 the trouble started. As for the bootloader version, how do you tell what that is?
Since the phone is running twrp, this tells me that the bootloader is older than 4.3 and the bootloader is not locked.
Are there any references to Knox in download mode? If not, the bootloader is not locked and the bootloader is 4.1 or 4.2.
audit13 said:
Since the phone is running twrp, this tells me that the bootloader is older than 4.3 and the bootloader is not locked. ... If not, the bootloader is not locked and the bootloader is 4.1 or 4.2.
Click to expand...
Click to collapse
Again, all i337 bootloaders are locked. The first generations of locked bootloaders were vulnerable to the loki exploit. Newer generations of bootloaders are not so vulnerable.
And just to answer my initial question, TWRP cannot be flashed w/Odin on i337 (jflteatt), regardless of the bootloader version, as the bootloader is locked. I had to flash TWRP from within the OS after rooting. Problem solved.

[Q] Do I need to unlock my bootloader to flash a new ROM?

I've rooted and flashed ROMs on several phones but this is my first time on a Samsung device. When I did this in the Moto X Pure I had to unlock the bootloader before installing TWRP and flashing a ROM, but I'm not sure if I need to unlock my bootloader in this phone since I already flashed TWRP and rooted through ODIN.
Do I need to unlock the bootloader to flash a new ROM? (TWRP installed and phone is rooted)
The phone is a SM-G900F running stock 6.0.1 btw
No.

Categories

Resources