yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Flashing 3.2.1 didn't do anything. And I've lost root according to everything but can still get into two 3.2.3 which I'm going to say is on laf and more I'm not able to mount data.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Question guys.

If I use lgup and revert the laf back to 20@ then have it write 20a back to the phone I'm thinking it'll let me try this over again?

Something went weird and I can't figure it out. Figure going back to square one might do the trick.

quoted from op:

Choose partition DL again, and this time pick the H872 KDZ for the version your phone was on prior to flashing 10p (11g, 11h, or 20a)

Select all partitions except laf. If you forget to uncheck laf, you will have to do this all over again.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
I ordered an H872 for my son that will be here on Friday. I finally will be able to do this procedure from start to finish myself -- so I can see if there are any steps that aren't listed do to assumptions being made.

I will make note of any issues that I run into, and update the documentation accordingly.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Brian,

I ran through the whole procedure twice on my device without problems. I believe the problem has to do with force-encryption on the data partition, which is removed once you format data in TWRP. So unfortunately, I couldnt recreate the problem with force-encryption since it has been removed on my device. My initial documentation did not use the Step2 python script and instead required you to manually flash TWRP to recovery and manually flash Magisk 16.0+. I am going to temporarily update the documentation to perform a manual flash of those instead of using the python script. I am pretty sure that the script is failing to mount system/data when it attempts to flash TWRP and Magisk. Please let me know if you figure anything else out.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
I just took a look based on some of the complaints, and yea, step2.sh is very broken right now.

Once I am able to run through, I can fix it. For now, I am going to just add a message at the top: "Follow the manual procedure" and exit in case anyone still tries to run it.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
OK an update to that mess I was posting.

Out of nowhere like I mentioned I went from what seemed like no problem rooted and everything worked. Won't repeat everything again.

Out of desperation I pulled down that aosp extended rom and after a little work I got everything up and running correctly.

I'm able to flash from recovery out of magisk, or the rom itself. I'm still pulling apps from the store (which is going to kill my data) but so far everything seems to be running pretty well.

Everything I mentioned above still seemed like there was something going on with the recovery, just went strange on me. Was cool one second and not the next. Started with having trouble flashing things and got progressively worse.

Totally could've been me not gonna say different but wanted to put it out there for y'all for what it's worth.

Sorry about logs as you could see I was up trying to figure this out. Tried to keep track add best I could .

Sorry for the mess, and the new long assed post
[T-Mobile LG G6 Guides, News, & Discussion] Hungry hustler:
[MENTION=3167089]runningnak3d[/MENTION] minding making a video when u go through the whole process of rooting ur son's device? :fingers-crossed: or at least a short one just with the part of pulling the cable at the right time? Would be great! Thanx for everything u've done so far. Brilliant idea of tricking lg with all their locking and making the device "more secure" for the users. Kudo!
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
All of the file links are available in the first post. The copy of LGUP you need is listed there. Make sure you have met all of the prerequisites. Enable USB Debugging, enable oem unlock, etc.. Sometimes after a factory reset or flashing a rom those settings get reverted. If your pc can detect the phone as MTP and adb recognizes it, then the patched LGUP should see it. I dont think your custom rom should matter if it was built on h872 firmware but i could be wrong.

Regarding pulling the cable, once you get into LGUP and are ready to flash, it displays what is happening in the "progress" and "step" columns. When the flash begins, it will list the partition being flashed in the "Step" column. You just have to pay close attention and have your hand on the usb cable. You will see "laf" displayed during the flash progress. As soon as you notice it change to something other than "laf" (for me it went from laf to xbr ) pull the cable. As long as you pay attention it's easy.

[IMG="lgup"]https://i.imgur.com/UQ7CmfS.jpg[/IMG]

---------- Post added at 05:36 PM ---------- Previous post was at 05:31 PM ----------

I updated the main post with a link to the 3.2.3 thread in the prerequisites section.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
If you watch that video and from my personal experience it needs to be pulled at the 10% mark. (at least that's what I saw at that point in the process)

That seems to be when it switches over to the next partition it wants to flash
[T-Mobile LG G6 Guides, News, & Discussion] sansara_2001:
Hello!

* I'm working with your instruction from H872 on FWUL_2.7_x86-64

after the teams

git pull

git checkout h872-miscwrte

./step1.sh

The phone screen turns black. I already thought that it broke down and went to port 9008 but the phone is recognized as before LGE AndroidNet USB Serial Port

but there is nothing on the screen.

in the end I do not understand what is happening and how to proceed.

do you have a clue on this?
[T-Mobile LG G6 Guides, News, & Discussion] Josh McGrath:
If you are VERY lucky, and you managed to somehow have download mode left to boot into, just do a stock flash of your exact model and software you were/are on and start over.

If you don't have download mode, you can either send it in for repair (several options for this) or do a warranty exchange.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Your not the only one to pucker up as you put it.

Lmao [emoji1787]
[T-Mobile LG G6 Guides, News, & Discussion] rossb600:
This same this has happened to me just now and I can't for the life of me figure out how to get into download mode so I can continue with step 2. I've searched this thread but couldn't find any answers on how to move forward. Please advise. Thank you
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Download is volume + and plug the phone into your pc. Should boot right into it.

That's kinda what happened to me except I actually ran step two and it didn't take, there's something up with that script from what I understand.

Haven't read it yet, but the procedure is supposed to have been changed to reflect this.

Take the recovery.img and magisk files and flash them in recovery manually if your able to get in there by going into dl mode.

If you go back a bit you'll see a string of posts with me fighting it. Go further back and you'll see where I was recommended that.

Read your ass off. The answers to all these oddball issues are scattered to a degree.

One you get twrp and magisk on the phone don't be surprised if you get an encryption issue.
[T-Mobile LG G6 Guides, News, & Discussion] rossb600:
It will boot to download mode per your instructions however almost immediately pushes me out with an error message and boots into system
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
It boots to system?

What's the msg say?

I'm trying to think of the things that I've seen in here before. One was that you needed the phone usb connection set to "file transfer". Before you even start into this. From what I understand the phone holds the state when powered down.

Unless somebody knows better during it down after that change should get you into dl mode using that button cord combo.

Tracking my head to think of another way that would cause an issue.
[T-Mobile LG G6 Guides, News, & Discussion] spaceantz:
Hi guys..

Just out of curiosity, is it matters if we flash firmware H872BK or H872TN? Let say both of them are 11g.

Maybe you guys ever tried that? Thanks
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I got something along those lines yesterday. Not sure it matters. But the first time I rooted I didn't get that but wad using the cord that came with the phone.

When I got that 5 times deal was using the wife's. Still an lg phone stylo 4 I think it is. I noticed the cord felt smaller around that the other.

For me I got the multiple tries also then got a success msg to pull the cord. Then it almost immediately & automatically started running that script again with no input from me before I could pull the plug
[T-Mobile LG G6 Guides, News, & Discussion] Guru_7:
How do i unroot and lock bootloader again ?

help me runningnak3d... just bought G6 5 days ago.. and eagerly updated to oreo.. and **** oreo sucks with performance in pubg.. so i decided to downgrade to 11g...

i am on 20a now.. i can follow your post and change the stock rom. but i frequently use bank apps and fund transfer apps. so i dont want my phone to remain with custom recovery or root access..

so how do i do it after i install 11g rom? i just wanna get it rid of bloatware and make the phone unroot and lock bootloader and to be like out of the box condition.... waiting for your reply....:)
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Totally a theory but it does get rid of root and whatnot.

There's a stock 20a zip that I would think you could try (used to do this year's ago so don't know if it still works) don't extract it just go in and pull the apps prior to flashing. Then flash it in recovery like you normally would. It puts everything back to non rooted. If the app thing still works it installs minus those.

Ya wait to see if anybody says different because I've not done it in so long and they do package those things differently I'm not sure how you'd get to them.but if it works it'd be cool
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Wow -- I am so sorry guys. No wonder some of you have had issues -- I FORGOT TO ADD A PROGRESS METER FOR THIS VERSION! *SMFH*

Yea, so I can see why some people didn't realize how LONG it took for the flash to happen with no progress indicator, and ending up thinking it was hung and aborted it.

I have tested this procedure from start to finish, and I have added a couple notes on what to expect. For example, you DO NOT get a normal download mode screen once the H918 laf has been flashed.

I am going to flash back to stock and go through this one more time, but it definitely looks a little more smooth now.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Ah, man that's my fault. I should have mentioned that. It just sticks on the splash for download mode right? I guess I didn't think much about it since the phone was still detected and everything worked
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Yep, you just the little "Download Mode" box, and not the full screen download mode with the circular arrows.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
That begs a question.

Even with the download mode box does it mean we've lost it or is it replaced with twrp?

For me it only booted to that for a second before going to twrp.

I'm also curious about this 918 laf being kept in the laf partition.

Added thought. What do you think about backing everything up then factory resetting the phone before doing any of the procedure?

Reason I ask is I'm wondering if it would remove all this wiping data after twrp install to recovery stuff. Just a thought, curious though because that's how I'm thinking of going next time I do this.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
No, when you get the download mode box, that means that you have H918 laf.

That is correct -- once you have run step1.sh download mode is replaced with TWRP -- that is the point of this.

After you have run step1.sh -- there is no laf at all. TWRP is on laf. If you want to restore laf, I will be posting a zip that you can flash from TWRP, once you have flashed TWRP onto recovery.

For now, you will have TWRP on laf, and TWRP on recovery IF you run step2.sh OR you manually flash TWRP onto recovery.

That is up to you. You will lose all data no matter what.

No, right now there is no way to get around wiping data. The build of TWRP for the G6 doesn't support encrypted data (for now -- I will be working on a new build) -- until then you MUST *FORMAT* data in order to remove the encryption.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Thanks for the quick response. Could've sworn I did that format data deal several times without it working for me.

I guessed as much with the other stuff mentioned just wanted confirmation.

Thank you

Something for those that have issues that I noticed. If you flash the stock oreo.zip file in twrp it seems to put everything back to pre root. Which allows to get into dl mode proper and retry this process. Don't know if it's been mentioned so thought I would. Might be something worth adding to the op. It's your baby though so I'll leave that up to you.

This isn't the same model of this phone I don't think but it may be worth reading. Talks about encryption.

https://xdaforums.com/showthread.php?p=77596128
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
[MENTION=8639605]Phoenix591[/MENTION] Works on TWRP for the V20 and got encryption working. I am going to use that as a base for the G6 which I will be switching to full-time since it is a heck of a lot faster than the v20.

I'm amazed that a processor that's only one revision newer can be so much faster as it's just astounding.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Yes, that's awesome.

I miss my V20. It was so much easier to get root and recovery onto, and I was a big fan of NATFMegaROM. I like T-Mobile but hate the drag waiting for bootloader unlock and factory images

Can't wait until you get this done. Let me know if you need help testing
[T-Mobile LG G6 Guides, News, & Discussion] Phoenix591:
If you say so.. give Gamma kernel a try on Lineage if you haven't yet(last I remember seeing you post is you've stuck to stock based), it's crazy how much faster it is than everything else. With the experimental second screen support covering quick toggles and media controls (pretty much all I used it for on stock) I'm sticking with the V20 for quite a while longer.

If you want I've got recent h918 builds of gamma with second screen and Lineage with second screen since x86cpu hasn't updated his own second screen builds in a bit last I checked.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Yea, I am a stock guy (for now), but that doesn't explain the speed difference between a bone stock H918 and bone stock H872 (both running the latest version of Nougat). The only modification on each one was having TWRP and Magisk installed via lafsploit. No custom kernels, nothing else.

Now I can get my H918 to run a lot faster by tweaking it, but I am sure I will be able to do the same with the H872 -- and then it will be faster than the V20 again.

I am not getting rid of my H918 (or H910). You can pry them from my cold dead fingers for the removable battery if nothing else. The G6 will be my daily driver, and my V20 will be my concert phone :)

TL;DR: going to continue development on the V20, but extend that to official support of the H872.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Are you using the stock KDZ or did you flash the stock rom? Might be a dumb question but will other oreo kernels work with the stock 20a kdz? That's what I am still running on mine.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
I am running 11h. I am not going to upgrade to Oreo until I get a chance to build a few things (Oreo specific TWRP for one).

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Sweet Mary please. No matter what I do I can't get that encryption deal to go away.

Was wondering how difficult downgrading would be since there seems to be less issues on the older stock builds with all that.

What I'm thinking :

Get myself back to unrooted stock.

Flash a nougat kdz

Then root the thing using the instructions for those builds.

I can't tell you why but I've tried multiple times to root this 20a with that 3.2.3 recovery and just can't get data to mount for anything. And after doing it like 4-5 times you'd think it would've stuck once even if I did make a mistake once or twice (which I don't think I did)
[T-Mobile LG G6 Guides, News, & Discussion] ryanrod:
Ken, I hope you don't mind me asking, but I have been searching all over for answers and have only found fragments here and there. How were you able to get download mode back? Or were you? (I have been following your posts here and in the AOSP Extended rom thread) I had the same issue as you when I attempted to go into download mode, it would show the little download mode screen for a second or two and then go right into twrp 3.2.3 instead. If I understand correcty, this root method puts twrp 3.2.3 on the "laf" partition and on the "recovery" partition as well. Is laf the partition where download mode normally resides? If not, where? Sorry for the amateur question.

Anyway, twrp 3.2.3 loads fine and I was able to get the phone working by flashing ASOP Extended. Before that I was bricked. However, I am trying to get back to stock 11g and I am trying to figure out the best route to get download mode back to load the 11g kdz with lgup. Can I copy the contents of "lafbak" over the "laf" partition and get download mode back? It would be nice if we could just flash the download mode partition that was extracted from a kdz of our choice. I don't know how that would work, but just thinking out loud. I haven't installed any kdz images other than 11g (no 11h or 20a) so I don't have the anti-rollback code in effect. Thanks in advance.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
There's a stock 20a rom (don't have the link at the moment but it's a zip and if you flash it in twrp it "seems" to put you back to stock. If nothing else it gives you dl mode back. Nothing crazy, just a flash.

I'm pretty sure it's under all the t-mo threads.

As for the laf stuff. From my understanding per the op. That's exactly what happens. You get twrp on laf and recovery following this procedure.

Op posted that he'll work on a better recovery that'll mount that position & build a zip to put that laf back to what it should be.

They exist I've seen them, but have held off flashing. I want to see what the man here comes up with. I've seen him working with people on another thread.

I think it works on that aosp rom because he built the recovery we've been using & has been tweaking that rom & kernel in that rom which is 8.1 And it's probably is why it plays nice.

Hope that helps ya I mean if nothing else it looks like we can go back to square one and try again. But I'll tell ya straight, I must've gone through that whole mess I just wrote around 5 times just today. No matter what I did I couldn't get that decryption to go away. I went by the procedure. And had to pull some off the reservation stuff and with just damn stupid luck didn't screw stuff up.

But I did notice something:

Did you see a double boot deal when booting rooted stock? When the decryption isnt working? I got two of the unlocked bootloader warnings and two lg g6 thinq screens before it would boot?

I'm totally guessing here, but it seems like the phone is attempting to decrpyt but can't so falls back to some other way in.

I've also seen posts talking about encrypted kernels etc. I can follow directions and do a little bit, but that starts to get above my pay grade.

One thing I almost forgot. I did come from 20a when I started. So I can't totally say what could happen. But I'm gonna say that if you grabbed all those kdz files in the op I would think you could theoretically flash whatever version you want.

I'm guessing here I want that stressed.

I'm kinda looking for that answer myself. The process looks easier on the older versions.

Sorry I'm long winded. Wanted to try and catch everything. Should've seen my professors when I'd give them papers
[T-Mobile LG G6 Guides, News, & Discussion] ryanrod:
Ken, thank you. I like the long winded version, lol. Thank you for the 20a idea... I know what you mean about re-doing this stuff multiple times. I am where I am by a stroke of luck. At one point I thought I ruined the phone and I just kept running step 1 on this guide and got my phone back from some weird bootloop state. Phew. The whole thing that prompted it was a botched magisk update from 16 to 17 that bootlooped by phone... I should have never said yes to that damn update... Never never update stuff that works. smh. :eek:

So, I may try that flashable zip version of 20a. I found the thread for it. Apparently since that 20a zip is anti rollback version ARB01, it is safe to go all the way back to 11g after flashing but not anything before that since previous versions to 11g have anti rollback version ARB00. Hopefully this will allow me to get download mode back and then use LGUP to install the 11g kdz. I hope :) Assuming I am ARB01 ( I can't check beacuse I am not in a stock rom) it should work. I may also just wait for a zip from runningnaked if he is working on that.

Also, since I haven't done 20a yet, I did not have any decryption issues or double boot. I went from 11g rooted directly to that ASOP Extended rom. According to the OP in this thread, you may need to wipe the data partition to fix that. See the following:
[T-Mobile LG G6 Guides, News, & Discussion] xDpakaX:
Hey. The firmware is now 20a. Sim Unlock Can not do. Octoplus shows an error. At 11n everything worked. Who will help make the Sim unlock on the H872 20a?
[T-Mobile LG G6 Guides, News, & Discussion] DmytroPitenko:
How to downgrade bootloader from 20a to 11h/11g. (For use custom Rom with FP)?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Wiped so much it hurt lol..

Honestly, I never even looked at any roll back number. Think I've just gotten lucky on that front. There's chatter going on between the guys here and in that aosp thread so we'll just have to see what we see.

I still want to know how flashing a whole kdz from an older build would work. I think your arb deal may come into affect there.

---------- Post added at 08:49 AM ---------- Previous post was at 08:44 AM ----------

Look at the post above this one. Guy poses an interesting question with a little into that could mean something to us.

I know I could flash something custom after root but, if I can't have all the goodies (never realize how much I use the FP sensor till I didn't have it) I'd be good with stock rooted Oreo
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Funny thing, I am actually working on a solution for this today. I flashed AOSP Extended not knowing I needed to be on stock nougat for FP to work. After reading through basically the whole thread it is still unclear to me whether a full flash of 11g or 11h is necessary or if I can just flash a bootloader image. I read someone saying that you have to actually flash nougat and get fingerprint scanning to actually activate before you can flash custom roms like AE. I also read people saying it's the bootloader you need and can flash a bootloader image.

Unfortunately, I haven't found any straight up bootloader zips/images for the h872. I did find a full collection of dumps for 11g which include the bootloader bins. Right now I am not sure what I want to try.

Option A: Flash stock laf to get download mode back and then flash 11g kdz in LGUP.

Option B: Flash stock 11g bootloader bins and see if it doesnt destroy my phone :P