yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S 4 Android Development] raitchison:
No flashable zips and I suspect that you won't see many of those moving forward because newer builds of TWRP can supposedly (I only say supposedly because I haven't tried this yet) flash img files . I needed to update TWRP on my own S4 and did it manually from the OS using dd.

---------- Post added at 11:26 AM ---------- Previous post was at 11:18 AM ----------

Hey guys I just upgraded my recovery to 2.8.6.0 on my i337. Everything is working fine but I lost the ability to charge my phone when it's off. If the phone is off and I plug it into a charger it immediately boots into my ROM.

I've seen this bug come and go on various TWRP's on various devices.

Can anyone suggest an older (but still pretty current & stable) build of TWRP that would allow charging when off?
[AT&T Samsung Galaxy S 4 Android Development] spocko:
Charge while off is working fine for me with TWRP 2.8.4.0.

Other specs on my phone: AT&T i337, MDL bootloader, Goldeneye v48 ROM (Android 4.4.2), Adam Kernel v2.5

Note that you can easily download and install TWRP 2.8.4.0 using the Flashify app from the play store.
[AT&T Samsung Galaxy S 4 Android Development] flroots:
I just bot a used AT&T S4 (I337) and am learning that I can't install TWRP. I've also just read a little about Safestrap. I understand that it has the ability to backup with Nandroids which is great. While trying to install TWRP through every method I found, I may have messed up the stock recovery. Whenever I use the correct button sequence (VolUp+Home+power) it jumps into bootloader mode rather than stock recovery mode :(. Is there a way to get the stock recovery back? Thanks.
[AT&T Samsung Galaxy S 4 Android Development] s0ulreaver:
For the OP: could you please compile the TWRP for the i337m Canadian S4?

It is no longer maintained :(

http://teamw.in/project/twrp2/175/

Thanks a lot!
[AT&T Samsung Galaxy S 4 Android Development] gorgy76:
Forgive my ignorance but where to download 2.8.6.0 version? Currently I have 2.8.4.0, I have the twrp manager app but when trying to select my device the current version that is downloadable is 2.8.4.0 even on the new download site too. The 2.8.6.0 version is not listed even the 2.8.5.0 is not there. Thnx.
[AT&T Samsung Galaxy S 4 Android Development] s0ulreaver:
From what I see here:

https://twrp.me/devices/samsunggalaxys4att.html

there doesn't seem to be any "maintainer" for ATT

:(
[AT&T Samsung Galaxy S 4 Android Development] burningembers:
Oops! It was probably the typo. loki_flash.c works fine.

Nonetheless, I did it manually: dd of=/dev/block/platform/msm_sdcc.1/by-name/recovery if=/data/local/tmp/openrecovery-twrp-2.5.0.1-jflteatt.lok

And it worked great. Do not recommend.
[AT&T Samsung Galaxy S 4 Android Development] :
It worked, successfully installed twrp but after booting to recovery, twrp can't decrypt my phone :( it says invalid password even though I know I'm entering the password right.
[AT&T Samsung Galaxy S 4 Android Development] jawonder:
So let me get this straight, if i'm on JDQ39.I337UCUAMDL which i am and i'm rooted, all i have to do is follow the instruction above and this will take care of the Boatloader and i will have TWRP installed ?. I download the TWRP zip and i notice it's not an image file it's like a text file is that correct ?.
[AT&T Samsung Galaxy S 4 Android Development] Proweedsmoker:
Sorry to post in the AT&T section, but would some kind and generous soul please post a "how to" guide for TWRP on VZW in our forums? I love TWRP... Just not as savoy as most with cell phones and such....
[AT&T Samsung Galaxy S 4 Android Development] C13v3r0n3:
If we make a backup with twrp, does the backup need to be patched with loki before it can be used?

---------- Post added at 03:20 PM ---------- Previous post was at 03:14 PM ----------

Follow those instructions and it will work, or you can just download goo manager and do it that way.

the zip file you downloaded needs to be extracted, inside you will find a .lok file.

the loki_flash file will download as a text file if you are on windows, just erase the .txt file extension.
[AT&T Samsung Galaxy S 4 Android Development] evodon84:
For those who arent ADB aware, here are the steps I took to get this to work on my phone

1. Start with a rooted AMDL

2. Download loki_flash and romracers loki'd twrp recovery. (you have to unzip his download to get the .lok file)

3. Connect phone to computer

4. Move loki_flash and openrecovery-twrp-2.5.0.1-jflteatt.lok to your sdcard

5. Open a root explorer like ES File Explorer and move both files to /data/local/tmp

6. Use a Terminal Emulator from the Play Store (I use Android Terminal Emulator) and run the commands below 1 at a time

su

cd /data/local/tmp

chmod 755 loki_flash

./loki_flash recovery openrecovery-twrp-2.5.0.1-jflteatt.lok

7. Use Goo Manager or physical buttons to boot into recovery.

---------- Post added at 01:23 PM ---------- Previous post was at 01:22 PM ----------

I download the TWRP zip and i notice it's not an image file it's like a text file is that correct ?.
[AT&T Samsung Galaxy S 4 Android Development] jawonder:
I'm using a mac .

---------- Post added at 04:34 PM ---------- Previous post was at 04:32 PM ----------

I did it on my Mac and the file is extracted but it's not an image file like i would normally get for a recovery it the same format as the .lok file .
[AT&T Samsung Galaxy S 4 Android Development] Rotary Parts:
looks like dees- troy update just download from goo manager and go!! I just download and rebooted recovery and YES! TWRP is there. Awesome Thanks Dees-troy. Backing up now to External Sd without any issues
[AT&T Samsung Galaxy S 4 Android Development] evodon84:
I guess you can just use the new method straight through Goo Manager.
[AT&T Samsung Galaxy S 4 Android Development] jawonder:
Yesss !, thanks bro, easy like Sunday morning .
[AT&T Samsung Galaxy S 4 Android Development] Rotary Parts:
yes go to goo manager app-menu key- install open recovery let it download reboot holing volume up and home button and TWRP pops up enjoy!!

It's time to rom on!!
[AT&T Samsung Galaxy S 4 Android Development] evodon84:
haha, im already running slimbean.
[AT&T Samsung Galaxy S 4 Android Development] Rotary Parts:
Sweet rock on bro!!:highfive:
[AT&T Samsung Galaxy S 4 Android Development] hyghonryce:
Simple install. Just backed up my stock rom and ready to play with some flashes :) Took about 5 mins tho and 2% of my battery :(

What are the BIG benefits of the compression ? I just sort of don't trust it since I personally feel it being risky.

When i backed it up, and did a reboot to system. it said " root permission has been lost " and allowed it again. hmmm probably not a big issue
[AT&T Samsung Galaxy S 4 Android Development] Rotary Parts:
no its not fix the root permissions and rock on! mine said the same thing nothing risky about it.
[AT&T Samsung Galaxy S 4 Android Development] hyghonryce:
i didnt compress my files. ended up being 3.5 gb back up. i dont have an extra SD card... might consider compressing it though.
[AT&T Samsung Galaxy S 4 Android Development] Rotary Parts:
yeah i saw that didn't compress mine either. good call on compressing it next time!! :highfive:
[AT&T Samsung Galaxy S 4 Android Development] david.degraw54:
I'm trying to do this all from my phone but when i try to push loki_flash to /data/local/tmp/ i get error: device not found

can anyone help me out?
[AT&T Samsung Galaxy S 4 Android Development] hyghonryce:
I didn't have to push anything. Just downloed GooManager and clicked the stuff stated. Then it auto DLs and installs.
[AT&T Samsung Galaxy S 4 Android Development] rsmolen:
TWRP is working great for me, but it thinks that it is 1970. Is anyone else having this problem?
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Is twrp stagnant? Last update on their new site was in March.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] duckredbeard:
Maybe it is so stable and reliable that it doesn't need to be updated.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Twrp manager only goes as high as 2.8.5.0, and the IMG mirror on twrp.me only goes to 4.0. Are you saying the AntaresOne version linked a few posts back is working?

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] Undefined Origin:
AntaresOne 2.8.6.0 w/ F2FS is working for me
[AT&T Samsung Galaxy S 4 Android Development] Airtioteclint:
New build up twrp 2.8.7.0 up. https://dl.twrp.me/jflteatt/
[AT&T Samsung Galaxy S 4 Android Development] moizhaque:
is it Capable with at&t version 5.0.1 ??? and how to use it ? please guide
[AT&T Samsung Galaxy S 4 Android Development] sian23:
Will this Loki my phone when i try this?
[AT&T Samsung Galaxy S 4 Android Development] Undefined Origin:
No, but it will let you flash the Loki zip. However, you must be on a bootloader that is vulnerable to the Loki exploit
[AT&T Samsung Galaxy S 4 Android Development] sian23:
Thank you for the respond..

I am on MDL Bootloader and i dont seem to get your reply

"No,but it will let you flash the Loki zip"..So you are saying that It will change the recovery to TWRP and let me flash the Loki zip..?
[AT&T Samsung Galaxy S 4 Android Development] RAID Xero:
I've never actually done this because I'm too scared of bricking my phone... you can flash the new TWRP if you have the loki exploit already. It's been a while, but if I remember correctly, you can flash any ROM for the i9505 if you flash the Loki exploit AFTER you flash a new ROM or kernel. I think there is/was a TWRP version that did auto-Loki, but I'm not sure.
[AT&T Samsung Galaxy S 4 Android Development] sian23:
So i did a little bit of reading

"Our images are already patched with loki so just root and flash. You cannot flash TWRP with Odin on this model."

So the .img file of TWRP are already patched with loki..
[AT&T Samsung Galaxy S 4 Android Development] bluekiwi:
flashed twrp 2.8.7.0 using twrp manager and now cannot access recovery, goes directly to odin (att galaxy s4) any suggestions
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Reboot into download mode, and select cancel. Then it will boot normally.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] bluekiwi:
I can do that just fine, what I want to do is flash a custom rom, am still rooted and have su installed, it just appears twrp has disappeared. Any other way to flash a rom
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Install twrp 2.8.4.0 in TWRP manager. Search this thread for AntaresOne. He has the latest TWRP, that you can flash from within recovery. Then you can flash custom ROMs.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] bluekiwi:
tried to install twrp 2.8.4.0 from twrp manager, (2.8.7 is the latest) could not locate 2.8.4 for antaresone, he lists 2.8.7 only. downloaded 2.8.4 (came as .img file) still no luck getting into recovery, unsure why, have even tried going through rom manager. at the point of flashing with odin again (do not want to)
[AT&T Samsung Galaxy S 4 Android Development] hankbizzo5:
http://xdaforums.com/galaxy-s4-att/general/nc1-flasher-odin-to-safestrap-t3082620
[AT&T Samsung Galaxy S 4 Android Development] bluekiwi:
no good for me, installed and get a pop up saying either safestrap or busybox could not be found
[AT&T Samsung Galaxy S 4 Android Development] hankbizzo5:
I assume you are rooted?? Check for new Su binary:confused:??
[AT&T Samsung Galaxy S 4 Android Development] bluekiwi:
not sure how to check for new su binary. when I go into supersu, nothing pops up

Would it be easier for me to flash a kk rom, re-root with tr and then apply twrp and update to oc3?
[AT&T Samsung Galaxy S 4 Android Development] hankbizzo5:
Would wait it out a few someone will chime in with a solution.... Just my opinion..
[AT&T Samsung Galaxy S 4 Android Development] ronfiveo:
I have used TWRP to back up a rooted Samsung S4 (SGH-i337Z , 4.4.2) and after the reboot after backup I discovered that I had lost root.

I have since then re-rooted and still loose root when rebooting after a backup made.

Even the back up made does not have root.

What am I doing wrong or is there a fix to this problem I am having ?

Thanks, you guys rock.
[AT&T Samsung Galaxy S 4 Android Development] Ashyford:
TWRP 3.0.0-x is out (yes!) but it looks like there is no maintainer for the i337 and no img available to download. (https://dl.twrp.me/jflteatt) Does anyone know if this will change in the near future? I have no problems with version 2.8.7.0 for the i337.
[AT&T Samsung Galaxy S 4 Android Development] lorikitty:
From what I can see on Jenkins, it failed to build the jflteatt version a few days ago. https://jenkins.twrp.me/job/jflteatt-prod/. The last successful build was the one from 7 months ago. I wish I spoke log output to find out why it failed!
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Looks like it succeeded a little earlier today. Download is already live on https://twrp.me/devices/samsunggalaxys4att.html

---------- Post added at 04:54 PM ---------- Previous post was at 04:05 PM ----------

Downloaded three times and verified md5. Every time I go into twrp, tap install, and tap Images..., it fails to flash, saying no partitions selected to flash.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] lorikitty:
I was able to flash, but looks like it wasn't loki'd because I couldn't get back into recovery. Thankfully I could still get into Android so I adb shell'd in and re-flashed 2.8.7.0. Probably good to wait until they loki patch it.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
According to the jflteatt status page on twrp.me, "Our images are already patched with loki so just root and flash."

If you couldn't get in to recovery afterwards, it almost sounds like something didn't flash right.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] lorikitty:
It installed right but gave me the Samsung security error about it not being a secure image, then it refused to load it. Happens if you don't loki patch after flashing some roms. It may have been loki'd before but Jenkins may not know what/how to do that.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Ooo, gotcha. Yup, just had it happen to me. Time to download triangle away again, and reset the counter..

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] lorikitty:
I forget loki so many times I gave up on triangle away! Haha :) #adhdproblems
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
I added it as an issue on the github page.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] Airtioteclint:
I've been using this for a while no problem. It automatically detects and loki our device.http://xdaforums.com/galaxy-s4/i9505-orig-develop/jdcteam-twrp-touch-recovery-3-0-0-0-t3312115
[AT&T Samsung Galaxy S 4 Android Development] badboyblue:
Does anyone try version 3.0.0 if it works for Canadian I337M yet?
[AT&T Samsung Galaxy S 4 Android Development] :
There is a version for the Canadian SGH-1337M and it works great - I am using it now
[AT&T Samsung Galaxy S 4 Android Development] inspector94:
I tried to update to 3.0.0 through the twrp app on an i337 and it bricked my phone... Anyway to fix this?

Everything i try to flash to the phone fails.
[AT&T Samsung Galaxy S 4 Android Development] badboyblue:
Is it twrp-3.0.0-0-jfltecan? Did you try to flash any rom? it failed to flash rom like Albe95 LolliROM, it's ok with twrp-2.8.4.0-jfltecan
[AT&T Samsung Galaxy S 4 Android Development] :
Hi,

Yep, file is twrp-3.0.0-0-jfltecan.img that I flashed through recovery. Have flashed Lollirom 8.0 / Imperium 12.1 / and am currently on JASONRR's Wizcyan version 4.6

I've completed back-ups and have flashed custom kernels as well.

I've had no issues with this recovery image on my SGH-1337M

Good luck,
[AT&T Samsung Galaxy S 4 Android Development] badboyblue:
sorry to ask you another question, what kernel did you flash Lollirom 8.0 ? and is that kernel for I9505? Thanks
[AT&T Samsung Galaxy S 4 Android Development] :
I flashed Imperium kernel V3.5 and yes it is from the i9505 board. If you are flashing a kernel be sure to flash the kernel wipe first - it removes your current kernel and prepares for the new kernel you will flash

http://xdaforums.com/showthread.php?t=3058867

Good luck,
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
Why didn't this work for me? My phone was already rooted, I was using a custom ROM. I used the loki thing in the past, it was a long time ago. I had TWRP and tried upgrading to the latest version today and now it says "system software not authorized by AT&T..." and can't boot.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Yep.... Happened to me, too. You should still be able to boot the phone, just won't be able to boot into recovery, right?
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
No, it won't boot at all. It goes directly into that screen.

I mean it says they were already patched with loki and to just flash so I did just that.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
I know.. There was discussion about that from posts 1205 to 1211. I added it as an issue on TWRP's github.

When the phone boots up, does it say recovery booting in the upper left corner?

Reboot the phone and get into Download mode (hold the Vol Up key while turning on the phone, I think). Instead of continuing through to Download mode, it will say about pushing the Vol Down button to reboot the phone. See if it boots normally after that.
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
Got it! Thank you. I had already gotten into download mode but didn't try to restart from there thinking the same thing would happen (should have tried at least once). Yes, before, it said "recovery booting".

Do you know what's the next step to get TWRP working?
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
What way did you try first? Did you use TWRP Manager? Flashify?

I suggest going to JDCTeam's TWRP page, and download the 3.0.0-0 img from there. Use flashify to install the recovery img.
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
I did it with the manager. It gave me the option of version 3. But now trying to download from their site, they have an older version there, at least for the AT&T one.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Yeah, don't worry about the TWRP.ME version. Just use the JDCTeam one, and use flashify.
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
Damn, I forgot you mentioned JDCTeam. I just went and downloaded 2.8.7.0 from the other site and used flashify. Now it boots straight into download mode but won't give me the option to restart, it just goes straight into "Downloading...". Power + Vol Up doesn't work now.

Edit: Got it to boot by holding the vol down and home button before it booted into download mode and it gave me the option to restart again.
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
0p3nsrc thanks a lot. I got the new TRWP version installed now.
[AT&T Samsung Galaxy S 4 Android Development] Aqua1ung:
Ran into the very same issues you've faced. What TWRP version do you currently have installed? I had to revert back to 2.8.7.0.

Has anyone managed to flash the newer TWRPs (3.x.x-x) without issues?
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
I first reverted to 2.8.7.0, then I flashed JDCTeam's flashable TWRP 3 zip, and it worked fine.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] Aqua1ung:
Thanks. I reverted to 2.8.7.0, and then flashified 3.0.2 this morning. I think 3.0.2 fixes whatever went wrong with 3.0.1 (presumably loki-doki).
[AT&T Samsung Galaxy S 4 Android Development] SRCP:
3.0.0.0 from JDC team.

http://xdaforums.com/galaxy-s4/i9505-orig-develop/jdcteam-twrp-touch-recovery-3-0-0-0-t3312115
[AT&T Samsung Galaxy S 4 Android Development] JohnMcW:
Version 3.0.2 from the twrp site, just puts up the warning screen

I recommend following SRCP's post above this one, it works
[AT&T Samsung Galaxy S 4 Android Development] nalibanani:
Installed in i337 and when the phone booted up it showed the "security fail: kernel" screen with the "att has detected an unauthorized software" screen.

What happened?

How can I unbrick my phone without having to go back to stock firmware?
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
You're not bricked. It's an issue with Loki.

You don't even need to search.. You just need to read... We've talked about almost nothing but this issue really since post #1206. The tripped Knox counter doesn't really mean anything, unless you still somehow have an active Samsung warranty.

Turn on the phone, download JDCTeam's TWRP, or an older TWRP like 2.8.7.0, and flash the IMG (extracted from JDCTeam's zip) using flashify. If you go the 2.x route, you can then boot into recovery and flash JDCTeam's zip.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] nalibanani:
I can't even turn on the phone! Evey time it boots it shows me the screen! How can I flash something if I can't get my phone to boot up? Can you please be more specific? And send the links?

Thanks
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
You have to boot into Download Mode, then reboot the phone. Turn off the phone. Turn on the phone and hold down the Volume Up (I think) button. When it brings up the yellow triangle and asks about continuing, press the button for cancel. It will boot the phone normally.

Links are all over. Look 4 or so posts before yours..

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] nalibanani:
Nope, didn't reboot normally!
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Did you at least get into Download Mode?

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] nalibanani:
Yes, it got into download mode. I had to flash back to stock firmware so my phone booted.

A friend of my told me that flashing twrp 3 messed up with my loki'd kernel partitions so that's why I got that security fail issue. But I'm not really sure what the hell happened.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
Yeah, it happened to a lot of people with the TWRP.me build, me included. I was able to get into Download Mode, boot the s4 normally, and then flash 2.8.7.1. Then I flashed JDCTeam's 3.0 build.

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] nalibanani:
Is it really that important to update twrp? Or can I wait for a really stable v3 is launch and confirmed working properly? I wasn't really happy about having to erase my whole internal data.
[AT&T Samsung Galaxy S 4 Android Development] mattgyver:
As long as you were/are on 2.8.7.0, you'd be fine. I know a lot of posts were made that anything older than 2.6.7.0 or whatever that closest build was should have been updated.

You shouldn't have needed to flash stock back. I mean, anyone else who had that security message and posted about it was able to boot to the phone and flash another recovery IMG.

As with anything, YMMV. I have the ATT S4 (SGH-I337). My brother has the same phone. He has issues I don't have, and we flash the same files..

Sent from my TARDIS
[AT&T Samsung Galaxy S 4 Android Development] nalibanani:
You're right on that, my friend! I wasn't able to boot my phone at any rate. I was thinking about Odin flash stock recovery zip but I once did that and had to Odin flash stock ROM again because my phone didn't want to boot at all at that time...
[AT&T Samsung Galaxy S 4 Android Development] mrdreamers:
will this work on AT&T Samsung Galaxy S4 SGH-I337 4.4.2 NB1?

if so does that mean i can flash cm /Aosp roms?

im asking cuz i know if i install safestrap i can't.

(but maybe i still can't i don't know thats why i ask)
[AT&T Samsung Galaxy S 4 Android Development] jd1639:
No, it won't work if you're on nb1. Safestrap is the only recovery which will work.