yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I'm curious, and you don't have to go all into it if its some big mess. But, other than the fingerprint deal, which you can get to work on g or h (if I'm remembering correctly) what's the difference between the 2?

Oh and using that 20a zip from me. Well, I got caught a few times in situations where I couldn't get anything to work correctly but was able to get into twrp. So I'd flash that as a quick fix to get me back to square one. I see what your saying though when you talk about doing that from the kdz instead.

I'm half sure that I've done that at one point or another in my adventures [emoji3526] probably would hurt to run through it all that way intentionally and see if there's a difference.

I'm also fairly sure I'm doing what you are to install but I'll look through it again and see. Maybe it's something stupid and if so I can mention it to everybody else that's wanting to do this so they can avoid it.

I've noticed over the years that any time something really weird happens it's either me, or there's something in the situation/process that doesn't get mentioned because it's assumed you already know. Not knocking anybody whatsoever its just something I've noticed.

The only place I could say seems that way here is the point where the instructions go from g & h to oreo. Could be my imagination though.

Man I can go on, sorry bout that, virtual mouth doesn't know when to quit [emoji53]
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I'm not entirely sure of the differences between 11g and 11h besides the fact that 11g is android 7.0 and 11h is 7.1

I think maybe 11h introduced the "ThinQ" title and some new camera apps. Basically a facelift to keep the phone somewhat up to date alongside the G7.

It's really hard for me to go beyond what I have guessed without being able to reproduce your problem. However, what I do know is that there is some protocol in the stock firmware that will try to repair the boot and recovery partitions. If you dont have TWRP on recovery, that may possibly be a reason. If the stock firmware tries to repair your recovery partition and boot image, you would lose magisk and root. But again, that's just a guess. I havent run into the issue you are describing, but I also have not used the stock 20a rom which, to me, is the only part of the equation that I have not personally tested.

I am going to build a full stock and deodexed version of 20a myself today and will post those, because I really want to try and get a crack at the encryption problems. I also want to take a shot at pre-rooting the stock roms so they can be flashed easily within TWRP. I will tag you when i have completed and tested those so you can give them a try and see if they might solve your problems.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Cool thanks man if nothing else it should remove the pc step. I'm sure I've got twrp on the recovery so ya I don't get it myself
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
So, I actually ended up building a whole collection of 11g images that I posted in my stock rom project. It includes a working 11g stock bootloader that I actually confirmed will fix FP on AEX without having to go fully back to Nougat :)

That means my 20a work will be pushed back a bit though. I tried making some 20a images yesterday but they didnt work with the 11g bootloader so I had to scrap them and will need to start over.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Curiosity here :

I don't think it'd work but I'm gonna ask you anyways.

There's no chance of flashing a nougat or 11g bootloader and run 20a is there? I'm thinking of the decryption issues.

Don't get me wrong, dude has almost the perfect rom over there if you could get the stock lg camera and assistant to run on it. Not you specifically but I hope you get what I'm saying. I been keeping an eye on that thread and he's been fighting with it.

I was on aex when the whole deal went sideways and I booted out of nowhere into the fastboot screen. (about had a heart attack till I could work my way out of it) that's how I ended up back on 20a. Had the zip and I knew it will run right. The issue seems tied up with twrp and magisk somehow. I know y'all have discussed it in other threads.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I wasn't able to get 20a to boot up with the 11g bootloader. I can try to make a patched kernel image for 20a with force encrypt disabled before I work on anything else and we can give that a shot
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
It's got more interesting since then. Sorry we got a new baby in the house and can't get back as fast as I'd like.

I was goofing around and thried a theme. Through substratum. Didn't do the Andromeda bit. And i got a system ui message. Phone is on but I can't do anything. So I tried to boot into recovery. (It's been quirky but usable) no twrp. Hmm. So I fire up lgup and run the kdz.

When it reboots I'm in the same place, same settings but can't get in.

So I go through the rooting process I don't get a hash match. (I tried saving the logs but fwul doesn't like to keep my settings and it's late)

I've retried the kdz and rooting more than once and and I get right back where I was.

When I run step 1 (I'll see if I can get that log up, I took a screenshot of it) I do get a msg about lafbak partition not being found? From what I understand that's not good. Makes no sense to me because I didn't mess with anything like that.

Way I figure it is if I could get twrp on laf I could possibly revert whatever in the heck is going on.
[T-Mobile LG G6 Guides, News, & Discussion] sdesdesde:
Hi! Someone can help me? Already done with this method couple phones, but all of them was on 11f.. Today tried get a root on h872 20a firmware and got message about lafbak partition not being found.. After that I downgrade to 11f, but same results.. Any solution?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
I ran into that last night myself. Got nothing to help you right now but just so you know your not alone. Does the phone boot normally?

I boot but get a system ui stopped msg keeping from getting into the phone.

I can get into dl mode but anything I run doesn't seem to change anything. Was actually wondering about the downgrade deal myself but don't have any of those kdz files which is the only thing to work right now.

There's a laf zip file that may fix it (emphasis on the may part) but if you can't get into twrp how would you flash it? I can only think through adb somehow. That being said I've got no clue on what the commands would be for that if it were to work
[T-Mobile LG G6 Guides, News, & Discussion] sdesdesde:
Phone boot normally, I don't know nothing about this phone and who and what done with phone before me, but when you write new firmware it rewrite laf and lafbak, so I don't understand how could be lafback missing...
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Exactly what I'm thinking. If you go flashing stock or any kdz you'd think it would wipe the device when it flashed the kdz. Shoot I'm still seeing the font I applied when I was good. Makes no sense to me. Reading through stuff to see if I can find anything to help. I boot up but can't interact with the device. It's really strange.
[T-Mobile LG G6 Guides, News, & Discussion] sikander3786:
Hi,

I have H872 11G firmware with H918 10P LAF, all steps followed correctly to my knowledge but I am getting "Hash check failed! Retrying..." error. I've already tried 2 different PCs, many different ports and cables but it fails every single time. Any pointers/hints will be appreciated.

Thanks.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
This just got me factory reset.

Hold Vol down + power until you see the LG screen pop up. Keep holding vol down, let go of power when you fist see the logo then repress and hold. Booted into the factory reset screen said yes twice, phone did it's thing and then booted to the welcome screen.

I'm on the h-872 just in case.

Haven't opened it up yet to see what happens next but thought I'd throw that your way in case. If nothing else it should get us back to square one.

So far it's looking good. Haven't set up anything, just running through it to see if there's anything weird jumping out at me. I know it sucks to have to re-root but I'd rather that than an unusabale pos .

I'm on 20a if I hadn't mentioned it before but I would think the factory reset would work regardless.
[T-Mobile LG G6 Guides, News, & Discussion] sdesdesde:
Already done factory reset, tried different firmware, but same results, lafbak missed message in step 1. yesterday I done another phone and all was fine
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Hmm. I haven't tried that far yet to see if I get that lafbak msg again. I know it seems like I'm repeating myself but I'm wondering if I flash the kdz if I'd still get that. Or if I get it in fwul would the kdz fix it?

I'm going to re-run the procedure again and see what I get. I'll post what happens.

Have you looked into the thread that has the bootloader, laf etc files in it? He's talking zips but I'm wondering if you can get the system to run if we couldn't sideload the laf through adb? I believe he mentions it being able to but like I said my adb command skills aren't that high. Guy is knowledgeable so it wouldn't hurt to ask.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Man i have no idea wtf keeps causing these issues. They seem totally bizarre. Unfortunately the only way I know to push laf to your phone with adb is by using adb shell, but that requires root. My first thought is that you guys should restore the entire stock kdz and start from scratch. Something in your device is wonky. I have not experienced anything close to these problems and I have flashed my phone with 11g, 20a, back to 11g, 20a roms, 11g roms, etc. I'm back on 11g by using the FullStock zip now and running AEX and I have had no issues like this.

edit* i did notice that Eliminator74s 20a zips restore an laf image to both laf and lafbak. If you can get to TWRP somehow, it may be worth flashing his Bootstock zip to get stock laf back on your phone.

---------- Post added at 03:22 PM ---------- Previous post was at 03:13 PM ----------

Not sure if this will help you guys, but I have the following files thay may help.

H872 LAF bin files. For all 3 firmwares (11g, 11h, 20a) - requires root to restore

adb shell

su

dd if=/sdcard/laf_20a.bin of=/dev/block/bootdevice/by-name/laf

dd if=/sdcard/lafbak_20a.bin of=/dev/block/bootdevice/by-name/lafbak

20a LAF TWRP Backup - Copy to your TWRP backup directory and restore with TWRP

If you lack the ability to use any of these, my recommendation is to restore the ENTIRE stock KDZ firmware using the patched LGUP. Then proceed with the root procedure.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Would those files be got to through the aex thread? This is what I got just now in fwul.

I was able to return it to stock, but this is a today new one to me.View attachment 4610014
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
I dont think the zips for the bootloader in the stock 20a threads can be sideloaded. I tried sideloading them but something in the updater-script files is different than normal zips and the sideload would fail. I had to adb push the files to my device and flash them normally.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Well somehow during all that I lost dl mode. All is doing is nothing into fastboot. I was able to get into twrp one time before that this happened but I think I already had twrp in the system.

So as of now I'm back to stock 20a and until I research to see "if" it's possible to get dl mode back. If not it's stock until I run this phone into the ground. Or find a way back
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
There are posts in this thread for recovering DL mode. I would just search the thread for it.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Ya, I know. I'm just a little annoyed at the moment lol... Frigging thing

On a side note, the phone with the messed up screen isn't looking to bad lol
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
did you not use the patched LGUP to restore stock 20a KDZ? it should have flashed the laf partition.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Your not the only one. Read above your post.

---------- Post added at 12:51 PM ---------- Previous post was at 12:50 PM ----------

I did, that's what's really strange. After that I got that fastboot garbage
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Since this is happening for multiple people, I think it my qualify having [MENTION=3167089]runningnak3d[/MENTION] take a look.

Brian, there might be a chance people are doing this on phones with a corrupted lafbak partition, but just in case, can you check out your project to see what might be going on?
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Sorry about that guys. In trying to root the rest of the G6s I made a change to one of the files that is used in this procedure. Suffice it to say, it was correct, there was no lafbak because it was set to open /dev/block/sde and lafbak is on /dev/block/sda.

Anyway, I have fixed it and made a new branch for all other G6s so I won't be messing with the code again.

If you do a git pull it will pull down the fixed code, and the procedure will work for you.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] katastyle971:
part 2 work now

Thank you!
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Thank you Brian!!
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Ok this was there first thing I found in here to get download mode back. I guess my question would be if I could just copy and paste these commands into adb? Minus the numbers of course.

If you want to restore original laf:

1- Download original laf here: https://drive.google.com/file/...FOKBECF1oGkML/view?usp=sharing

2- Copy laf.img to phone.

3- Enable adb on phone.

4- Open command prompt.

5- Adb shell, accept adb on phone.

6- Su, allow on phone.

7- dd if=/dev/zero of=/dev/block/platform/soc/624000.ufshc/by-name/laf

8- dd if=/sdcard/laf.img of=/dev/block/platform/soc/624000.ufshc/by-name/laf

Now you have stock laf and you can enter on download mode again.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
first you still need root to run this. the su command runs shell as superuser, which I forgot to include in my instructions (been a while since I had to run shell)

but firstly, this method is not guaranteed to work because not everybody will have the same ufshc number. the safe way is as I mentioned before.

adb shell

su

dd if=/sdcard/laf.bin (or laf.img) of=/dev/block/bootdevice/by-name/laf

dd if=/sdcard/laf.bin (or laf.img) of=/dev/block/bootdevice/by-name/lafbak
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Can I just copy these commands into the adb terminal? I get placing the files, like you would back when rooting wasn't such an issue. I'm fairly sure I got what you were saying I just want to make triple sure after all the mess. Lol.. Not often the wife leaves me alone to do this type of thing
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
yeah they are fine to copy. as long as you put the laf.bin file in /sdcard/
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Good I feel like a moron for asking this.

Like you said here?

https://xdaforums.com/showthread.php?p=77779267

---------- Post added at 03:47 PM ---------- Previous post was at 02:57 PM ----------

Reason why I ask is I opened that zip and only saw the one laf.img file and it looks like you renamed them in your instructions. I got the file itself on the SD card and renamed it laf.bin but I noticed you using both names. I'm thinking it's because the file you made is intended to be flashed and that's why I have to rename it & the Reason why i see the updater stuff in the zip also. I just need that img file to be named .bin, then run that adb stuff?

It's been awhile for me also and after this morning I don't want to go through all that again and be wrong.

Like this thought I had. Since I'd be running these directly through adb is there a need to run the adb shell command? May not even matter but it's something that popped in my head.

Usually when I'm in there I su and then do whatever.

I'm attempting to bone up on my Linux terminal commands and reading log outputs which is why I ask you all this stuff. Took comp/Tia which I did good in and a python class I fought through. But I'm nowhere near y'all. Years ago maybe, but *****iest wife in the world got jealous of a phone and that put an end to that.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Ok so I've got it to be recognized by lgup from fastboot without root. ran the 20a kdz still no dl mode.

Adb shell = lucye:/ $ su

Su = sh: su: not found

Sh? Is it looking for a script, never seen that before.

I'm curious since lgup seems to be willing to take a .bin file (when we switch laf files in it) if running that laf.bin (I renamed it) through that would work.

Also anytime the pc picks picks it up its in what I refer to as "adb mode" I really shouldn't be able to use lgup in that state I thought? Reason is I'm tempted to just continue the root process and see what happens.
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Im a little confused because ADB shell is reading your device as lucye when it should be h872... that's the first thing odd to me. You may want to read through this thread and see if there is anything in there you need to do to fix that.

https://xdaforums.com/lg-g6/help/random-device-change-t3704384

I attached a screenshot of my adb screen
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
[MENTION=3756477]Ken C[/MENTION] I really think that once you are able to get your DL mode back you need to do a complete factory KDZ flash to get rid of these issues.
[T-Mobile LG G6 Guides, News, & Discussion] OfficialML:
So since I did the process , whenever I flash a new rom , my wifi Mac's address is 02.00 , anybody knows how to fix ?
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
that sounds like a problem with the rom, not the root procedure. id check the thread for the rom you are using
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Funny thing is I'm able with some effort to get into dl mode. When the phone is booted up and I can get lgup to recognize it, it auto boots to download but none of the changes seem to be"sticking" runs through just fine one I'm recognized but still doesn't want to give back dl I'm curious and have been wondering if I could get that separate laf file into the system that way though or does it only do kdz files?
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
so you boot to dl mode with twrp still on it? or regular dl mode? or is it the dl mode splash screen?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Ohh good question lol.. here's what happens, I load up lgup, it can't find the correct phone at first. I mess with the USB options and then picks it up from a different com Port, boots the device to dl itself then looks like it's running correctly after that point. Progress etc all looks right. But after reboot it still won't let me into dl the regular way. No twrp btw.

That make sense? Since your file is renamed to .bin do you think I could run it through lgup and just pick only laf or lafbak also when it asks?

Right now I'm in fwul doing the git pull and phone is booted to os. Kinda curious what I'll get. Usually I want to say it just errors out.

---------- Post added at 10:24 AM ---------- Previous post was at 10:18 AM ----------

I am wondering if I were to try to get an idea older kdz like h or g if that might help out things right. Nothing would sure me to do that last file through adb. More than likely the root thing. Oh that lucye deal is supposedly the device codename from what I got from that thread. Didn't really see any way to change it that I haven't already done

Totally get your concern though. So much that I ran after another adb fastboot install in case I was missing something since it's been a couple years and I had installed the minimal version

---------- Post added at 10:31 AM ---------- Previous post was at 10:24 AM ----------

Getting a USB error in the fwul terminal deal.

I'm curious what your thoughts on this may be . If I can get into dl through lgup could I carry that over you think to fwul?

Could that be the reason for the USB error?
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Unfortunately I honestly have no clue. Your device codename is going to affect a lot of stuff. If you try to flash any files that have asserts for the h872 it wont work on your phone. Any scripts that check your device code name wont work.

Sadly, I have thought of everything I can but I really dont know what is going on with your phone. it's nothing I have ever run into
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Me either and I appreciate your honesty. I get what your saying about the name thing but I never noticed it until you brought it up. I think what I'm gonna try next if I'm able get into dl like I was when using lgup. Not actually doing anything but taking it from that state to fwul and running with it to see, that's if I don't attempt the bin thing I was talking about first. (I can't see where I it wouldn't work unless it would be a version issue)

Do you happen to know of a way to see if your laf is even there without doing circus tricks? I'm going to go to that thread anyways but if your not busy and happen to know I'd appreciate it.

To non readers:

This does not mean you can ask every lazy question you have without even looking. I'm attempting to be an object lesson on how weird it can get it if by some chance of luck I get things back to normal with dl mode. It may help somebody I hope if nothing else.

This person here [emoji116] has helped not only the community, but me personally more than they needed to and I want people to know this is a decent human being here. And I don't say that very often. I appreciate you bro or not bro, handle is a little hard to guess by and I'm not a profile stalker.
[T-Mobile LG G6 Guides, News, & Discussion] OfficialML:
Using the Lineage OS rom
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Are you able to get into TWRP at all? And yeah, I'm a dude lol. I appreciate the words. I'm glad I could help anybody who needed it.

But, back to LAF. To be clear, you have lost TWRP from recovery and LAF, right?

---------- Post added at 03:18 PM ---------- Previous post was at 03:17 PM ----------

Try another ROM and see if you have the same problem. My WiFi mac is fine using the AOSP Extended rom. Most of the Unofficial LineageOS rom's I have tried have always had hardware issues with T-Mobile phones.
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
It seems that way, with twrp I'm a definite yes laf not so sure which is why I asked that what laf your on or not at all question
[T-Mobile LG G6 Guides, News, & Discussion] OfficialML:
I tried Aosp extended as well and it's the same issue there
[T-Mobile LG G6 Guides, News, & Discussion] weakNPCdotCom:
Have you tried running the procedure in FWUL to get TWRP back on LAF since Brian fixed it yesterday?

---------- Post added at 03:23 PM ---------- Previous post was at 03:21 PM ----------

After searching I found this thread https://xdaforums.com/lg-g6/help/lg-h6-h870-wifi-stuck-mac-address-t3706363

I would read through it and see if you find a solution.
[T-Mobile LG G6 Guides, News, & Discussion] OfficialML:
I've tried Aosp Extended as well and it's the same result I dunno why it's doing that