[Samsung Galaxy S 4 Unified Development] Talysdaddy:
T-mobile / m919/ jfltetmo

I got this ROM working on my T-Mobile M919/ JFLTE-TMO but not after many failed attempts with every ROM package except for the 2 CDMA ones and tried with the newest images for both TWRP and CWM. I always got an error and ROM wouldn't flash.

Don't have much time currently so this is a quickie tutorial, I can do a more in depth one when I can but hopefully this will help out a few.

Its super easy, you're simply deleting a few lines in the updater script.

I guess this does call for the standard WARNING:

IT AINT MY FAULT, YOU EFFED UP YOUR PHONE. JUST CUZ YOU SAW IT ON THE INTERWEB, DON'T MEAN YOU GOTTA DO IT!

Things needed;

- A file manager app like ES File Manager, which I used. Its needed to unzip/uncompress the ROM package. After editing the script, you'll need it again to zip/compress everything you unzipped so that its a flashable ROM package again for TWRP or CWM.

https://play.google.com/store/apps/details?id=com.estrongs.android.pop

- A text editor app, I used Jota+, only because it was the first one that popped up in the Play Store after I searched "text editor," and many users downloaded it with pretty good reviews. I think any will work as long as its not too basic, like your standard "Notes" app.

https://play.google.com/store/apps/details?id=jp.sblo.pandora.jota.plus&hl=en

- and of course you'll need the ROM package. I wouldn't download Verizon's or Sprints since they're CDMA, though technically it might work since its in the Unified forum, but in the past I've tried a Verizon ROM and couldn't edit APN or select my preferred network type, so I'd recommend downloading a GSM carrier. I used the JFLTEUSC package over ATT's cuz I wasn't sure if it had any safestrap crap in it and the JFLTEXX package would have needed to delete a lot more lines. You can certainly try any of them, please report your findings afterwards.

OK, now to the fun part, after gathering all 3 needed above, you'll want to open up your file manager, locate your ROM package and unzip it, anywhere, it doesn't matter.

Then go to your newly unzipped ROM package and open up the "updater-script" with the text editor app mentioned above. The script is located in this directory in the ROM package:

Fusion-v5.1-2015-04-02-fusionsp_jflteusc/META-INF/com/google/android/updater-script

After opening it, you should see a text document with a bunch of codes. You'll want to delete the first paragraphs up to this line:

"ifelse(is_mounted("/system"), unmount("/system"));"

This line will now be the first line of code in this updater-script. This is very important, cuz any extra letters, symbols will cause a failed flash so make sure that "ifelse" is first in the script, see the attached screenshot for clarification.

So now that all thats been deleted, and we have a revised script, you'll want to save it, since this will be the new updater-script used for TWRP or CWM flashing.

After its saved, close it and zip/compress everything back up using ES File Manager or the app you used to unzip the ROM.

You'll probably want to rename your revised ROM temporarily, by putting a "1" at the end, before the file type ".zip" so you'll still have the original ROM you downloaded.

After the revised ROM is compressed, rename the original or you can even delete it since it never flashed anyway, then rename the revised ROM or delete the "1" so that the new file/ROM appears exactly as the original did

"Fusion-v5.1-2015-04-02-fusionsp_jflteusc.zip" This is so it'll pass the MD5 check in recovery when flashing it. This may or may not be accurate, I usually skip the MD5 check myself as I've had issues in the past running it so I've always avoided it since then and never had issues. I assume TWRP or CWM will fail if anythings wrong.

Anyway, now that everything's zipped and renamed as it should be, place the newly revised ROM where you usually flash them and flash away! This time, without any errors.

This process should work with any ROMs you flash that encounter a "updater binary" error, I've gotten these a lot lately for ROMs in the i9505 section. But I don't recommend flashing just any ROMs there without at least skimming thru the thread for other variants being compatible first. Usually the OP states the compatibleness of their ROM there or search for successful variant flashes. If a i9505 ROM worked with someone on ATT or Verizon or other variants, than it's likely it'll flash OK with your M919/ JFLTETMO.

Good luck!!