[Firmware](Upgrade+Root/Downgrade/Unroot) Files+Flashing Guide [TOT/KDZ/TWRP] 7/07/19

ThePagel

Senior Member
Jul 6, 2012
1,479
838
0
Minneapolis
This is for LG G3 D851 ONLY
TOT/KDZ/TWRP Untouched stock restore

IF YOU WANT TO USE THIS GUIDE WAIT UNTIL I HAVE THE LGUP METHOD UP

Who can benefit from this?
  • Anyone who softbricked with access to download mode [KDZ RECOMMENDED]
  • Anyone who wants to use the OTA function after root [TWRP RECOMMENDED]
  • Anyone who needs to send the phone in for repair [TOT RECOMMENDED]
  • Anyone who wants to be on the most recent firmware [TWRP RECOMMENDED]
  • Anyone who wants to downgrade *After you update to 20B it is recommended to not downgrade. If you do you WILL have connection problems
  • Anyone who wants to return to stock from aosp or aokp
    • Tip: Most of the time TWRP will do what you need without the troubles and baggage TOT and KDZ bring. It will downgrade, upgrade, root, fix soft bricks or just give you a fresh untouched operating system (no personal data left on the phone if you follow instructions). It will also get rid of any proof on the phone that you were rooted (my t-mobile reports root to a remote server nothing can be done about that).

Strengthens and weaknesses for each method click here

TWRP Files/flashing guide Most recent = D85130g_00_0420 (07/05/17)
(This is a WIP)
  1. Download your preferred choice of D851xxx-Untouched_Stock_Restore.zip HERE (Perfect 1:1 image unlike most roms)
  2. Copy D851xxx-Untouched_Stock_Restore.zip to phone (external sd if available)
  3. Reboot into twrp
    • For firmware update do not wipe! skip to step 8. If you want untouched stock continue with step 4.
      If upgrading from kitkat to lollipop wipe system before flashing.
  4. Click [Wipe]
  5. Click [Advanced Wipe] (For full wipe stock restore only)
  6. Select dalvik cache, system, Data, Internal storage (only if you use external for downloaded file) and cache
  7. Click the home Icon in the bottom left
  8. Click [Install]
  9. Select D851xxx-Untouched_Stock_Restore.zip (make sure you select the proper sd card)
    • If you want root and/or twrp add UPDATE-SuperSU-v2.37.zip to the queue by touching [Add More Zips]
      Repeat for TWRP-2.8.6.0-d851.zip
  10. Swipe to install [====>]
  11. Install will now begin, pure stock: system, kernel, recovery, modem and rpm will be installed
  12. After completion click [wipe cache/dalvik] (do not skip especially if you dirty flashed)
  13. Swipe to wipe [====>]
  14. Click [back]
  15. Click [reboot system] (it might say no os but it is wrong you do have a os click restart anyway) [dirty flash will not have that problem]
  16. If your sending for repair or jump do a factory reset with what should now be the stock recovery just to be safe.
DO NOT INSTALL ROOT UNLESS YOU WANT IT TO BE ROOTED


LGUP (KDZ/TOT)
(This is a WIP)
Check back later


KDZ files/flashing guide (Use TWRP if you can)
(This is a WIP)

Here are the KDZ files for the D851 I will keep this up to date as they are released

Make sure you uncompress the file!

Most recent Firmware
D85130g_00_0420 (07/05/17)

Old Firmware
D85130e_00_0711 (08/08/16)
D85130d_00_0404 (05/02/16)
D85120G_00 (10/05/15)
D85120E_00 (06/10/15)
D85120B_00 (04/17/15)
D85110R_00 (12/2/14)
D85110M_00 (09/10/14
D85110C_00 (07/16/14)


KDZ FLASHING GUIDE

For windows vista - windows 8.1
Very buggy on windows 8/8.1 x64 YMMV
Will not work on windows xp or older​
  1. Download, extract and install LGUnitedMobileDriver
  2. Download, extract and install VBCFJRedist_AIO_x86_x64
  3. Download and extract LG Flashtool 2014.7z (This is not the same flash tool in TOT method)
  4. Download one of the KDZ files from the beginning of the post and extract it in the Flashtool folder
  5. Make sure you are at least at 50% battery
  6. Enter download mode by holding the volume up button + plug the phone into the computer from a powered off state
  7. Run LGFlashTool2014.exe as administrator
  8. select type [CDMA] (Yes CDMA works just fine for our T-Mobile GSM phones DO NOT USE THE OTHER OPTIONS)
  9. phone mode [diag]
  10. reset time [33000]
  11. select the KDZ file you extracted from inside the flashtool folder (D851xxx_00.kdz)
  12. select [normal flash] (no wipe) or [CSE flash] (wipe) (Recommended)
  13. click [start]
  14. Select Country and Language Just leave default selections and click OK (Republic of Korea is the only country and it defaults to English)
It will analyze the phone extract the firmware and upgrade your phone automatically you will see progress on both the computer and phones display once the s/w upgrade percentage gets to about 80% your phone will restart don't freak out all went well and it will boot up to the LG welcome screen and if you selected CSE it will restart one last time

Total flash time for me was 2 minuets 56 seconds

If you use the normal flash you might need to do a factory reset if you get in a bootloop after flash
cse should have 0 problems on boot

Credits:
All credit goes to quangnhut123 for creating this tool you can find his thread HERE


TOT files/flashing guide
(This is a WIP)
  1. Download, extract and install VBCFJRedist_AIO_x86_x64.exe
  2. Download, extract and install LGUnitedMobileDriver
  3. Download and extract lg flash tool (This is not the same flash tool in KDZ method)
  4. Download and extract LG_D851.10C_TOT&DLL.7z
  5. Make sure you are at least at 50% battery (if you can)
  6. Enter download mode by holding the volume up button + plug the phone into the computer from a powered off state
  7. Leave phone plugged in and in pc go to settings/control panel/device manager/ports right click on lgemobile serial port and click properties then select the port settings tab and click advanced then change com port number to 41 and click ok
  8. Unplug phone
  9. Run LGFlashTool.exe as administrator
  10. If you get a DBMS WINDOWS leave it on ?? ?? (Korea Factory) and click ok
  11. Check select manual mode
  12. For DLL click [...] and select the dll from the package you extracted (LGD851_20140611_LGFLASHv160.dll)
  13. For S/W click [ADD] and select the tot from the package you extracted (LGD851AT-01-V10c-310-260-JUN-20-2014+0.tot)
  14. Make sure in action mode BOARD DL is selected and in connection mode USB is selected
  15. Click [OK]
  16. Click the [yellow arrow] that is pointing to the right
  17. Wait until Port 1 (COM41) says READY! (could take a couple minutes give it time)
  18. Plug your phone back in and it will start flashing automatically DO NOT UNPLUG THE PHONE
  19. After its done sending the firmware over your phone will reboot into mini os and you will see a blue screen with a big 2 wait until you see a big 3 then unplug the phone and close the lgflashtool program. Your phone might automatically reboot on 3 but it hasn't for me If it doesn't just pull the battery put it back in then power up. After one of the updates this step may be different then described. If you have problems just ask and myself or somebody else will be able to help.


Everything that lives inside the KDZ files except system HERE
(If you want the system.img download the twrp files)
 
Last edited:

ThePagel

Senior Member
Jul 6, 2012
1,479
838
0
Minneapolis
Software version D85130g
Android 6.0.1
July 5, 2017
2G/3G data roaming fix
Google monthly security patch
LG app fix
software stability and software improvements

Software version: D85130e
Android 6.0.1
August 8, 2016
Google security enhancements
Software stability

Software version: D85130d
Android version 6.0
May 2, 2016
Android Marshmallow
Wi-Fi Calling improvements

Software version: D85120g
Android version 5.0.1
October 5, 2015
Messaging security improvements (Stagefright)

Software version: D85120e
Android version 5.0.1
June 10, 2015
Android 5.0 Lollipop
Turns on VoLTE
Wi-Fi Calling 2.0
Software stability

Software version: D85120b
Android version 5.0.1
April 7, 2015
Android 5.0 Lollipop
Turns on VoLTE
Wi-Fi Calling 2.0

Software version: D85110r
Android version 4.4.2
December 2, 2014
Wi-Fi Calling enhancements
Security enhancements
Bluetooth connectivity improvements
Various bug fixes

Software version: D85110m
Android version 4.4.2
September 10, 2014
Wi-Fi Calling enhancements
Security enhancements
Various bug fixes

Software version: D85110c
Android version 4.4.2
July 16, 2014
Original software version
 
Last edited:

wavrunrx

Senior Member
Jul 14, 2011
955
398
0
thanks for this OP.
now since TWRP was released for the t-mobile g3, soon enough this kdz package will be converted to a TWRP compatible flash package :D
 

turilo

Senior Member
Jun 17, 2007
3,528
1,562
253
Hamilton,Ont
Ok now I'm not sure if im reading this correctly but it says in OP to Download one of the KDZ files from the beginning of the post and extract it in the Flashtool folder from his thread, now when i got o his thread I only see the G2 files not the G3? someone maybe point me to the one i need for the D851?

EDIT: never mind im an idioto! disregard :p
 

ThePagel

Senior Member
Jul 6, 2012
1,479
838
0
Minneapolis
Ok now I'm not sure if im reading this correctly but it says in OP to Download one of the KDZ files from the beginning of the post and extract it in the Flashtool folder from his thread, now when i got o his thread I only see the G2 files not the G3? someone maybe point me to the one i need for the D851?

EDIT: never mind im an idioto! disregard :p
Ill move the credits to the bottom of the op so no one else can get confused
 
Last edited:

DefinityX

Senior Member
Apr 8, 2012
123
15
0
Great guide! Just what I was looking for. 2 questions though... Will this unroot your device? (I would presume untouched stock means that, but you know what happens when I presume. I make a pres of you and me). (I'm looking for a reliable to way to uproot, just in case I want to get an OTA). Also, could you link to the G3 drivers in the OP? This is gonna be my go to post if anyone asks me about it... :D

Sent from my Nexus 10 using XDA Premium 4 mobile app
 
  • Like
Reactions: ThePagel

ThePagel

Senior Member
Jul 6, 2012
1,479
838
0
Minneapolis
Win7 Ultimate 64-Bit
Worked for me on 8.1 so it should work for you. Install Microsoft c++ runtime 2012 or 2013 then try again. Also make sure you have the proper drivers installed. Ill upload both runtime and drivers when i get home so if you cant find them check back around 6 or 7.
*Edit
Also make sure your running as administrator.
 
  • Like
Reactions: Mikey

ThePagel

Senior Member
Jul 6, 2012
1,479
838
0
Minneapolis
Great guide! Just what I was looking for. 2 questions though... Will this unroot your device? (I would presume untouched stock means that, but you know what happens when I presume. I make a pres of you and me). (I'm looking for a reliable to way to uproot, just in case I want to get an OTA). Also, could you link to the G3 drivers in the OP? This is gonna be my go to post if anyone asks me about it... :D

Sent from my Nexus 10 using XDA Premium 4 mobile app
Thanks!
It will unroot you and it already saved my butt after I accidentaly formatted most of the partitions on the phone. I plan on uploading the unified lg drivers tonight along with c++ runtime. Im also going to hunt down a nice guide and link to it for flashing via the lg suite if this fails. The lg suite way is a pain in the a** but should work if this one fails.
 
  • Like
Reactions: DefinityX

Mikey

Retired Senior Moderator
Oct 10, 2007
6,272
1,742
253
Wheaton, Il
Win7 Ultimate 64-Bit
Worked for me on 8.1 so it should work for you. Install Microsoft c++ runtime 2012 or 2013 then try again. Also make sure you have the proper drivers installed. Ill upload both runtime and drivers when i get home so if you cant find them check back around 6 or 7.
*Edit
Also make sure your running as administrator.
If you need drivers for Windows (thanks @autoprime for having these handy!):
Everyone Else: http://downloads.codefi.re/autoprime...Ver_3.11.3.exe
UPDATE
1- I downloaded 2013 Runtime 2013 from here: http://www.microsoft.com/en-us/download/details.aspx?id=40784
2- Rebooted my PC
3- Followed the instructions in OP, performing the CSE flash.
4- Received a timeout error really quick but it started to flash.
5- Around 80% the phone went black and never booted to the LG screen, after it hit 100% I unplugged it, removed the battery and rebooted it.

Booting up it entered some mode for a split second and rebooted itself.
Once on homescreen, it rebooted itself one last time.

I'm UnRooted now :)
I guess i needed to install C++ Runtime
Thanks
 
Last edited: