yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 Guides, News, & Discussion] Khotum7:
I'm with TMobile. I think it's still under the warranty. The thing is I unlocked the bootloader before I tried this root method and I think it might still be unlocked and/or there might be a flash counter that's been tripped. You think they'll find out if I "voided" the warranty?

EDIT: I just ordered a replacement for pickup and exchange at my local tmobile. I'll pay a $20 Warranty Exchange fee, give them my device and pick up a refurbished but like new G6. Do they check my current device there, and refuse me the Warranty Exchange if they find my warranty has been void? Or do they give me the replacement device first, take the device to investigate and check for any signs of misuse, charging me for it later? Not sure what the rules are about this, let alone the ethics -_-

Thanks!
[T-Mobile LG G6 Guides, News, & Discussion] Josh McGrath:
Glad you got it worked out. They won't know or care if anything is tripped. I have sent dozens back with flash on (Motorola) bootloader unlocked warning (LG) and even knox tripped (Samsung) . They send the phones to Assurant and they hard flash it back to 100 pct stock or repair depending on who .

As long as you don't have water damage or cracks, you'll be fine. Just don't say anything.
[T-Mobile LG G6 Guides, News, & Discussion] V0idst4r:
Stock dialer (or Google Dialer) both have VVM

Source? (Regarding latest root)
[T-Mobile LG G6 Guides, News, & Discussion] MetroWestMA:
My apologies, I thought it was earlier in this thread, but they were referring to version e. I rooted on version g and couldn't install the system update afterwards. But my guess is you could flash just the h ROM in the system partition and re-root with Magisk or SuperSU -- I don't know if anyone has done that (or what the point would be).

A 99% working Oren 8.1 implementation would be what I am looking for....
[T-Mobile LG G6 Guides, News, & Discussion] J0nhy:
Thanks mate i followed this instructions and everything went right but when i tried going to download mode to restore the stock rom lgup don't recognize my phone and the phone reboots after few seconds, any ideas to get it working? thanks bro
[T-Mobile LG G6 Guides, News, & Discussion] electrical45:
please help me, I have managed to root, but I have lost the download mode
[T-Mobile LG G6 Guides, News, & Discussion] Josh McGrath:
If you managed root already, and have twrp on recovery and not laf, just look 2 posts up on the quoted post
[T-Mobile LG G6 Guides, News, & Discussion] jesbu:
Please who can help me on how to downgrade 8.0 to 7.0 thanks, so I can root

---------- Post added at 09:34 PM ---------- Previous post was at 09:26 PM ----------

Do you have root? If yes please help me my is on 8.0. And still lock.
[T-Mobile LG G6 Guides, News, & Discussion] Artrus427:
[android@fwul lglaf]$ ./partitions.py —dump misc.img misc

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/lglaf/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/lglaf/lglaf.py", line 299, in __init__

raise RuntimeError("USB device not found")

RuntimeError: USB device not found

Did everything according to instructions, anyone know what's the problem?
[T-Mobile LG G6 Guides, News, & Discussion] Alexsha:
I use Google Voice on my non-rooted phone. Works fine. I never even setup my T-Mobile voicemail.
[T-Mobile LG G6 Guides, News, & Discussion] anhtulc2000:
Select all partitions except laf. If you forget to uncheck laf, you will have to do this all over again.

When it completes, it will reboot your phone.

Go back into download mode. This time you will be running the H918 laf, and we can continue with PART 2

I finished that step, but i stucked "doanload mode" with 5 dots. What is h918 laf? Could you show me a picture?:confused:
[T-Mobile LG G6 Guides, News, & Discussion] christopherrrg:
Sorry for the delay in response. My notifications haven't been working when I get quoted.

*#546368#*870# type in dialer.

Replace 870 with your variant = 870, 872, 873
[T-Mobile LG G6 Guides, News, & Discussion] V0idst4r:
Yeah I know how to check my own, I meant the version that you need to flash a firmware. I know LGUP checks it and it's somewhere in the TOT. Don't need to know now though, thanks anyway.
[T-Mobile LG G6 Guides, News, & Discussion] jesbu:
Is there anyway to downgrade from 8.0 to 7.0?
[T-Mobile LG G6 Guides, News, & Discussion] christopherrrg:
Derp sorry about that lol
[T-Mobile LG G6 Guides, News, & Discussion] NotoriousArts:
I am currently on Oreo (87220a) and unlocked bootloader. Is it safe to do this and flash the 87220a kdz afterwards instead, or should I downgrade to 11g?
[T-Mobile LG G6 Guides, News, & Discussion] MellowshipSlinky:
Edit: Clarified below
[T-Mobile LG G6 Guides, News, & Discussion] MellowshipSlinky:
I've gotten to this step, but I can't find "/dev/block/sda" in the terminal output (and yes I've used ctrl+shift+f)
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
First post updated with much easier instructions -- except for getting h918 laf onto your phone. Sorry, can't make that any easier yet.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
H87220a is still ARB 1. Grab the patched LG UP (link in first post -- you will need it anyway). Download the 11g KDZ (again in the first post). Use partition download and select ALL partitions.

Let the phone boot into the OS, and then you can follow the instructions in the first post.

I don't have a G6 so I can't verify if the H918 laf will work with the 20a firmware, so you need to downgrade for now. See above.

If you want to upgrade to Oreo and keep root, then you can either wait till I get a chance to make a flashable zip (or someone else beats me to it).

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] NotoriousArts:
Successfully flashed 11g, used the new method posted! Worked out very well, thanks!!
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
If there isn't an Oreo zip by Monday, I will post one.

They aren't hard to make, I just don't have time on the weekend.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
That would be great.

I attempted to make one... but I'm not sure I was doing it correctly. Ended up stopping after getting the system.img and boot.bin files from the KDZ and partially making the update-script for recovery.
[T-Mobile LG G6 Guides, News, & Discussion] MetroWestMA:
Brian,

This would be great. I am working on getting VOLTE and WiFi going in AquariOS (based on Lineage 15.1) -- and having this would allow me to at least try and reverse engineer it, grab all the settings.

I had done the root method you figured out long ago when you first did it (thanks for that)...so now we would just need to TWRP flash the image you provide (just like a custom ROM), and re-root it with Magisk, and start over, right? Or without Magisk, you would have a stock Oreo H872 with an unlocked bootloader.

Thanks for all your work!

MW
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
That is correct, it will be a stock, untouched image (well, I have patched it so it doesn't wipe recovery), so you will have TWRP.

I was really busy today, but it will be posted later tonight or tomorrow.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] dupsatou:
This worked without any major issues! Thank you!

I ran into a couple minor things in getting LG UP working and talking to the phone. I'm not sure which part was required, but I installed the full LG UP from https://www.mylgphones.com/download-lg-up-software, I then replaced the files with the patched version, and it was still complaining about needing USB drivers which I also got here: https://www.mylgphones.com/lg-android-usb-device-drivers

That may be common knowledge to others working on LG phones but it wasn't for me. I hope I wasn't blind and just missed this somewhere in the thread, I did try to search but thought I'd put it out there in case anybody went searching for the same thing.

Thank you for your efforts!
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Yes, I assumed that was common knowledge, sorry about that. You definitely didn't miss anything from the first post.

Glad it worked out for you.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] MetroWestMA:
Brian -- one other question for you -- I read a bit about the anti-roll back on the qualcomm chips...so has this always been set to 1 for the history of the H872? Is there a risk of flashing a custom ROM and then getting stuck on it because this gets tripped?

I didn't know this existed until you mentioned it...
[T-Mobile LG G6 Guides, News, & Discussion] Josh McGrath:
There's no risk or that because TWRP doesn't/won't even check or care about ARB, and as far as I know, flashable zips of custom roms don't contain that info anyway.
[T-Mobile LG G6 Guides, News, & Discussion] dupsatou:
No need to be sorry! I was able to figure it out and I'm running a non LG ROM so I'm happy! I had accepted when I bought the phone that root was never going to happen. But the latest TMO update to Oreo borked some things for me so I went searching for "downgrade" options and found out root was available. Thank god... and thank you! :D
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
No, ARB started at zero, and there are ROMs that are ARB 0, be careful. If the person that packaged them included firmware, you can brick your phone. TWRP doesn't check for ARB.

Yes, most don't, but you still have to be careful just randomly flashing ROMs.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] immns:
thank you, thanks for the script(.sh)... you're make the whole process much easier.. now I can wait the oreo
[T-Mobile LG G6 Guides, News, & Discussion] immns:
Well, it was a long night because my G6 wasn't be able to boot to android properly. It says 'encryption unsuccessful' and there is a button to erase data. When I click that button, phone will reboot to TWRP which has the similar issue, it will ask the password which I don't know, so I decided to click CANCEL button then reboot to system again and the problem still there.

In my case, I just downgraded to 11g from oreo in order to root with this thread's method. I think someone, in somewhere, and somehow has the same problem, be calm. I've managed to solve this problem by just reflash the recovery partition to stock recovery which you can extract from KDZ file. If you want flash twrp again you need to flash magisk or supersu after that.

Back on 'encryption unsuccessful' screen and just click erase, that will bring you to stock recovery and let it do it's job. Now my phone back to lives and I just reflashed TWRP using TWRP Official App (magisk root). All works flawlessly.:angel:
[T-Mobile LG G6 Guides, News, & Discussion] Goodfellas123:
Help me

I lose twrp and download mode just stop ."...." And reboot.
[T-Mobile LG G6 Guides, News, & Discussion] immns:
if you can enter downlaod mode like the attachment you can install/enter TWRP again via fwul again
[T-Mobile LG G6 Guides, News, & Discussion] Goodfellas123:
if you can enter downlaod mode like the attachment you can install/enter TWRP again via fwul again

I tried it, but my phone reboot before i install Twrp via FWUL
[T-Mobile LG G6 Guides, News, & Discussion] immns:
If your phone be able to boot to android and has rooted, you can reinstall twrp and reboot to TWRP from there.

If you got TWRP installed, but you couldn't enter from beginning, you can try Hard reset by buttons combination (Google it). Then pick yes > yes choices. That'll bring you to TWRP. Try flashing some proper ROM (pay attention to ARB counts).
[T-Mobile LG G6 Guides, News, & Discussion] jasongw:
How can you get back to 11g once you're on Oreo/20a? I'm stuck and hating life. LG's bloatware basically ruins this phone. Just bought my in-laws refurb Pixel XL's, with nearly identical specs, and they FLY compared to my G6, even on Oreo. Really pisses me off what LG did to this device.

Thanks!
[T-Mobile LG G6 Guides, News, & Discussion] immns:
Just grab 11g...kdz, enter download mode, then flash it using PARTITION DL in LGUP, select all partitions. Now you're good to go! I won't comment on pixel because every google phone has it's reputation for software optimization.
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
I recently rerooted, and upgraded to Oreo using the normal root method. I got the encryption screen as well, but the system boots as does TWRP. But now TWRP can't decrypt my /data partition. I think I'm going to have to KDZ back to 11g and remove any locks or passwords, then reroot and upgrade again.
[T-Mobile LG G6 Guides, News, & Discussion] immns:
Unfortunately 20a oreo is different, you won't be able to mount data after flashing oreo back. I tried to patch boot.img and no luck. I've tried to flash 11g back and twrp can mount /data without issue. The culprit is either bootloader that encrypt the data, or twrp itself that couldn't fetch decryption key from Oreo ROM.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
A new version of TWRP needs to be compiled with the Oreo kernel. I am setting up a new build environment in anticipation of Oreo on the V20. The G6 and V20 kernels have very little that is different [MENTION=6814590]askermk2000[/MENTION] was doing builds for the G5, G6 and V20 because they are so similar it is very easy to keep them in sync.

TL;DR: Updated TWRP is coming, as are custom Oreo kernels.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
Never dawned on me that TWRP would need a update.

I kept trying to use the twrp decrypt command with the correct password to no avail and was like "What the hell?".

Well, I guess I'll wait until a update is released. Thanks.
[T-Mobile LG G6 Guides, News, & Discussion] Broadman:
problem with TWRP downloaded by script

Script downloads NOT twrp-3.2.1-0-h870.img and

step ""./partitions.py --restoremisc twrp-3.2.1-0-h870.img lafbak"" fails

h872-twrp.img was loaded by script but after adding it manually hashes don't match
[T-Mobile LG G6 Guides, News, & Discussion] garson10:
Ask

[MENTION=3167089]runningnak3d[/MENTION] so if my lgh872 in oreo right now and i want to root i must downgrade to nougat 11g?
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Might want to read the 1st post again, the instructions were updated, and much easier.

You can try and let us know. The worst that happens is that you lose download mode till an OTA update comes out.

If you don't want to be a guinea pig, then yes, downgrade to 11g :)

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] chibichuba:
[MENTION=3167089]runningnak3d[/MENTION]: Can you confirm if an unrooted H872 on Oreo via OTA would be able to successfully downgrade to 11g? Also, has anybody successfully done this and rooted?
[T-Mobile LG G6 Guides, News, & Discussion] MetroWestMA:
I just got a OnePlus 6 (great phone for TMobile BTW, and great custom ROM support). Anyway, on that one with supported TWRP and no external SD, you have to turn off all locks before booting into TWRP and then the Internal SD card 9I.W /sdcard) is un encrypted (actually I think TWRP knows how to un-encrypt it). I would try this -- just means you will have to reset up lock PIN, and fingerprints and screen lock if you are doing that after coming back out of TWRP.
[T-Mobile LG G6 Guides, News, & Discussion] chibichuba:
So I answered my own question,

It took me a while but I successfully downgraded from Oreo 8.0 back to Nougat 7.0 11g, and then was able to follow your steps and root with everything working as expected. Installed Magisk and getting to flashing a custom ROM right now.
[T-Mobile LG G6 Guides, News, & Discussion] garson10:
Ask

[MENTION=7171987]chibichuba[/MENTION] so u successfull downgrade from oreo to nougat 11g? And root 11g without any problem? I will try it . need your instruction
[T-Mobile LG G6 Guides, News, & Discussion] chibichuba:
Yup, I'm also running a custom ROM with Magisk. I ran into a few obstacles, but following these instructions I was able to get everything working.

TO DOWNGRADE

, from [MENTION=8436411]fegitoli[/MENTION]

I've quoted the instructions, you can view the full thread here: https://xdaforums.com/lg-g6/help/lg-g6-downgrade-t3804030

TO ROOT

From here, I just followed the steps that runningnak3d provided and it worked perfectly. Be very careful and read through other replies though, it will help you solve any issues or questions you run into along the way.
[T-Mobile LG G6 Guides, News, & Discussion] DmytroPitenko:
need new twrp for compatible with oreo stok rom
[T-Mobile LG G6 Guides, News, & Discussion] immns:
no need upercut, just grab LGUP from first page, select PARTITION-DL then check all partition. My AV won't let upercut works so decided to leave it there until it recognized as false positive.
[T-Mobile LG G6 Guides, News, & Discussion] chibichuba:
I had to add an anti-virus exception for Uppercut, it treats it as a Trojan because the exploit used to modify LGUP technically functions like one. If using LGUP without uppercut worked for you, then I suppose you can do that too. However version numbers for LGUP are very important for the specific exploits used so take extreme caution with this.
[T-Mobile LG G6 Guides, News, & Discussion] immns:
I did but bitdef**der is stubborn jackass AV. And also, I noticed that partition-dl doesn't wipe data partition that makes little mess. Does refurbish option reset bootloader unlock counter?
[T-Mobile LG G6 Guides, News, & Discussion] chibichuba:
It shouldn't reset the bootloader unlock counter. I ended up having to use the "Upgrade" option after the Refurbish option failed. It caused some decryption errors, but if you factory reset and clear internal data it will also clear the encryption. Not an entirely clean job, but it definitely works with no major issues in the end. Fortunately, it's harder than it seems to brick this phone, the only scenario is if you install a different model's firmware and let it follow through (such as in this rooting method). As long as you have download mode you can usually come out of a bootloop or apparent "brick.
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
I just wanted to let yall know that the root process still works the same on Oreo. Just ran it yesterday without an issue.
[T-Mobile LG G6 Guides, News, & Discussion] oscarmaldonado:
Hello everyone, first of all, thanks Dev. for making this possible, I got my new H872 (T-Mo) and I already went through the step 1, now my only concern is: does download mode gone permanently and just in case we need to go back to stock, what do we do? I also have a LG V20 (T-Mo rooted) and we had an option to replace LAF (TWRP) back to the original download mode. Thanks in advance.
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
You can flash the stock laf and lafbak partitons to put download mode back. If you didn't backup your stock ones I can provide the images if you tell me which firmware you are on.
[T-Mobile LG G6 Guides, News, & Discussion] oscarmaldonado:
Thanks bud for all your help, that will be great, I'm on 11G (H872 T-Mobile).
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
laf image

lafbak image

the files are in .bin however you can dd them as is

dd if=/<path_to_directory>/laf_6.bin of=/dev/block/bootdevice/by-name/laf

dd if=/<path_to_directory>/ lafbak_12294.bin of=/dev/block/bootdevice/by-name/lafbak

unpacked H87211g kdz without system.img
[T-Mobile LG G6 Guides, News, & Discussion] oscarmaldonado:
Thanks bud.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
This might be a dumb question, but would this same procedure work going directly from 20a to the 10p kdz in order to get root? Or do I need to go 20a to 11g and then 11g to 10p and follow the rest of the steps?
[T-Mobile LG G6 Guides, News, & Discussion] KAsp3rd:
You do not need to downgrade to get root; just follow the process for rooting on 10p (I followed the process while on 20a and rooted without a problem)
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
sweet. If it doesn't work I'll be coming for you :D
[T-Mobile LG G6 Guides, News, & Discussion] jerrystry:
Did this work on 20a for you cuz I just received an LG G6 with 10h and thinking of upgrading to oreo first
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I'm going to run through it here tonight and I will share how it goes. In the process of downloading the stock 20a kdz file before I begin, and I'm getting a 500KB/s download rate.. But at soon as it's done I plan on doing it.
[T-Mobile LG G6 Guides, News, & Discussion] immns:
either 10h/11g/20a reported as successful using this root procedure. As long as you read and understand every single steps on first page, you should be okay to proceed.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I managed to get through everything and into FWUL. Unfortunately, when i tried to execute "git checkout h872-miscwrte" it is unable to find the project/file on git and I cannot continue.

I re-flashed the 20a kdz for now until I can figure that part out. I can confirm that the entire first procedure works though, and I was able to reflash 20a and get the phone back to normal with no issues.

Is there someone who can look into the h872-miswrte issue?
[T-Mobile LG G6 Guides, News, & Discussion] immns:
That means h872-miscwrte isn't there. Make sure you have working connection on FWUL. Possibly OP delete those files from git server for some reason. :( try to send pm to OP [MENTION=3167089]runningnak3d[/MENTION]

Update: h872-miscwrte branch is still active on gitlab
[T-Mobile LG G6 Guides, News, & Discussion] and_push:
Bricked mine like Denversmartphone did. Pulled out usb cable too late when 918 image almost done flashing (pulled out on backuping GPT). But after mistake I flash only 872's laf partition. After all flashing done phone reboot and nothing. Brick.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I'm curious as to how y'all know at exactly what point to pull the cord

Signature blah, blah, blah...
[T-Mobile LG G6 Guides, News, & Discussion] igorya79:
how can I get back on the stock firmware? (for example, to receive updates)
[T-Mobile LG G6 Guides, News, & Discussion] The_Anomalist:
When using the patched lgup grab the h918kdz and flash the laf partition from the kdz, once you do that you will see on the computer it flashing the laf then it will try to move on to the next partition. It will say laf then it will move to system. Pull the usb right after u see the flash process move past laf
[T-Mobile LG G6 Guides, News, & Discussion] rc420head:
Worked great for me, i just built lineage 15.1 for H872 I'll flash it later. I did flash h870 lineage but it didn't boot.

Does anyone know if I can flash H872 twrp via the twrp (flash image to recovery in TWRP) supplied in the root method? I mean I'm going to try anyway just wondering if it's a definitely a no-go?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I'd love to see a video of the process or at least the screen at the time of this plug pull.

Been keeping track and that seems to be the bricking point in the process

Signature blah, blah, blah...

---------- Post added at 01:24 PM ---------- Previous post was at 01:16 PM ----------

Been a little bit since I've had root on a device but theoretically twrp should be able to process an img. File. But with this process it has me wondering also.

I just theorizing though. One of the big boys involved with this would have the straight answer I'd think.