yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
How did you fix the hard brick? i didn't found any solution i also ask to tmob to give me the firehose file...but of course they didn't give me...

for the process of the cable i understand that when lgup start to flash laf you have to watch the process, after laf finish and you see the write system you have immediatly to remove the cable...but i think it's hard to understand this on the first root..btw we hope someone found a solution for hard brick lg g5-g6 and v20 because we are a lot of user and lg smile on this..because they involve people to pay and buy new motherboard and mobile..and this is bad..chapeu to samsung never buy again a lg..happens with my old g3 g5 and now also with g6..with samsung even hard brick i was always able to go back...
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
The 872 TWRP in the root method is actually TWRP for the 870. Are you asking if you can use flash image from TWRP while booted into the laf TWRP, yes you can.
[T-Mobile LG G6 Guides, News, & Discussion] romavrv:
G6 root

My phone was froze at the end in step 2 "light recovery on the screen" and no answer for any button combinations. After the phone has been discharged, it is turned off. I charged phone and was able to enter the recovery. Then I went to step 3 and it ended successfully with root
[T-Mobile LG G6 Guides, News, & Discussion] rc420head:
Exactly what I'm asking, I want to flash a real H872 twrp to recovery partition via the laf h870 twrp installed during the root process. Right now we can't flash H872 custom roms (without modifying the zip) because twrp thinks it's a H872. Thank you for your reply.
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
Understood. I haven't had the time to build TWRP for the 872 yet. I should have one out in the coming days. Unless you happen to know where one exists
[T-Mobile LG G6 Guides, News, & Discussion] rc420head:
[MENTION=4662457]Rashed97[/MENTION] said he would whip one up just have to get him a stock boot.img when I get home
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
Ive got the source all together but if you just need a boot.img I'll pull it and upload it

Boot.img

https://drive.google.com/file/d/1uaQm0mKqRkrYz33D0CULeccQhHVn3EWl/view?usp=drivesdk
[T-Mobile LG G6 Guides, News, & Discussion] slayer3032:
Except that I can't mount system because it won't let me check the box unless I mount it as read only because the device or resource is busy. Magisk flashes but spits out an error that the it can't mount system.

I had tried booting from LAF TWRP into recovery TWRP but that didn't work either so I tried LAF again, then booted back into system to see if root worked and it didn't. So I booted back to LAF TWRP and tried again and still nothing.

I haven't tried again to check if recovery TWRP works but I was unable to delete the backup image in system. I imagine I would brick my phone if I were to try since download mode is now gone and stock recovery might frag TWRP and everything else.

---------- Post added at 04:32 PM ---------- Previous post was at 03:55 PM ----------

I tried formatting it a couple more times, wiping, rebooting, pretty much everything. I can't get write access to system with TWRP.
[T-Mobile LG G6 Guides, News, & Discussion] igorya79:
please take a screenshot, and explain more,* where to pull the cable.

otherwise many people will spoil their phones.
[T-Mobile LG G6 Guides, News, & Discussion] slayer3032:
I pulled my cable as soon as it moved from LAF to XBL, it was only a few seconds into the flash really. The progress bar has text on it so I figured you pull it when it no longer says LAF.
[T-Mobile LG G6 Guides, News, & Discussion] The_Anomalist:
If u can boot to twrp on laf keep resarting it, u will eventually be able to mount /system thays what happened to me
[T-Mobile LG G6 Guides, News, & Discussion] slayer3032:
I've tried literally at least 30 or 40 times, I've been doing this for the last 45 minutes straight and it's the same exact thing over and over.

I reflashed TWRP over my recovery partition so I can continuously reboot into the recovery partition instead of powering down and going into LAF over and over.

It's not working, I thought about wiping system and restoring a backup over it but there's no roms to flash if something goes bad.

Did this take you a few hours or something? Like ball park did you reboot a hundred times or so?
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
If someone is interested and is on my same position i open this thread for make the think more easy

https://xdaforums.com/tmobile-g6/how-to/reward-donation-hard-brick-lg-g6-h872-t3776163
[T-Mobile LG G6 Guides, News, & Discussion] MudaTrucka:
I requested a twrp build from twrpbuilder and here it is https://basketbuild.com/filedl/devs...roidlover5842/lucye/recovery_lucye-110418.img
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Yeah I messaged them. We'll see what happens but as of now this root method is broken until OP can fix it.
[T-Mobile LG G6 Guides, News, & Discussion] immns:
do you familiar with git? I've checked that h872 brach is active. you can try to pull manualy from source
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Yeah I use git but just for pulls and commits on master branches. I think I'll try again now that I know where to pull that branch. Thank you
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Well, after trying again, this time the git checkout actually worked. not sure what the deal was the first time. Final result is root on 20a. I followed the steps on the first page of this thread and used the 20a kdz instead of 11g.

After getting TWRP on laf, I had some encryption related issues when booting into TWRP. If you get those they can be ignored. I wasted time mounting my sd card so I could manually copy over the TWRP and Magisk files so I could flash them, because if you use ./step2.sh it actually does that for you.

With TWRP on the recovery partition and magisk installed, I got a 'decryption unsuccessful' message when i tried to boot to the OS and it was forcing me to do a factory reset. For me, the standard wipe in TWRP didnt fix that. I did a wipe of dalvik/cache/data and then Format Data on the wipe screen. I am not sure if the wipe is necessary to fix the encryption issue, because wiping alone doesnt fix it. I wasnt able to boot to android until i did the Format Data.

Long story short, this procedure worked for me on 20a. Anybody wanting to do it, i would recommend doing a complete factory reset prior to starting, as that might keep you from running into the encryption issues.

Glad I finally have root. I've waited so long. Thank you everybody.
[T-Mobile LG G6 Guides, News, & Discussion] immns:
Nice!!! for TWRP, OP tells that twrp needs to be compiled with oreo kernel. If you have spare MicroSD, it's very useful right now. For backup-ing data, let's utilize lg mobile switch apps.

and also please consider to donate to [MENTION=3167089]runningnak3d[/MENTION] and [MENTION=3505796]KAsp3rd[/MENTION] so they can build new twrp for us :laugh:
[T-Mobile LG G6 Guides, News, & Discussion] Ziyab:
Glad that u made it (Y)

By the way, can you simplify the steps of rooting? It'll be highly helpful to get all the steps in one post...
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
You have downloaded an old version of FWUL, it has to be version 2.7 or later. Also the first post has been updated, so you need to read it again.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
hmm.. I dont see any changes besides the minimum FWUL version. By the way, the link to the 11g kdz is broken.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I put the steps together for 20a in a google doc. I didnt want to hijack this thread just for the 20a process.

Click here for 20a step-by-step based onrunningnak3d procedure on the first page of this thread.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
[MENTION=9374982]weakNPCdotCom[/MENTION] So you verified that you don't need to downgrade, and can directly root Oreo?

If so, do you mind if I add the additional parts from your doc to the first post (with credit ofc)?

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Yes, that is correct. I just used the stock 20a kdz file in place of 11g in your procedure. I have root and Magisk Manager installed and super user is working just fine. And no, I dont mind at all. I'm glad I could be of some help.
[T-Mobile LG G6 Guides, News, & Discussion] bl4scott:
Get it started and then fell flat:

PROCEDURE PART 1: Getting a working LAF onto your phone

By far this is the most dangerous part of this procedure.

Boot to download mode

In LG UP, choose partition DL.

Pick the H918 10p KDZ

Click start / ok

When you will be given a list of partitions to flash, only check laf -

- this is where it went wonky. No window came up allowing me to chose the partitions. Any ideas?
[T-Mobile LG G6 Guides, News, & Discussion] MudaTrucka:
I believe once you hit start it'll pop up, I could be wrong though so I'd just wait and see if someone else knows
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
You either didn't pick partition DL, or you didn't click start, or you aren't using the patched LG UP linked in the 1st post.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] Ziyab:
Hey thanks a bunch mate... I'll surely give it a try, at current I'm on 11g so I have to update the firmware to 20a then do all the steps...

What about h872 roms?
[T-Mobile LG G6 Guides, News, & Discussion] IsaiahRector:
Will this work on the root h87220a 8.0 update?
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
What do you mean the root h87220a 8.0 update? If you accept the T-Mobile Oreo System Update and your phone is then on 20a you can root using the steps in the previous post.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I just found this thread posted 8/12. unofficial 3.2.3 TWRP for h872 Oreo.

Edit: I booted to download->twrp and flashed it to recovery and it works. No mounting issues on 20a. It even provides options to backup laf/download and several additional partitions.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I have updated this document with the option to manually flash TWRP 3.2.3 Alpha for Oreo and Magisk 16.4 at your own risk.
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
I try the method and it fails on hash verification, try 5 times and stops the loop. LGUP couldn't detected download mode. So I have the brilliant idea to open and unplug the battery. I'm without laf now and wont boot. It stays on LG logo.

[MENTION=3167089]runningnak3d[/MENTION]

Is there a command to restore the original laf partition with partition.py?

I have another one that it fail again, but I can detect in USB VBOX. Is there a way to save this one or is dead as well?

Thanks in advance!
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Nope. If you can't get your phone to boot, and you lost download mode, you are pretty much SOL.

I can tell you this, no part of this would prevent your phone from booting. If you messed up and let the H918 KDZ flash more than just laf, you would have a TOTAL brick.

Also, if you were getting hash failures, the ONLY changes that were made to your phone were to the lafbak partition which isn't used. Only when a hash match is achieved does it copy from lafbak to laf, and if that would have happened, you would have TWRP on laf.

So, I am not sure if you followed some old guide, or tried to use a version of TWRP that wasn't supported. Either way, this is 100% completely safe *except* for getting H918 laf onto your phone, and again, that either works, or results in a brick if you miss pulling the cable and / or flashing the H872 KDZ minus laf afterwards.

EDIT: you may be able to sideload an update.zip if you still have stock recovery, and you can find some nice person to get you one. They would need to downgrade to 11g, and then allow the file to be downloaded....

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
It boots, but no laf and stops at LG logo.

No, I pull the cable after laf.

I think I have ignore the lafbak from H872...

I have access to key combination, but doesn't go any where after factory restore.
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
I can boot to O.S. but don't have access to download mode. Any way to recover from that?
[T-Mobile LG G6 Guides, News, & Discussion] Josh McGrath:
Ignore . Wrong quote
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
Its on 11G ( H872 )

Boot one time to download mode, but didn't let me restore with LGUP.

---------- Post added at 11:31 PM ---------- Previous post was at 11:29 PM ----------

How can I sideload a ZIP in recovery? No device detected...

---------- Post added at 11:42 PM ---------- Previous post was at 11:31 PM ----------

Error: 0X2000, FAIL cmd SIGN

I'm done for today! F**k up 3 phones with this. Don't know. Maybe LGUP kill them ...

- flash laf from H918, pull the cable

- restore all partitions except laf

- mishmash partition ( the third didn't when to root and yet was stuck on download as well )

- restore with LGUP and get the FAIL warning
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
You are getting a FAIL cmd SIGN because you have the H918 laf and you are trying to restore an H872 KDZ.

Since you have the H918 laf. Finish the process. All you have to do is boot to download mode, and run step1.sh
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
" . Select all partitions except laf. If you forget to uncheck laf, you will have to do this all over again. "

Yes, but why I can't restore the laf with the original one when I have the chance?

I can't finish the process, I don't have laf partition.

- one boots to O.S. still with unlocked bootloader, but no laf ( key plus cable or reboot mode )

- other doesn't boot at all, no download or fastboot mode. It shows the battery icon and no process on charging

- the third, its stuck on download mode
[T-Mobile LG G6 Guides, News, & Discussion] Josh McGrath:
On the third, if it's stuck on download mode, why not just flash with LGUP with the factory kdz?

Plug the second one in and see if your computer recognizes it as Qualcomm 9008 mode. If so, it's either a warranty or a fix from an online store that just recently started to be able to fix 9008 bricks with this and even the g7 model. (I think with the octopus box or something)

On 1st issue of going to the OS, you have to find a zip file with the laf for flash-all I think. I don't have this phone so I'm not sure, but I think someone posted the zip on XDA or this thread
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
I try when I have the download mode, but it gives Error: 0X2000, FAIL cmd SIGN

Showing normal modem LG

I can search but don't know what to look for...
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
So, I have LG USB modem recognise ( phone with battery icon )

View the code and try ./partitions.py --restoremisc h872-twrp.img lafbak

Without USB conection on VBox:

Traceback (most recent call last):
File "./partitions.py", line 459, in <module>
main()
File "./partitions.py", line 406, in main
comm = lglaf.autodetect_device()
File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device
return USBCommunication()
File "/home/android/programs/lglafsploit/lglaf.py", line 299, in __init__
raise RuntimeError("USB device not found")
RuntimeError: USB device not found

With USB connection on VBox:

Traceback (most recent call last):
File "./partitions.py", line 459, in <module>
main()
File "./partitions.py", line 409, in main
lglaf.try_hello(comm)
File "/home/android/programs/lglafsploit/lglaf.py", line 401, in try_hello
data = comm.read(0x20, timeout=HELLO_READ_TIMEOUT)
File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read
buff = self._read(need, timeout=timeout)
File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read
array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)
File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read
self.__get_timeout(timeout))
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read
timeout)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read
_check(retval)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
[MENTION=5566659]b8engl[/MENTION] You can NOT use VirtualBox -- you MUST boot from the USB stick. The USB timing is super critical. So if your USB bus and cable aren't perfect -- and you are going through an emulation layer, then you will get the error you are seeing above, and you will never get a hash match.

I stated very clearly in the first post that booting from the USB stick was absolutely mandatory.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
I tought that to when I look at my USB HUB.

I know, but I use this way before on other times with --dump misc and didn't have any issues.

I have access, I will try and post results...
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
[MENTION=9374982]weakNPCdotCom[/MENTION] I have updated the repo so that it has TWRP 3.2.3 from [MENTION=5687366]Eliminater74[/MENTION]. Also, I have added you as a contributor so you can edit the first post.

Since you actually own a G6, feel free to make whatever changes you like. If a new version of TWRP comes out, just mention or PM me, and I will throw it in the repo.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
I'm stuck download mode

I followed the method to the letter by executing the command step1.sh it fails on hash verification, try 5 times and stops the loop

I'm stuck download mode

Does anyone help me?
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
Don't disconnect from download like I did! Create a USB bootable FWUL and try again.
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
I'm going to try

Thank you
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
Is anyone able Installing TWRP after Last Updated the repo (22.08.2018)
[T-Mobile LG G6 Guides, News, & Discussion] chibichuba:
Spent many hours trying to downgrade from 20a to 11g and then I rooted from there, when it turns out a week later you guys figure out that you don't need to downgrade :D
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
if I update OTA to oreo 8.0, it will repair the recovery mode
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
I just pushed a version with debug output. Can you copy / paste the output that you get when you run step1.sh.

Since I don't own a G6, I am not able to test it, so I rely on you guys.

Do a

git pull

to pull down the latest code.

What I did do was test in FWUL by copying the h872-twrp.img to h872-twrp-tmp.img so that the script would run exactly as if a successful dump from lafbak occurred. It ran without issues.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
The first attempt timed out, then the other attempts got bogus data.

Are you sure you flashed H918 laf?

If so, you really have a problem with you USB port, or cable.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
how can i recover download mode 11g laf

---------- Post added at 09:08 PM ---------- Previous post was at 09:07 PM ----------

I flashed H918 laf

---------- Post added at 09:41 PM ---------- Previous post was at 09:08 PM ----------

if I update ota 8.0 i recover download mode?
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Yes, taking the OTA will restore download mode.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
Thanks I will try
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
I don' get it!

For some reason I was able to get in download by pressing the key and insert the cable. I have manage to restore the two phones, but when I start the process ( unlock bootloader, flash h918p laf pull cable, restore all except laf h872 ) I lose download. The phone starts up, boot to the O.S. but can't get in to download with key and cable combination. If I do adb reboot-bootloader it will go to fastboot.

[MENTION=3167089]runningnak3d[/MENTION] is there a way to go to download mode?
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
[MENTION=5566659]b8engl[/MENTION] What makes you think that you aren't in download mode? If you are talking about the screen not showing -- it may not since the H918 kernel probably can't init the H872 screen. However, if you follow this procedure, you most definitely ARE in download mode, you just need to press on -- ignore what is on the screen.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
forum error - double post
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
I was able to solve my problem

I was able to connect to lgup to restore the smartphone

Plug in your device (Make sure it is in File transfer mode.)

runningnak3d add the following statement or guide Plug in your device (Make sure it is in File transfer mode.)
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
It boots up, only shows warning about unlocked bootloader and then goes to a battery charging screen. After that, the screen goes black. In device manager can't detect LG modem or any COM port.

---------- Post added at 03:46 PM ---------- Previous post was at 03:31 PM ----------

Yup! That do the trick to go into download mode. Thanks!
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
pleased to have been able to help you
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
[MENTION=3167089]runningnak3d[/MENTION] Why five attempts ( RETRIES=5 )?

Flashing... this will take a while.
Size of TWRP: 28467200
Count for the dd trim: 27800
Flashing TWRP to lafbak. Please wait...
Traceback (most recent call last):
File "./partitions.py", line 459, in <module>
main()
File "./partitions.py", line 409, in main
lglaf.try_hello(comm)
File "/home/android/programs/lglafsploit/lglaf.py", line 401, in try_hello
data = comm.read(0x20, timeout=HELLO_READ_TIMEOUT)
File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read
buff = self._read(need, timeout=timeout)
File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read
array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)
File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read
self.__get_timeout(timeout))
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read
timeout)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read
_check(retval)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
Dumping lafbak for hash check...
[ 100 % ] 2018-08-24 15:42:48,217 partitions: INFO: Wrote 50331648 bytes to h872-twrp-tmp.img
Trimming trailing zeros
27800+0 records in
27800+0 records out
28467200 bytes (28 MB, 27 MiB) copied, 0.070737 s, 402 MB/s
Temp file size: 28467200
Checking hash...
TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae
Test dump hash: S188a6728a3681d0e8c11f46774ff873e8ec4f6601daf6579388e44c34287b3df

Hash check failed! Retrying for 5 times.

Attempt 1 - Press ctrl C to break
Flashing TWRP to lafbak. Please wait...

It stops here, and doesn't loop. Is this normal?

---------- Post added at 05:07 PM ---------- Previous post was at 04:59 PM ----------

lafbak must be from H872 or not?
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
Plug in your device (Make sure it is in File transfer mode.)

and try again
[T-Mobile LG G6 Guides, News, & Discussion] b8engl:
I'm not there, this is in download mode.
[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
Leave the battery discharged