[LG G8 Guides, News, & Discussion] netmsm:
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".

Spoiler content hidden.

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.

Spoiler content hidden.

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".

Spoiler content hidden.

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".

Spoiler content hidden.

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.