[Tutorial] How to flash factory images with LG Flashtool

Search This thread

demonr6

Senior Member
Apr 20, 2012
296
76
Is there a way to get the stock Lollipop for this? Ever since we updated to Marshmallow on my wife's device the thing is almost constantly rebooting. We can pinpoint the problem to the update and nothing else. I have reset to factory and cleared the cache like some suggest and went to the extent of a tear down last night to clean the power button but fail. The only thing left I have not tried is the battery but it is barely two years old and I don't want to throw money at that when we know the problem started with the stupid update of the OS.

TIA
 
Nov 17, 2013
42
5
can anyone post a link with a nandroid backup here? or pm me one? I want to try to push some files via adb, maybe I can mount partitions again using TWRP. I know I can get serious damage doing that, but at this point there is not much I can do, and I am willing to give it a try!
 

lifeisfun

Senior Member
Nov 7, 2007
1,256
188
Anybody managed to install the LG driver on W10 ?
I have followed the instructions and all I get is battery charging icon and the phone is recognized as MTP Device.
no LG Mobile Serial Port anywhere to be found (yes I installed the driver first exactly as in the guide)
Thanks
 
Last edited:

Douglas_Cgt

Member
Sep 18, 2013
9
0
Firmware d821 on nexus d820?

I have a Nexus 5 d8020, the problem is that where I live does not support the use of 4g.
Can I install the firmware + dll d8021 withou problem or is this not possible?
 

jd1639

Inactive Recognized Contributor
Sep 21, 2012
16,833
5,404
Minnesota
I have a Nexus 5 d8020, the problem is that where I live does not support the use of 4g.
Can I install the firmware + dll d8021 withou problem or is this not possible?

There is no difference in firmware. It's the same factory image for either device. It's a hardware difference between the different devices.

Sent from my Nexus 9 using XDA Free mobile app

---------- Post added at 05:20 PM ---------- Previous post was at 05:16 PM ----------

I have a Nexus 5 d8020, the problem is that where I live does not support the use of 4g.
Can I install the firmware + dll d8021 withou problem or is this not possible?

There is no firmware difference between the devices. It's the same factory image. It's a hardware difference.

Sent from my Nexus 9 using XDA Free mobile app

---------- Post added at 05:21 PM ---------- Previous post was at 05:20 PM ----------

I have a Nexus 5 d8020, the problem is that where I live does not support the use of 4g.
Can I install the firmware + dll d8021 withou problem or is this not possible?

There is no firmware difference between the devices. It's the same factory image. It's a hardware difference.

Sent from my Nexus 9 using XDA Free mobile app
 
  • Like
Reactions: Douglas_Cgt

Douglas_Cgt

Member
Sep 18, 2013
9
0
There is no difference in firmware. It's the same factory image for either device. It's a hardware difference between the different devices.

Sent from my Nexus 9 using XDA Free mobile app

---------- Post added at 05:20 PM ---------- Previous post was at 05:16 PM ----------



There is no firmware difference between the devices. It's the same factory image. It's a hardware difference.

Sent from my Nexus 9 using XDA Free mobile app

---------- Post added at 05:21 PM ---------- Previous post was at 05:20 PM ----------



There is no firmware difference between the devices. It's the same factory image. It's a hardware difference.

Sent from my Nexus 9 using XDA Free mobile app

So can i flash it without problem?
I'm sorry, I did not understand perfectly.
 

jd1639

Inactive Recognized Contributor
Sep 21, 2012
16,833
5,404
Minnesota
Yes you can. But it isn't going to help you with your 4G issue. There's different hardware between the d820 and d821 which allows different bands.

Sent from my Nexus 5X using XDA Free mobile app
 
  • Like
Reactions: Douglas_Cgt

abbi339

New member
Nov 26, 2015
4
1
Not working for me

Hi,
I followed your thread , actually i am using windows 10 32 bit pc, i installed lg drivers and lg flash tool, but when i press vol up and i connected to pc via usb my pc is not installing drivers.Even in device manager portable devices Lg port option not showing,not getting download mode i am stuck please anyone help me!!!
 
Last edited:

Douglas_Cgt

Member
Sep 18, 2013
9
0
Hi,
I followed your thread , actually i am using windows 10 32 bit pc, i installed lg drivers and lg flash tool, but when i press vol up and i connected to pc via usb my pc is not installing drivers.Even in device manager portable devices Lg port option not showing,not getting download mode i am stuck please anyone help me!!!

I'm having the same problem. The windows 7 32 bits does not install the drive called ''USB MTP''.
Someone have any idea to help?
Edit: My device doesn't appear the download mode on screen when i hold down the UP VOLUME and connect the usb cable.
 
Last edited:

abbi339

New member
Nov 26, 2015
4
1
Still no luck

I'm having the same problem. The windows 7 32 bits does not install the drive called ''USB MTP''.
Someone have any idea to help?
Edit: My device doesn't appear the download mode on screen when i hold down the UP VOLUME and connect the usb cable.

Hi,
still no luck, Actually in my pc it is showing MTP device when i connected my mobile to pc, but in device manager other ports option list LGE serial port is not coming only communication port showing, I tried to re install lg drivers but still no luck.
 

jd1639

Inactive Recognized Contributor
Sep 21, 2012
16,833
5,404
Minnesota
Any specific reason you guys are using the lg flash tool and not fastboot?

Sent from my Nexus 5X using XDA Free mobile app
 

abbi339

New member
Nov 26, 2015
4
1
I'm having the same problem. The windows 7 32 bits does not install the drive called ''USB MTP''.
Someone have any idea to help?
Edit: My device doesn't appear the download mode on screen when i hold down the UP VOLUME and connect the usb cable.

Any specific reason you guys are using the lg flash tool and not fastboot?

Sent from my Nexus 5X using XDA Free mobile app
Hi
well i have one specific reason, actually before going on to lg flash tool I tried with fastboot, but there is no luck when i flash it throws back with failed to flash like that, so that's the reason i end up with fastboot.
 
Last edited:

jd1639

Inactive Recognized Contributor
Sep 21, 2012
16,833
5,404
Minnesota
Hi
well i have one specific reason, actually before going on to lg flash tool I tried with fastboot, but there is no luck when i flash it throws back with failed to flash like that, so that's the reason i end up with fastboot.

When using fastboot and typing fastboot devices do you get the device serial number returned?

Sent from my Nexus 5X using XDA Free mobile app
 

Douglas_Cgt

Member
Sep 18, 2013
9
0
Hi
well i have one specific reason, actually before going on to lg flash tool I tried with fastboot, but there is no luck when i flash it throws back with failed to flash like that, so that's the reason i end up with fastboot.

When using fastboot and typing fastboot devices do you get the device serial number returned?

Sent from my Nexus 5X using XDA Free mobile app
[

Hi guys.
Unfortunately I gave up installing a ROM that way. Recently I installed CyanogemMod13 only flash in recovery mode even.
Now came another question which does not fit more in this post.
Thanks for the help guys.
 

emmagata

Member
Jul 29, 2013
13
0
When using fastboot and typing fastboot devices do you get the device serial number returned?

Sent from my Nexus 5X using XDA Free mobile app

On my LG Gpad 8.3 fastboot devices returns a "?". I cannot get any flash method (fastboot, LG Flashtool, etc) to work. IF I type "fastboot boot boot.img" (with the boot.img in the current folder) the tablet will boot up as if it's doing an initial setup but the touch screen doesn't respond. It's got some smarts because screen rotation works as does the cover sensor (when open and close the display goes out and comes back on) and it knows it's charging.
 

M1kesky

Member
Mar 17, 2016
14
0
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.
 

opssemnik

Account currently disabled
Jun 10, 2013
1,560
1,046
GB
meettomy.site
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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    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:
      12389368801_www.kepfeltoltes.hu_.png
      2556083392_www.kepfeltoltes.hu_.png
    • Let windows to install the drivers for the new devices.
    • Change the port number to 41:
    7987198111_www.kepfeltoltes.hu_.png

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

    1. Select Port Settings tab
    2. Click on Advance...
    310314793_www.kepfeltoltes.hu_.png

    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.
    4651856764_www.kepfeltoltes.hu_.png

    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.
    12294208695_www.kepfeltoltes.hu_.png

    1. Click on the yellow arrow sign to start flashing.
    699082986_www.kepfeltoltes.hu_.png

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

    1. At 80% the phone will shut off, don't be scared.
    11562205838_www.kepfeltoltes.hu_.png

    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]
    2
    How is this quicker than fastboot?

    Sent from my Nexus 5

    Fastboot: Phone restarts twice. Send the images to the phone memory, after the whole image has been sent, then the phone write it to the emmc from the memory.
    LG flashtool: writes the images directly to the emmc.
    2
    Great work @bitdomo on putting this together!


    How is this quicker than fastboot?

    Sent from my Nexus 5

    I've never really thought of Fastboot as slow by any means. Writing a system.IMG can take a few seconds, but everything else is generally done within a couple of seconds. Writing to memory sounds safer to me as well. If it ain't broke, as they say.
    I think one of the main advantages that bitdomo may have forgot to mention is that this will work even if fastboot won't (in most cases). For example, say you had a bad bootloader flash, and now you cannot access the bootloader. Consequently, you are not able to flash images using fastboot. However, using LG Flash Tool (or LGNPST) should still allow you to flash your device and get back to a stock state.

    Now, the one thing that remains is to figure out how to flash the device using QPST... :)
    2
    Great work @bitdomo on putting this together!





    I think one of the main advantages that bitdomo may have forgot to mention is that this will work even if fastboot won't (in most cases). For example, say you had a bad bootloader flash, and now you cannot access the bootloader. Consequently, you are not able to flash images using fastboot. However, using LG Flash Tool (or LGNPST) should still allow you to flash your device and get back to a stock state.

    Now, the one thing that remains is to figure out how to flash the device using QPST... :)

    Yes I forgot to say that :).

    People who killed their bootloaders get Qualcomm HS-USB QDloader 9008 device (without drivers it is QHSUSB_BULK) when they connect their devices to the PC. If they try to enter Download mode they get a black screen as well, but on the pc LGE androidnet serial usb port device comes up. Atleast two out of two people's phone do these symptoms. I don't know what's with the others. LGE androidnet serial usb port device is used to setup CDMA networks on nexus 5, there is a thread about it somewhere. So in short LGE androidnet serial usb port is useless for LG flashtool.

    I started an investigation on LGE androidnet serial usb port device to figure out why this comes up for that two people. I found out when you try to enter to Download mode then the phone boots up the LAF image, which is a kernel image like recovery.img or boot.img. I extracted the ramdisk of the LAF (it is on the laf partition) and I found this file init.laf.usb.rc.


    Code:
    # init.laf.usb.rc
    
    # it can run as user cable
    on property:ro.boot.laf=USER
    	wait /sys/class/android_usb/android0/enable
    	write /sys/class/android_usb/android0/enable 0
    	write /sys/class/android_usb/android0/idVendor 1004
    	write /sys/class/android_usb/android0/idProduct 6000
    	write /sys/class/android_usb/android0/bDeviceClass 2
    	write /sys/class/android_usb/android0/bDeviceSubClass 0
    	write /sys/class/android_usb/android0/bDeviceProtocol 0
    	write /sys/class/android_usb/android0/f_acm/acm_transports tty
    	write /sys/class/android_usb/android0/f_diag/clients diag
    	write /sys/class/android_usb/android0/functions acm,laf
    	write /sys/class/android_usb/android0/enable 1
    
    # it can run as user cable for PID of verizon
    on property:ro.boot.laf=VUSER
    	wait /sys/class/android_usb/android0/enable
    	write /sys/class/android_usb/android0/enable 0
    	write /sys/class/android_usb/android0/idVendor 1004
    	write /sys/class/android_usb/android0/idProduct 6246
    	write /sys/class/android_usb/android0/bDeviceClass 239
    	write /sys/class/android_usb/android0/bDeviceSubClass 2
    	write /sys/class/android_usb/android0/bDeviceProtocol 1
    	write /sys/class/android_usb/android0/f_acm/acm_transports tty
    	write /sys/class/android_usb/android0/f_diag/clients diag
    	write /sys/class/android_usb/android0/functions acm,laf,ecm
    	write /sys/class/android_usb/android0/enable 1
    
    # it can run as factory cable(910K USB cable)
    on property:ro.boot.laf=910K
    	wait /sys/class/android_usb/android0/enable
    	write /sys/class/android_usb/android0/enable 0
    	write /sys/class/android_usb/android0/idVendor 1004
    	write /sys/class/android_usb/android0/idProduct 6000
    	write /sys/class/android_usb/android0/bDeviceClass 2
    	write /sys/class/android_usb/android0/bDeviceSubClass 0
    	write /sys/class/android_usb/android0/bDeviceProtocol 0
    	write /sys/class/android_usb/android0/f_acm/acm_transports tty
    	write /sys/class/android_usb/android0/f_diag/clients diag
    	write /sys/class/android_usb/android0/functions acm,laf
    	write /sys/class/android_usb/android0/enable 1
    
    # it can run as factory cable(56K USB cable)
    on property:ro.boot.laf=56K
    	wait /sys/class/android_usb/android0/enable
    	write /sys/class/android_usb/android0/enable 0
    	write /sys/class/android_usb/android0/idVendor 1004
    	write /sys/class/android_usb/android0/idProduct 6000
    	write /sys/class/android_usb/android0/bDeviceClass 2
    	write /sys/class/android_usb/android0/bDeviceSubClass 0
    	write /sys/class/android_usb/android0/bDeviceProtocol 0
    	write /sys/class/android_usb/android0/f_acm/acm_transports tty
    	write /sys/class/android_usb/android0/f_diag/clients diag
    	write /sys/class/android_usb/android0/functions acm,laf
    	write /sys/class/android_usb/android0/enable 1
    
    # it can run as factory cable(130K USB cable)
    on property:ro.boot.laf=130K
    	wait /sys/class/android_usb/android0/enable
    	write /sys/class/android_usb/android0/enable 0
    	write /sys/class/android_usb/android0/idVendor 1004
    	write /sys/class/android_usb/android0/idProduct 6000
    	write /sys/class/android_usb/android0/bDeviceClass 2
    	write /sys/class/android_usb/android0/bDeviceSubClass 0
    	write /sys/class/android_usb/android0/bDeviceProtocol 0
    	write /sys/class/android_usb/android0/f_acm/acm_transports tty
    	write /sys/class/android_usb/android0/f_diag/clients diag
    	write /sys/class/android_usb/android0/functions acm,laf
    	write /sys/class/android_usb/android0/enable 1
    
    # it can run as user cable for QCT PID
    on property:ro.boot.laf=QCOM
    	wait /sys/class/android_usb/android0/enable
    	write /sys/class/android_usb/android0/enable 0
    	write /sys/class/android_usb/android0/idVendor 05C6
        write /sys/class/android_usb/android0/idProduct 903A
    	write /sys/class/android_usb/android0/f_acm/acm_transports tty
    	write /sys/class/android_usb/android0/f_diag/clients diag
        write /sys/class/android_usb/android0/functions mtp,laf
    	write /sys/class/android_usb/android0/enable 1

    So, for some reasone for those two guys the laf runs the "on property:ro.boot.laf=QCOM" lines and not the "on property:ro.boot.laf=USER" lines. In the comments you can see both of this mode triggered by "user" cable. I think "user" cable means the normal usb cable. There are 3 more "modes" for 56k, 130k, 910k cables all of these three are identical with "on property:ro.boot.laf=USER" settings. Maybe if that two people get or make one of those cable then they can avoid to get the "on property:ro.boot.laf=QCOM" lines run.

    I attached the ramdisk to this post.
    2
    Hi as I was on the image link on mega the one that is named as the same as the one installed on my phone...you have the folder marked "Converted"
    How is the image Converted/modified?
    Thanks in advance
    :confused:

    P.S. Could you also Please post the md5 chksums for all of the files, save a brick!

    Converted means it is from the other nexus 5 variant. I just changed a text from D820 to D821 and vice-versa, since all nexus 5 the same, using tot images from the other variant cant cause problem. To test out my theory i flashed the d820 kfs78n rom to my d821 and no problem. Here read this: http://xdaforums.com/showpost.php?p=51651325&postcount=82

    Tot files has crc check, but if you feel it safer i can make the md5 sums.

    Tapatalk-kal küldve az én Nexus 5-el