[Tutorial] Rescue From HARD BRICK

Search This thread

dr.arest

Member
Nov 23, 2014
15
0
43
Lviv
Redmi Note 11
You're correct with the version numbers.10x is A9,20U is A10 etc...
AFAIK I selected correct version (A10, firmware 20U). But why doesn't the phone show any signs of life? Even if I plug in the charger, the phone doesn't show charging even though it was displaying charging normally before.
Is it possible that this is a hardware error (e.g. flash memory?)

But I have also a few question about your backup (backup_lg-v50s.rar):
First of all, are .bin files the same as .img files and could they be interchangeable?
Then please take a look to the following scenario:
I replace in your backup LUN5 partitions (fsc.bin, fsg.bin, modemst1.bin, modemst2.bin) by my saved copies. Then I restore this backup. This should unbrick the phone.
Am I right, and most importantly, is there any way to restore this backup without booting into normal mode?
 

ardian1899

Senior Member
Oct 26, 2012
268
22
AFAIK I selected correct version (A10, firmware 20U). But why doesn't the phone show any signs of life? Even if I plug in the charger, the phone doesn't show charging even though it was displaying charging normally before.
Is it possible that this is a hardware error (e.g. flash memory?)

But I have also a few question about your backup (backup_lg-v50s.rar):
First of all, are .bin files the same as .img files and could they be interchangeable?
Then please take a look to the following scenario:
I replace in your backup LUN5 partitions (fsc.bin, fsg.bin, modemst1.bin, modemst2.bin) by my saved copies. Then I restore this backup. This should unbrick the phone.
Am I right, and most importantly, is there any way to restore this backup without booting into normal mode?

interchangeable? based on my exp, yes.

You can try your idea. After restoring these LUs, you dont have to restart and you can replace them on the partition manager.
 

Juan Celaya

Member
Sep 16, 2017
9
1
FTM es un lugar temporal y sus datos se regeneran después de flashear el teléfono. Cambiar el IMEI en FTM no cambiará el IMEI del teléfono.
FSG es la copia de seguridad de los módems. La reparación del proceso IMEI puede alterar Modemsts pero no FSG.
LG ha puesto un nuevo bloqueo en NVM para evitar que los datos de identidad cambien. Además, el puente a Modemsts es una partición de módem que lleva otro bloqueo llamado IMEIPROT.
Cuando borramos todas las particiones, NVM se borra, pero IMEIPROT todavía existe en módem. La única forma de reescribir IMEI es modificar el módem eliminando IMEIPROT. Sin embargo, perder NVM despertará otro bloqueo que impide que el módem detecte Sim, lo que resulta en el error "este teléfono está permanentemente bloqueado" incluso después de reescribir IMEI.
¿Cómo soluciono el error "este teléfono está bloqueado permanentemente"?
 

Jeremeexd7

Member
May 23, 2023
15
2
Cześć, mam ten sam problem na moim LG g8s i Zblokowałem moje urządzenie, ale zrobiłem kopię zapasową systemu twrp itp. i kopię zapasową partycji: fsc fsg ftm laf_a laf_b modem_a modem_b modemst1 modemst2
Jak przywrócić stan fabryczny?

Mod translation:
hi i have the same problem on my lg g8s and i locked my device but i did a twrp etc backup and partition backup: fsc fsg ftm laf_a laf_b modem_a modem_b modemst1 modemst2
How to restore factory state?
And install project renegate please help
 
Last edited by a moderator:

faiz 008

Member
May 22, 2023
8
0
plz help my lg g8 accedantly delete entire partition how to fix this i have anthor lg g8 same framwere
 

iMarzateD

Member
Jun 26, 2018
12
0
25
Google Pixel 3
I just created the unbrick lg v50s file. There may be an error. I relied on the rawprogramx.xml file in the unbrick lg v50 file and the PartitionsList of lg v50s saved from QFIL to create a new rawprogramx.xml file. I replaced the partition addresses in the rawprogramx.xml file of lg v50 with the new partition addresses in the PartitionsList of lg v50s. gpt_main or gpt_backup files remain the same (perhaps these files of v50 are the same as v50s). other files are taken from the kdz rom of lg v50s (lgu kr v510n20s).
You have to find a way to load rawprogramx.xml in QFIL somewhere else.
When it finishes downloading, press and hold the volume button - simultaneously with the power button for about 12 seconds and then release. Wait about 5s, hold down the volume + button to enter Download mode to reinstall the rom. If it doesn't power up, try again.
Here is the unbrick lg v50s link: https://drive.google.com/file/d/1eo6gm8EGbVXSvWZCjZMJmVluXKTrJeOt/view?usp=share_link
I just bricked my v50s by flashing the files from the v50 thread (I think you might know which tutorial in talking about), and now my phone can't even ever EDL mode, I would have to short pin out the motherboard as far as I've been told. I was looking for the QFIL files for this model since I don't have any backups but it seems your file was taken down, could you please share it again? Or could you tell me how to get the files from a KDZ archive?
 

Jeremeexd7

Member
May 23, 2023
15
2
Właśnie zamurowałem moje v50, flashując pliki z wątku v50 (myślę, że możesz wiedzieć, o którym samouczku mowa), a teraz mój telefon nie może nawet nigdy działać w trybie EDL, musiałbym skrócić piny płyty głównej tak daleko, jak Zostało mi powiedziane. Szukałem plików QFIL dla tego modelu, ponieważ nie mam żadnych kopii zapasowych, ale wygląda na to, że twój plik został usunięty, czy mógłbyś udostępnić go ponownie? A może mógłbyś mi powiedzieć, jak uzyskać pliki z archiwum KDZ?
Here we go
Copy and pastę kdz file to folder and open comand y and wait to finish
http://www.mediafire.com/file/0a6iikrao70ma5s/KDZTools_20200305.7z/file
 
  • Love
Reactions: iMarzateD

iMarzateD

Member
Jun 26, 2018
12
0
25
Google Pixel 3

Jeremeexd7

Member
May 23, 2023
15
2
Jesteś dosłownie moim wybawcą. Właśnie zadałem pytanie, ROM to Android 9, jeśli sflashuję partycje, aby odzyskać tryb pobierania, czy będę mógł później zaktualizować go do Androida 12? A może partycje rozruchowe nie mają znaczenia? Dziękuję bardzo za to narzędzie
Sugeruję flashowanie do Androida 9 i aktualizację do Androida 12 LG jasny do 12, ale zainstaluj lgup do Androida 9, ponieważ awaria akcelerometru na moim urządzeniu musi zainstalować ostatni Android 9 i do 12 Fix ten problem i czujnik zbliżeniowy nie działa może moje urządzenie może oprogramowanie
 
  • Like
Reactions: iMarzateD

iMarzateD

Member
Jun 26, 2018
12
0
25
Google Pixel 3
Sugeruję flashowanie do Androida 9 i aktualizację do Androida 12 LG jasny do 12, ale zainstaluj lgup do Androida 9, ponieważ awaria akcelerometru na moim urządzeniu musi zainstalować ostatni Android 9 i do 12 Fix ten problem i czujnik zbliżeniowy nie działa może moje urządzenie może oprogramowanie
Ok got it, thanks. And by this method do you know if once updated to Android 12, the fingerprint sensor works again?. Happens that the bootloader is already unlocked and the sensor isn't working but a saw a tutorial to get it working when you downgrade to Android 9.
 

Jeremeexd7

Member
May 23, 2023
15
2
Ok got it, thanks. And by this method do you know if once updated to Android 12, the fingerprint sensor works again?. Happens that the bootloader is already unlocked and the sensor isn't working but a saw a tutorial to get it working when you downgrade to Android 9.
And you proximity sensor work or doesn't
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Don't worry!
    Everything's gonna be alright ;)

    You may accidentally erase all partitions and GPT on your phone. Nothing is shown in "Partition Manager". Since there's no Rawprogram XML file we need an alternative method to get the phone back on again.
    This tutorial shows how to recover from a hard brick state. Be aware that identity data of the phone are stored in LUN5 (modemst1, modemst2, fsg and fsc) and are incapable of recovering. So, you need to repair IMEI.
    Except using IMEI repair tool box, there is only one possible way to rewrite IMEI but as far as I know the phone will throw an error that this phone is permanently locked.
    On the SDM855 flash we have 7 LUNs. Each Lun is devided into several partitions where data are stored. Some of the partitions are necessary in order that phone can turn on. They are in LUN0, LUN1 and LUN4. If you have no backup you need to extract the necessary or all partitions from a KDZ. So, do a search for how to extract the new KDZ files, learn and do it. There are some difficulties with extracting OP partition so make sure you do it correctly. Since, it's been explained in this forum I'm not gonna re-explain anything.
    So, let's get started =)

    For other models than LG G8 please read post #2.

    Requisites
    QPST and Qualcomm USB Driver (get)
    LGE SM8150 Firehose (get)

    Other Downloads
    Sprint dumped ROM (get) [optional]
    Necessary files for LG G8X (get from this post) thanks to @davembg [optional]
    LG V50 GPT files (get) [optional]

    Preparation
    1. Install QPST and Qualcomm USB Driver.


    Basic Steps
    1. Open QFIL.
    2. Change "Storage Type" to UFS.
    3. Select "Flat Build".
    4. Browse for "LGE SM8150 Firehose" and pick it.
    5. Now, connect the phone to PC and boot into EDL mode.
    6. Open "Select Port" and select the phone, press OK.
    7. In "Tools" open the "Partition Manager". Keep the "Partition Manager" for the entire process.

    A) I have a backup.
    1. Download GPT files (get).
    2. Flash GPT files using FH_Loader (Part C).
    3. Flash the necessary partitions using FH_Loader (Part D) or restore partitions using "Partition Manager". ONLY USE YOUR BACKUP FILES.
    4. Close "Partition Manager" wait for about 5 seconds then press and hold Vol- and Power for 10 seconds.
    5. After restart quickly release buttons and press and hold Vol+ to get into "Download Mode".
    6. Flash any KDZ but use instruction in this thread (Part C) to avoid "OPID Mismatched Error".

    B) I have no backup.
    Ba) I was not on Sprint or ATT last time before hard brick.

    1. Download GPT files (get).
    2. Flash GPT files using FH_Loader (Part C).
    3. Flash the necessary partitions using FH_Loader (Part D). You need to extract and use the necessary partitions from the same KDZ which you had flashed on the phone last time before hard brick or it may not work.
    4. Close "Partition Manager" wait for about 5 seconds then press and hold Vol- and Power for 10 seconds.
    5. After restart quickly release buttons and press and hold Vol+ to get into "Download Mode".
    6. Flash any KDZ but use instruction in this thread (Part C) to avoid "OPID Mismatched Error".

    Bb) I was on Sprint or ATT last time right before hard brick.
    1. Download GPT files (get).
    2. Flash GPT files using FH_Loader (Part C).
    3. Flash all the partitions using FH_Loader, just side a, extracted from any KDZ (Part E). To test your luck, extract and use the necessary partitions of an A10 KDZ.
    4. Close "Partition Manager" wait for about 5 seconds then press and hold Vol- and Power for 10 seconds.
    5. After restart quickly release buttons and press and hold Vol+ to get into "Download Mode".
    6. Flash any KDZ but use instruction in this thread (Part C) to avoid "OPID Mismatched Error".

    C) Flashing GPT Files.
    1. Move GPT files to the "bin" folder in QPST installation folder.
    2. While you are in "bin" folder, open CMD there.
    Note: Remember you need to have "Partition Manager" opened.
    3. Find the port number of the phone from "Device Manager".
    4. Add the the number (port number) right after "fh_loader.exe --port=\\.\com" in the following codes.
    4.1. For example, mine is "3" so it would be "fh_loader.exe --port=\\.\com3".
    fh_loader.exe --port=\\.\com --sendimage=LUN0.bin --start_sector=0 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=LUN1.bin --start_sector=0 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=LUN2.bin --start_sector=0 --lun=2 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=LUN3.bin --start_sector=0 --lun=3 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=LUN4.bin --start_sector=0 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=LUN5.bin --start_sector=0 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=LUN6.bin --start_sector=0 --lun=6 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs
    5. Modify the codes and use them in the CMD.
    6. If anything goes wrong you may get the "error" message instead of "done" message.

    D) Flash The Necessary Partitions.
    Note: Necessary partitions are the ones that make the phone capable of turning on and going to Download Mode.
    abl_a
    akmu_a
    aop_a
    cmnlib_a
    cmnlib64_a
    devcfg_a
    dsp_a
    dtbo_a
    hyp_a
    keymaster_a
    laf_a
    power
    tz_a
    uefisecapp_a
    vbmeta_a
    xbl_a
    xbl_config_a
    1. Move files to the "bin" folder in QPST installation folder.
    2. While you are in "bin" folder, open CMD there.
    Note: Remember you need to have "Partition Manager" opened.
    3. Find the port number of the phone from "Device Manager".
    4. Add the the number (port number) right after "fh_loader.exe --port=\\.\com" in the following codes.
    4.1. For example, mine is "3" so it would be "fh_loader.exe --port=\\.\com3".
    fh_loader.exe --port=\\.\com --sendimage=power.img --start_sector=32008 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=xbl_a.img --start_sector=6 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=xbl_config_a.img --start_sector=902 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=aop_a.img --start_sector=6 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=tz_a.img --start_sector=134 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=abl_a.img --start_sector=66826 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=dsp_a.img --start_sector=67082 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=keymaster_a.img --start_sector=83466 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=akmu_a.img --start_sector=83594 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=cmnlib_a.img --start_sector=108298 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=cmnlib64_a.img --start_sector=108426 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=devcfg_a.img --start_sector=108554 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=laf_a.img --start_sector=108606 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=vbmeta_a.img --start_sector=120894 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=dtbo_a.img --start_sector=120910 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=uefisecapp_a.img --start_sector=127054 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs
    5. Modify the codes and use them in the CMD.
    6. If anything goes wrong you may get the "error" message instead of "done" message.

    E) Flash All Partitions.
    1. Move files to the "bin" folder in QPST installation folder.
    2. While you are in "bin" folder, open CMD there.
    Note: Remember you need to have "Partition Manager" opened.
    3. Find the port number of the phone from "Device Manager".
    4. Add the the number (port number) right after "fh_loader.exe --port=\\.\com" in the following codes.
    4.1. For example, mine is "3" so it would be "fh_loader.exe --port=\\.\com3".
    fh_loader.exe --port=\\.\com --sendimage=mpt.img --start_sector=6 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=drm.img --start_sector=8198 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=p_persist_lg.img --start_sector=11782 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=sns.img --start_sector=11782 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=ssd.img --start_sector=15366 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=persist.img --start_sector=15368 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=misc.img --start_sector=23560 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=ftm.img --start_sector=23816 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=power.img --start_sector=32008 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=encrypt.img --start_sector=43272 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=eksst.img --start_sector=43400 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=rct.img --start_sector=43528 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=fota.img --start_sector=43656 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=srtc.img --start_sector=46216 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=pstore.img --start_sector=48264 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=els.img --start_sector=48776 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=operatorlogging.img --start_sector=52872 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=eri.img --start_sector=56968 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=carrier.img --start_sector=59016 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=persdata.img --start_sector=71304 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=metadata.img --start_sector=87688 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=vendor_a.img --start_sector=91784 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=system_a.img --start_sector=962184 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=product_a.img --start_sector=2926216 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=OP_a.img --start_sector=3974792 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    ---------------------LUN1
    fh_loader.exe --port=\\.\com --sendimage=xbl_a.img --start_sector=6 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=xbl_config_a.img --start_sector=902 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    ---------------------LUN4
    fh_loader.exe --port=\\.\com --sendimage=aop_a.img --start_sector=6 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=tz_a.img --start_sector=134 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=hyp_a.img --start_sector=1158 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=modem_a.img --start_sector=1290 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=mdtpsecapp_a.img --start_sector=57610 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=mdtp_a.img --start_sector=58634 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=abl_a.img --start_sector=66826 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=dsp_a.img --start_sector=67082 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=keymaster_a.img --start_sector=83466 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=akmu_a.img --start_sector=83594 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=boot_a.img --start_sector=83722 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=cmnlib_a.img --start_sector=108298 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=cmnlib64_a.img --start_sector=108426 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=devcfg_a.img --start_sector=108554 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=qupfw_a.img --start_sector=108586 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=laf_a.img --start_sector=108606 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=vbmeta_a.img --start_sector=120894 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=dtbo_a.img --start_sector=120910 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=uefisecapp_a.img --start_sector=127054 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=imagefv_a.img --start_sector=127566 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=raw_resources_a.img --start_sector=128078 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=core_nhlos_a.img --start_sector=130126 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=sid_a.img --start_sector=173646 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    ---------------------Common

    fh_loader.exe --port=\\.\com --sendimage=secdata.img --start_sector=347542 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=devinfo.img --start_sector=347549 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=dip.img --start_sector=347550 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=apdp.img --start_sector=347806 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=msadp.img --start_sector=347870 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=spunvm.img --start_sector=347934 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=splash.img --start_sector=349982 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=toolsfv.img --start_sector=358339 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=logfs.img --start_sector=358595 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=cateloader.img --start_sector=360643 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=logdump.img --start_sector=361155 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=storsec.img --start_sector=377539 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=multiimgoem.img --start_sector=377571 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=multiimgqti.img --start_sector=377579 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=uefivarstore.img --start_sector=377587 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=catefv.img --start_sector=377715 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=catecontentfv.img --start_sector=377843 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    fh_loader.exe --port=\\.\com --sendimage=last_parti_after_catecontentfv.img --start_sector=378099 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs
    5. Modify the codes and use them in the CMD.
    6. If anything goes wrong you may get the "error" message instead of "done" message.


    Note: LUN files I provide have ".bin" extension and other files should have ".img" extension, otherwise you need to modify the codes.
    2
    the partitions which carry imei / s/n are ftm, fsg, modem, modemst1 and modemst2.
    FTM is a temp place and its data are regenerated after flashing the phone. Changing IMEI in FTM will not change the phone IMEI.
    FSG is the backup of Modemsts. Repairing IMEI process can alter Modemsts but not FSG.
    LG has put a new lock in NVM to prevent identity data from getting changed. In addition, the bridge to Modemsts is Modem partition which carry another lock called IMEIPROT.
    When we erase all partitions, NVM is cleared but IMEIPROT still exists in Modem. The only way to rewrite IMEI is to modify Modem by removing IMEIPROT. However, losing NVM will awake another lock which prevents Modem from detecting Sim, resulting in the error "this phone is permanently locked" even after rewriting IMEI.
    2
    it appears this error:
    17:14:55: INFO: 3. Calling fopen('C:\Program Files (x86)\Qualcomm\QPST\bin\port_trace.txt') with AccessMode='w'


    _____
    | ___|
    | |__ _ __ _ __ ___ _ __
    | __| '__| '__/ _ \| '__|
    | |__| | | | | (_) | |
    \____/_| |_| \___/|_|


    17:14:55: {ERROR: Calling fopen with with access mode 'w' on 'C:\Program Files (x86)\Qualcomm\QPST\bin\port_trace.txt was NOT successful' }

    ERROR: Could not append to 'port_trace.txt'

    Log is 'C:\Program Files (x86)\Qualcomm\QPST\bin\port_trace.txt'

    SORRY FIXED I HAVE TO GIVE ADMIN ACCESS IN PROPERTIES
    EXACTLY I HAVE TO PUT .\fh_loader.exe
    2
    So, I bricked my LM-850UM...yeah, I know.
    I downloaded (3) different KDZ files, extracted them and the DZ files.....
    I did not find the files needed to restore to "download" mode - and my partitions don't "line up" any longer.
    Does anyone have, or know how to retrieve, the partition imgs noted in the "Spoiler" for Step D?
    abl_a, akmu_a, aop_a.....etc

    Update - I did find the files I needed...they are attached. Phone is now it download mode.
    2
    thanks, already flashed my g8att. aop file took from 8x. i have backup qfil for g8 att,I can share, g8at. for 10 android https://drive.google.com/file/d/1GjH0SLFge-kg72D5UoKMJw2kuN70FSKP/view?usp=sharing