[Tutorial] How to flash factory images with LG Flashtool

opssemnik

Senior Member
Jun 10, 2013
1,549
1,034
113
Porto Alegre,Rio Grande Do Sul,Brasil
Hi there, I've been having trouble with all forms of flashing and factory reset with my nexus 5, and on this, it gets to around 100s and then says userdata erase Fail. then at 200+ seconds it will say 'we can't communicate' and the top bar will change to red and say Download FAIL!! Any idea why this error keeps being thrown for me? when using adb shell i also have trouble looking at the filesystem for userdata.
try fastboot format userdata or format data inside twrp, if it wont work then you probably have a fried emmc
 

cyberfrogz

Senior Member
Feb 4, 2010
69
9
0
Bootloop On Nexus 5

Hello dude...
My Nexus 5 have a problem always bootloop after restart and can't access to Android System :

- Bootloader Locked but i can access it.
- Download Mode Fine
- Recovery System Still Original Android hammerhead MMB29V
- LG Mobile USB Serial Port (COM41) still work fine.

Try to flash with LG Flash Tool and Original Firmware i found an error :
- userdata erase fail
- Errase Command Failed
(Like In The Attachment Picture)

Anyone know how to solved it?

Thanks before dude......
 

elopezavila

New member
Feb 8, 2017
4
0
0
Broken Screen

I was reading all the posts and I did not noticed if someone had the same issue as I do. So I'll just ask the question.

My phone fell and the screen broke. Right now, I'm only able to see color lines on the screen. So what I'm trying to do is to recover the information from my phone; mostly photos and some files. The problem is that I never enabled the USB debug option and my touchscreen is not responding. My computer recognize the phone as a Portable device -> Nexus 5. I used to connect it to my computer to download its content.

So my question is if I'm able to access the files within the phone, even if I cannot unlock my phone (because the screen doesn't respond) or I cannot enable USB file transfer option from the top bar menu.

Thank you for your time. I hope there is a solution to this. My plan is to dispose of this phone once I have the information within. So it would be better to not invest on a screen to get the information out.
 

audit13

Recognized Contributor
Jun 4, 2012
12,915
5,046
0
Toronto
You could boot the phone into fastboot mode and flash TWRP for the Nexus 5. If it flashes, you could then boot into recovery using the power buttons. Once TWRP is booted, you could see if you can copy files from the phone to the computer.
 

elopezavila

New member
Feb 8, 2017
4
0
0
I adquired all the files to flash the twrp.img to the Nexus 5. Then I turned off the phone; I'm able to know if it is on or off because the screen stills shows of some light. Then, I pressed volumen down button and power button to open the bootloader mode. I know is in the bootloader mode for sure.

The problem begins here. Now I cannot find the device in Windows 10. I imagine is because USB debugging is not enabled. In the device manager I can see the phone. It is called:
"LeMobile Android Device," and under that, it says,
"Android Bootloader Interface"

So I know the phone is there. I only need a way to access its information. Any ideas on what I should do about this?

Thank you for your help.
 

diogo92

New member
Jul 22, 2014
1
0
0
Hello dude...
My Nexus 5 have a problem always bootloop after restart and can't access to Android System :

- Bootloader Locked but i can access it.
- Download Mode Fine
- Recovery System Still Original Android hammerhead MMB29V
- LG Mobile USB Serial Port (COM41) still work fine.

Try to flash with LG Flash Tool and Original Firmware i found an error :
- userdata erase fail
- Errase Command Failed
(Like In The Attachment Picture)

Anyone know how to solved it?

Thanks before dude......


I have the same problem did you solved it?
 

romangpro

Member
Nov 10, 2017
8
0
0
I am experiencing the same.
I am unable to enter download mode it just gets me to the charging screen. I am android m developer preview. I have no idea why is this happening.
I'm in the same boat.

At minimum wage, I could have bought IPhone8 with all the time spent trying to fix this bricked Nexus5.
 

shivmahar

New member
Aug 10, 2019
3
0
0
Unable to boot in download mode

Only you are the responsible if you brick your device. I tried the whole method a few times and no problems so far, but random things could happen.

What is LG Flashtool?
  • LG Flashtool is used by LG to flash firmwares to phones.

What are the advantages of using LG Flashtool?
  • The flashing process is faster than the fastboot flashing process.
    [*]You don't need unlocked bootloader to flash.
    [*]It locks bootloader and resets tamper flag.

What are the disadvantages of using LG Flashtool?
  • Your battery level must be over 10%.
    [*]It changes the device factory version. If your phone had KFS78N version of android initially and you flash a KRT16M firmware, then the device factory version is going to change from KFS78N to KRT16M.
    [*]LGD821AT-00-V10a-NXS-XX-OCT-01-2013-KFS78N-USER-16G+0 ==> LGD821AT-00-V10b-NXS-XX-OCT-31-2013-KRT16M-USER-16G+0
    [*]This info stored on the misc partition at the 0x00008800 offset. You can change it back to the original one if it bothers you.
    [*]To get your original device factory version then just open the log file in the LOG folder which is created at the location of the DLL and TOT file and search for "device factory version" text.
    [*]I made a flashable zip (mirror) which bacups the device factory version to /sdcard/version.txt. After the backup just copy the txt to your PC. Then here is the restore zip (mirror). Just place the version.txt to /sdcard and flash the zip to restore.

Preparation (you have to do it only for the first time)

  • Download LG drivers (mirror)and install it.
  • Download LG Flashtool (mirror)and install it.
  • Create a folder where you put the DLL and the Firmware file.
  • Download DLL: D820 (mirror) (North American version) D821 (mirror) (Global version). Place the DLL to the created folder.
  • Download firmware: D820 (mirror) (North American version) D821 (mirror) (Global version) Place the TOT file to the created folder.
  • Turn off the phone.
  • Hold down volume_up key then connect USB cable.
  • If you see these screens bellow then the phone is in Download Mode and you are on the right path:
  • Let windows to install the drivers for the new devices.
  • Change the port number to 41:

  1. Open Device Manager.
  2. Right click on LGE Mobile USB Serial Port (COMxx) (where xx is the port number).
  3. Click on Properties.

  1. Select Port Settings tab
  2. Click on Advance...

  1. Change COM Port Number to COM41

If you don't want to flash any firmware yet just hold down the power key for 10-15 secs then your phone turns on.

Flashing the firmware


  • Enter your phone to Download Mode.
  • Start LG flash tool.
  • If Model Config window does not start, then click on the sign with two cogwheels.

  1. Place a tick next at Select Manual Mode
  2. Click on "..." and select the DLL file for your device.
  3. Click on Add to add the TOT file.
  4. Click OK.

  1. Click on the yellow arrow sign to start flashing.

  1. If you see READY!!, then reconnect your phone. Then "Waiting for Connection" text will appear in the COM41 window.

  1. At 80% the phone will shut off, don't be scared.

  1. DONE! The LED on the phone is starts blinking green. Just remove the usb cable wait until the blinking stops then turn on your device.

Restore device factory version (optional)
  1. Create a new txt file called "version.txt" and open it.
  2. Paste your device factory version from the log file located in the LOG folder where the DLL and TOT file are. Search for "device factory version" text in the log file
  3. Copy version.txt to the root of the sdcard (/sdcard).
  4. Download the restore_device_factory_version.zip (mirror).
  5. Flash restore_device_factory_version.zip in recovery.

Videos

LG Flashtool:
Restore device factory version:

Credits
All the guys from [REF] [TOT] Stock Firmware Collection for Nexus 5 (D820 & D821) thread.

Code:
In PDF ([URL="https://mega.co.nz/#!584SzYbC!hSiymZnhn1SVBqwjOY7qsXB4PvgPnYDwYRnMIid9pfE"].docx for translate[/URL]):
[URL="https://mega.co.nz/#!koRHkIYa!L6esc81aRvQ3PdbklRgdrQZTIu-vbhhbfC6mam4gIzo"]English-English_LGFlashtool.pdf[/URL]
[URL="https://mega.co.nz/#!lwZxhDLa!9L9HE0qjGZ3iIxi01m6nm1EYt23zllri8K9s__5Nmcw"]Magyar-Hungarian_LGFlashtool.pdf[/URL]
Dear Sir,
I have the same problem. I done everything. But I cant boot in download mode with pressing and hold volume up key + insert data cable.