[T-Mobile LG G3] autoprime:
FAQ:

Q: I'm running the Windows .bat as administrator and it's closing/not working.

A: There is no need to run the .bat as admin. Just double-click and run.

Q: I get the "Windows cannot find '.\assets\windows\bin\mintty.exe'." error.. watdo?

A: Try just double-clicking on the .bat instead of running as admin.

Also make sure the script is extracted properly first before running.

Q: I [used Flashify and] am stuck in fastboot.. how can I get out?

A: Be cautious using Flashify as it seems it's not working right.. or people are hitting the wrong buttons with it.

HERE are the stock TMO D851 partitions.

Use fastboot to flash recovery(TWRP or stock) and stock boot. This will install TWRP and fix booting into rom.

If on Windows you will need fastboot drivers. Use Google to find fastboot binaries and drivers.

fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot reboot

The commands to flash TWRP manually instead of using flashify is below.

Place TWRP on the root of your internal /sdcard/ using MTP, downloading it directly to phone or using ADB push.

adb push name_of_file.img /sdcard/

adb shell
su
dd if=/sdcard/name_of_file.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

Disable OTA:

Open LG Hidden Menu (3845#*851#) --> WLAN Test --> OTA Setting --> OFF

*Replace "851" with your devices model number, 850, 852, 855 etc...

The first D851 update has been released (10M). Bootloader remained unlocked. It would appear future OTAs will be safe to take AS LONG AS YOUR PHONE IS NOT MODIFIED! If you have flashed TWRP or installed xposed or modified /system then you need to restore any changes made or flash stock firmware (tot/kdz) before taking OTA.

If using a non-tmobile g3 I would be hesitant about taking OTA updates. An OTA may update the boot stack to block Bump!

EFS Backup:

[FONT="Arial Narrow"][B]Backup EFS after jailbreaking your G3. EFS is split into 2 partitions modemst1 and modemst2.
img files will be on root of internal sdcard. Save the .img files somewhere else besides the sdcard... email, cloud, etc..[/B]

DO NOT FLASH OTHER PEOPLES EFS OR FLASH YOUR OWN BACKUPS ONTO ANOTHER PHONE.
THIS WILL BREAK EFS ON THE PHONE YOU ARE FLASHING TO. EFS BACKUPS ARE FOR THE PHONE THEY CAME FROM ONLY.

I have made a new thread on EFS backup and restore which can be found [URL="http://xdaforums.com/lg-g3/development/efs-lg-g3-efs-backup-restore-t2907329"]HERE[/URL].
[/HIDE]
[B][SIZE="5"]Restoring Stock / Remove root flag:[/SIZE][/B]
[HIDE]
Download the tmo .tot file and use lg flash to restore it to stock. itll format everything on internal sdcard so backup anything u may need off it.

T-Mobile firmware can be found [URL="http://downloads.codefi.re/wolfgart/LG_G3/D851"]here[/URL]. Thanks to [MENTION=608699]wolfgart[/MENTION] for the files and [MENTION=1157052]thecubed[/MENTION] for codefire hosting.

*Step by step picture guide - [url]http://imgur.com/W83hMPE[/url]

install the drivers.
put phone into Download Mode (power off. unplug USB. pull battery. put battery back in. press/hold Volume Up then plug in USB cable.)
In Windows Device Manager set the phones serial COM port to #41. (*see picture guide for help)
Install [URL="http://downloads.codefi.re/autoprime/LG/LG_G3/Setup_LGFlashTool_1.8.6.527.zip"][B]LG Flash[/B][/URL]. In "C:\LG\LG Flash" folder delete megalock dll. Replace with .dll below.
new megalock dll - [url]http://bit.ly/1cQADXm[/url] (this site includes a "download manager.. UNCHECK THE BOX before downloading dll file.)
Run LG Flash in the "C:\LG\LG Flash" folder. Select korean factory if asked.
When LG Flash opens you will see a box to select firmware and dll.
Select [URL="http://downloads.codefi.re/autoprime/LG/LG_G3/LGUP_8974.dll"][B]LG Flash .dll[/B][/URL]
Select (.tot)
Hit OK (*see picture guide for help)
Hit yellow start button. If you get Milkyway error click ok. LG Flash will then run a crc check on the tot file. Takes a bit.
After crc check finishes unplug the phone. plug phone back in. it should now be seen in LG Flash and start flashing.
Phone will reboot when finished. You may end up on a screen with s "2"... let it sit there for a minute or two.
If stuck on "2" try unplugging the usb cable from the phone.. wait 10 seconds.. then plug the usb cable back in. now wait 30 seconds and hopefully it changes to a "3"
Once the phone says "3" you can unplug the USB.. remove the battery and plug back in.. boot back up... you are now 100% stock.
[/HIDE]
[B][SIZE="5"]PurpleDrake YouTube Videos:[/SIZE][/B]
[HIDE]
[url]https://www.youtube.com/watch?v=wJtz51KgxjM[/url]
[/HIDE]