yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 Guides, News, & Discussion] WindowsDOS:
Now that my smashed phone arrived I've been able to flash the laf successfully. However, step1 and step2.sh don't seem to be working right. I'm on 11g currently, but two things are going wrong. On step 1 it exited after 5 attempts saying it couldn't get a hash match. Somehow my phone still ended up with twrp after I unplugged the cable. When trying step 2, I get the following output. I can clear cache and dalvik from within twrp, and it says it flashes magisk, but it's not able to lock it. It seems booting into the os resets the recovery. Basically, I'm able to run step 2 but in the end after rebooting I have no twrp, no magisk, and no root.

Any advice?

[android@fwul lglafsploit]$ ./step2.sh

Make sure your phone has full booted into TWRP.

Press any key to continue... Rooting your phone. It will reboot back into TWRP.

Don't do anything until your phone has booted back to the OS.

Unmounting data

umount: can't umount /data: Invalid argument

umount: can't umount /sdcard: Invalid argument

Formatting data

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

1476960 inodes, 5902336 blocks

295116 blocks (5%) reserved for the super user

First data block=0

Maximum filesystem blocks=8388608

181 block groups

32768 blocks per group, 32768 fragments per group

8160 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000

Mounting data

Mounting system r/w

Installing TWRP onto recovery

h872-twrp.img: 1 file pushed. 23.2 MB/s (28467200 bytes in 1.173s)

55600+0 records in

55600+0 records out

28467200 bytes (27.1MB) copied, 4.798089 seconds, 5.7MB/s

Making sure recovery sticks

rm: can't remove '/system/recovery-from-boot.p': No such file or directory

Rooting your phone!

Your phone will reboot back into the OS once rooted.

Magisk-v16.0.zip: 1 file pushed. 20.9 MB/s (5591123 bytes in 0.256s)

Rebooting. Do NOT shut off your phone until it is back in the OS.

Enjoy your rooted phone!

You should really install Magisk Manager now.

[android@fwul lglafsploit]$
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
[/COLOR]
[T-Mobile LG G6 Guides, News, & Discussion] WindowsDOS:
I couldn't get the manual way to work. However, I did manage to flash lineageOS and use flashify to get twrp on recovery. I had intended to get lineage at some point anyways. Unfortunately it's super glitchy. I'll see what people say in the lineage thread on XDA
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I'm no expert but I would think that now that you've got it on recovery you should be good to go. I've never played with lineage myself personally. I'm trying to figure out how you were able to use Flashify without root though. Maybe it went through the twrp on laf?
[T-Mobile LG G6 Guides, News, & Discussion] RashaMatt:
Ken, can you summarize how we can reproduce your result? I assume your TWRP is able to do backups, etc, because /data is no longer encrypted.

I don't know which "patched kernel" this is, or how I would flash it.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Look in here. It's too early for me right now but that thread should tell you in a more involved (better explained) method. Take the patched kernel it'll be listed in the files. That should fix it, but you may need to format data after that anyways. I did. Also I noticed in magisk if you got it right you'll see both tick boxes on magisk main page not ticked. That seems to be the indicator for it. It's the dm-verity & force encrypt that's doing it I believe. That op's work should take care of it. Read the thread in in there with the same issues. I picked that thread because of the version your on but I think it would apply to all versions (don't quote me on that) https://xdaforums.com/showthread.php?t=3848254
[T-Mobile LG G6 Guides, News, & Discussion] WindowsDOS:
LineageOS doesn't have the custom recovery removal script like what the stock OS has. I was able to flash Lineage and keep root successfully which allowed me to get flashify after booting. I'm not running into the problems I was before as often now. I'm not sure why. Either way seems I found a way to get things working in the end. Thank you for the help. I'll update later if I find out why things weren't working for me the way they were supposed to. I wouldn't be surprised if I misread something.
[T-Mobile LG G6 Guides, News, & Discussion] RashaMatt:
Well this is embarrassing.

Turns out I already had what I was looking for - a non-encrypted system.

I think I misinterpreted something I read to mean that the disk-encrypted problem was unavoidable, but I just followed the regular rooting procedure (including reformatting /data) and it's all good. TWRP backup worked fine (haven't tried restoring it though).
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Some get the issue and some don't. I had it ridiculously so
[T-Mobile LG G6 Guides, News, & Discussion] STALKER18:
feweeee lol ?

I just done from every thing and it worked :D

H872 running 8.1 20f
[T-Mobile LG G6 Guides, News, & Discussion] aquinoer:
I was just wondering if I could use the same root method if I'm on h8720f or I have to change some stuff to make it work??
[T-Mobile LG G6 Guides, News, & Discussion] sends72:
Lost download mode in last step in part 1 . I tried h972 10g 10f and 20a I lost download mode in all of them any fix for that? Thanks.
[T-Mobile LG G6 Guides, News, & Discussion] Fredyhn504:
Help me

Hi guys, nice to say hello, I need your help, my G6 model is H872 20f and when I try flash twrp it gives me the following error

failed (remote: uknown command)

I have the bootloader unlocked and active debugging, if someone helps me in advance thanks and one more question, does this method work for my G6 H872 20f model?
[T-Mobile LG G6 Guides, News, & Discussion] amingdev:
20f kdz

Thats great that it works on 20f. I was just planning to root mine as well and i was wondering if i could use the same method for 20f. Could you please send the link for the 20f kdz?
[T-Mobile LG G6 Guides, News, & Discussion] aquinoer:
I got you :cool:

https://lg-firmwares.com/downloads-file/17063/H87220f_00_1114.kdz
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Here's a thought and haven't heard anybody mention it yet. What if during the flash of the kdz file we don't choose the options (recovery etc) that would screw with the current set up? Could we flash the remainder of the kdz and retain root without having to go through the whole process again?

In my head it makes sense.
[T-Mobile LG G6 Guides, News, & Discussion] leunamme9:
I just saw from a lg v20 thread that they already fix their brick phones from 9008 and they already have the firehose needed, hope we'll get the specific one for our g6
[T-Mobile LG G6 Guides, News, & Discussion] zimmerma379:
Dodged Bullet/Brick with NYD Miracle!

I think I came close to bricking my new G6 here, but by some NYD miracle it all worked out! This was the most complex LG Gn root method I’d ever encountered and I was a bit nervous. But I prepared well, and it started off just fine...

I got the H91810p LAF onto my G6 [H87220f], booted FWUL, entered Download Mode, and executed step1.sh. But here’s where things went wrong. Got exception traceback – USB errors. Oh no! To summarize, here’s what I tried:

With PC #1, USB port #1, and USB cable #1: This was the initial attempt where I encountered the step1.sh exception traceback as noted above. G6 may not have even been recognized by FWUL. Unplugged G6. Could NOT exit Download Mode so set G6 aside. Shutdown FWUL.

With PC #1, USB hub connected to USB port #2, and USB cable #2: Encountered step1.sh exception traceback with USB errors again. But there was some improvement this time– the G6 was recognized by FWUL and the USB errors were NOT always occurring immediately. In fact, one or two of the TWRP->LAFBAK writes completed. But the hash checks would ALWAYS FAIL and step1.sh would exit. Time to try a different PC. But this time I left the G6 CONNECTED during the FWUL shutdown. And this time the G6 powered OFF.

With PC #2: Booted FWUL and entered Download Mode on G6. OMG!...what do you know…TWRP (eventually) appeared! How the hell did this work? Well, all I know is my phone is saved and I can complete the rest of the rooting process in this TWRP session!​

Now I know it would appear that one of those 5 retries in the second attempt on PC #1 succeeded where step1.sh successfully completed and powered off my G6, TWRP was successfully copied to LAF, and entering Download Mode for the PC #2 attempt booted TWRP from LAF. But I swear

EVERY

time I ran step1.sh it

FAILED

the hash check, attempted the 5 retries unsuccessfully, and finally exited.

So how did this end up working? Could shutting down FWUL with the G6 USB-attached have caused it to power OFF? And could the subsequent G6 Download Mode boot have detected a mismatch between LAF & LAFBAK and therefore copied LAFBAK [TWRP] to LAF? (BTW, how/when are “bak” partitions used?)

Oh well, I guess I’ll have to let the mystery be and just be glad I did NOT brick and have a rooted G6 now! MANY THANKS to those who created this H872 root process!
[T-Mobile LG G6 Guides, News, & Discussion] GameTesterDev:
Does this work on H872g?? Anyone test yet?
[T-Mobile LG G6 Guides, News, & Discussion] segabod:
I followed every step all the way to the end of part 1, at the commencement of part 2, my phone got stucked in download mode with 5dots. pls any info to the this fix will be highly appreciated.
[T-Mobile LG G6 Guides, News, & Discussion] aquinoer:
has anyone tried to do this on Virtualbox?
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
if you mean h87211g, yes

that is normal. just continue the process.

there are instructions for using FWUL on virtualbox, but [MENTION=3167089]runningnak3d[/MENTION] strongly recommends that you do not do this.

it's really easy to burn it to a usb stick and boot. if you are having problems booting on your pc, you may need to go into the bios and disable secure-boot and use legacy boot options
[T-Mobile LG G6 Guides, News, & Discussion] segabod:
Thanks [MENTION=9374982]weakNPCdotCom[/MENTION], but the challenge is, the phone is not powering off nor rebooting, just stucked at Download Mode with 5 dots, so no way to even repeat the process.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
After running step 1, download mode does not load like it does when stock. it will display the dots on the screen like it's starting dl mode but it will stay on that screen. that is normal after reaching that part of the procedure. you just need to continue following the steps
[T-Mobile LG G6 Guides, News, & Discussion] segabod:
[MENTION=9374982]weakNPCdotCom[/MENTION]: Thanks , i will try it and get back to you. Appreciate that bro.
[T-Mobile LG G6 Guides, News, & Discussion] likith012:
Could not install TWRP in recovery partition

Hi,

I was able to finish up to part 2 i.e, installing TWRP in laf, but when I try to install TWRP to recovery using an SD Card since my firmware is 20f, the TWRP in laf could not find the image file of the TWRP, only .zip files are visible.

My main motive here is to install a custom ROM here, so if I proceed to flash ROM using TWRP in laf, should I be using custom ROM's specified for T-mobile lg g6 with firmware 20f or do I have the freedom to choose any ROM for LG G6. Or can you please provide any links for ROM for LG G6.
[T-Mobile LG G6 Guides, News, & Discussion] mustafeezz:
What is difference between LG H872TN and LG H872KB? Which KDZ should I use? :confused:
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
H872TN vs H872BK

I could be wrong, but I think the TN and BK might stand for the color of the device?

As long as you get the TMO kdz they should be the same.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I may be wrong but I do believe you'd need a rom that matches with your device. So double check first but I do think they're device type specific
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
in twrp on the install screen there is a button that toggles images/zips. in its default state, the button should read "install image"

tap that and your .img files will show up
[T-Mobile LG G6 Guides, News, & Discussion] JRTF04:
Help, possible brick

Hello

I followed all the steps but when I get to the second part, the phone goes into download mode, I execute the commands and when the phone ends it goes off and does not turn on anymore, its a brick?

when I connect the phone to the computer it appears on COM ports like "LGE AndroidNet USB Serial Port"

the phone version was 20a

I tried another phone with version 11g and everything went perfect, what did I do wrong? :rolleyes:
[T-Mobile LG G6 Guides, News, & Discussion] mustafeezz:
I booted into bootloader with adb command and then computer doesn't detect my phone. I can't use any adb command and can't use LGUP.
[T-Mobile LG G6 Guides, News, & Discussion] mustafeezz:
Is there anyone who can help?? :confused:
[T-Mobile LG G6 Guides, News, & Discussion] evaz88x:
Successfully Rooted!!! (Well, Kinda...)

LG G6 H87220f (T-Mobile), Platinum 32GB

I was able to successfully install twrp on the laf partition with LGUP but, because I do not have an sd card and really was not interested in the stock rom, rather than rooting the stock Oreo Android, I just wiped the whole system and flashed lineageOS with Sideload ADB from FWUL, then went ahead and rooted that by pushing the root zip and installing it from internal memory. I then was able to install twrp on recovery also from internal memory (as encryption was no longer in operation).

THANK YOU!!!! I've been wanting to do this for a while now and was scared as hell, but I researched and prepared well and really can't believe I accomplished it.

I am happy with my Ungoogled Android LG G6 smartphone! ;)

*I had to create a user account on this forum just to write this post and share my success in "rooting" or unlocking and flashing a custom rom on my LG G6 H872 (T-Mobile).
[T-Mobile LG G6 Guides, News, & Discussion] Sld_Ultra:
So, I can't get Google PlayStore to work on Aosp Extended (AEX rom) v5.8. Yet works fine on AEX v5.5 or v5.6. The PlayStore download and updates everything slow or just don't download. Strange I get the same problem on AquariOS as well with PlayStore not working correctly. WiFi is working as I can go on YouTube, use Chrome, and download. I've been doing the common things I find in google search to clear data & cache (both play store & play services), reboot, clear cache in recovery, disable google app, remove google account, clean flash rom again, change to Google DNS (already set in router, but did it anyways), etc. I seems a lot of people (with other devices) get this same problem when updating to Oreo, with some fixing the problem and others not.

On v5.8 I'm able to use Gcam (to use the wide angle camera) and my mobile data is a lot more stable than on AEX v5.5 and v5.6. Only issue I have is with play store downloading slow. Like I waited about 8 hours for a large app to download and only 4% was downloaded. AEX v5.5 and v5.6 are both Oreo 8.1 system and PlayStore works, so could there be something in the v5.8 that's causing the problem? I tried all the v5.8 roms that were available for download.
[T-Mobile LG G6 Guides, News, & Discussion] AL-DEv:
how to doit bro
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I don't have an answer but curious because I may be seeing the same thing.

When you update any apps again see if keeping the phone awake and the playstore in front of you changes it.

Also have you tried changing your dns settings to cloudflare? 1.1.1.1 I'm running rooted stock oreo 8.0 and am having the same behavior.

Changing the dns settings to those seems to have made the apps dl faster but still requires the playstore to be open and in front.

I have a theory but I'm not sure. Are you using any magisk modules that would affect Google services? I'm thinking right now that the gms doze module may have something to do with it since it screws with Google stuff running in the background.

Again totally guessing right now but your the first I've seen with the same thing I'm seeing. I want to say it's been acting up for the last month or so.
[T-Mobile LG G6 Guides, News, & Discussion] Sld_Ultra:
Actually, I that dns already set in my router and have also been doing the common things I find in google search to clear data & cache( both play store & play services), reboot, clear cache in recovery, disable google app, remove google account, and clean flash the ROM again. I tried leaving the phone awake too while downloading. But I found a temp fix that I knew I tried before, but turning off the WiFi and back on while it's downloading kicks the download speed back to normal. But only work for that one download and have to repeat it every time. Made a backup of the ROM encase the method stopped working.

I plan to get a new phone after this. I want to make a move to AOSP on the G6 for a long time now and sadly it's not working out.
[T-Mobile LG G6 Guides, News, & Discussion] evaz88x:
First of all, unfortunately, you're going to need a Windows Operating system in order to use LGUP, and then follow the steps in PROCEDURE PART 1: Getting a working LAF onto your phone.

If you're phone is 20f (H87220f), you have to download the corresponding kdz file. The kdz file for the H87220f is linked on this thread.

Once you're done with PART 1, move on to PART 2 to install TWRP onto your laf partition. You're going to have to download and install FWUL (An arch linux based Operating System) onto a usb flash drive. Follow the steps provided in PROCEDURE PART 2: Installing TWRP.

Once you have TWRP on the laf partition, you can flash a custom ROM from it. You're going to have to Google search LineageOS Rom for the H872 T-Mobile, and follow the instructions there.

What I did was download lineageos rom onto my computer and used ADB SIDELOAD to flash it from twrp. If you want root, you'll have to find the appropriate file to root LineageOS. If you google searched what I told you to, you might find a forum post with all the files and procedure included. You can perform all these operations while still on the FWUL OS.

Once you have flashed and root you custom ROM, you can go ahead and flash twrp onto your recovery partition.

Good luck!

P.S. There is a good video demonstration on Youtube. Just search root LG G6 T-Mobile.
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
late to the party.

hi gang, is anyone able to find or can anyone point me to where i can find the 20g kdz?:confused:

willing to try this method with 20g just need the kdz
[T-Mobile LG G6 Guides, News, & Discussion] Masterchief87:
Does anyone have a link to the 20e kdz? I found a link for it straight from lg but the link seemed to be dead.
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
hey, idk if you're still looking but give this link a try. Its a bit slow about 30 minutes for 2.5 gbs but it works

Actually I can't post the link. maybe I can finish the dl and google drive it to you? or can i pm the link?

Edit: I have finished the h87220e kdz dl for you, took about an hour and some change. want me to pm a drive link, im uploading it now.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I flashed that "beast" kernel yesterday just before updating some ten apps and my speeds seemed faster. It's only for stock I believe right now but may be worth looking into. Dev seems receptive to input from others.
[T-Mobile LG G6 Guides, News, & Discussion] Sld_Ultra:
Thanks for the update. I moved on to the Xiaomi Mi 8 now.
[T-Mobile LG G6 Guides, News, & Discussion] Masterchief87:
Sure. Go ahead & pm it if you don't mind. Thanks.
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
Anyone have access to the 20g kdz?
[T-Mobile LG G6 Guides, News, & Discussion] Gentleman92:
I found the link. You can find it on the same website that was linked. Are the steps the same for this version?
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
Yes they are. I actually just flashed the 20a kdz as 20g is still arb01. Now running havoc os with pleasure.
[T-Mobile LG G6 Guides, News, & Discussion] Gentleman92:
Extra help

My lg G6 h872 is on 20g and it can't read the SD card is there any other way I can root it?
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
Have you tried other SD cards?

---------- Post added at 07:37 AM ---------- Previous post was at 07:33 AM ----------

Also, someone correct me if I'm wrong, but you can still follow this procedure without an SD card. You just won't be able to flash twrp to recovery partition. Without an SD card you will have to access twrp with the laf partition by entering download mode (with phone off and USB plugged in to computer hold volume up while plugging the USB into your phone) once you're in twrp you can always sideload any zips you need.
[T-Mobile LG G6 Guides, News, & Discussion] Gentleman92:
I have tried other cards. Sim tray was stuck and I had to pull it out after which my phone stopped reading SD cards. Will I be able to use other roms with this method without flashing twrp to recovery partition?
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
Yes you should be able to. If I were you I'd get everything you want to flash and sideload it all one after the other.
[T-Mobile LG G6 Guides, News, & Discussion] MarceusLioneye:
I accidentally clicked reboot to bootloader in TWRP. The screen is now black. Do I just wait for the battery to die?
[T-Mobile LG G6 Guides, News, & Discussion] nitrosbacksh94:
Whenever you get locked up like that try holding vol down and power till the phone restarts.
[T-Mobile LG G6 Guides, News, & Discussion] Gentleman92:
I went through all the steps and it worked. However, when I installed magisk manager it says that magisk is not installed. Any ideas on what to do?
[T-Mobile LG G6 Guides, News, & Discussion] AnimusVoxx:
ok so i did everything up to flashing laf partition and i pulled the cable right after it flashed and now my phone is just black and doesnt display anything, when i plug it into my computer , it makes a sound like a device is being connected but nothing happens, can someone please help me. im not sure what to do now.
[T-Mobile LG G6 Guides, News, & Discussion] AnimusVoxx:
were you able to get your phone working properly? because im having the same issue, mine is on a black screen and ive tried vol down and power and nothing works, tried holding vol up and plugging phone in to go to download mode, nothing is working. now when i plug the phone into my computer, the computer makes a sound like its recognizing the phone but thats it.
[T-Mobile LG G6 Guides, News, & Discussion] leunamme9:
well, friend looks like you have a fancy paperweight for now. mine's bricked too and Im still waiting for a fix.
[T-Mobile LG G6 Guides, News, & Discussion] cuonghapvn:
My LG G6 is on rooted 20a now, how can I upgrade mine to the latest version (20g) ?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Go here :

https://r.tapatalk.com/shareLink?ur...share_tid=3897208&share_fid=3793&share_type=t

---------- Post added at 06:27 AM ---------- Previous post was at 06:25 AM ----------

Go back and reinstall it. I've noticed myself out not taking first time around with 18.0

---------- Post added at 06:28 AM ---------- Previous post was at 06:27 AM ----------

I'd let it die and try again

---------- Post added at 06:34 AM ---------- Previous post was at 06:28 AM ----------

Displays nothing whatsoever? Not download and some dots? If you get that you've only finished part one of the process. Plug back in and do the rest regardless of what you see on the phone. The card you use to connect can make a difference silly as that sounds.