yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Hey ya'll,

Slowly figuring things out as I go along. got a question for those that have accomplished this feat. These commands that I've copied from the op;

git clone https://github.com/runningnak3d/lglaf

cd lglaf

git checkout h872-miscwrte

Please educate me if wrong, (don't learn if you don't ask right?) but once we get fwul up and running we're pulling these & the python scripts from his github repo correct?

Why I'm asking is that I can't get that thing to connect to my network & no amount of searching etc has worked but I've noticed that files of the same name do exist in the lglaf folder within fwul.

With that being said is there any way that I can just switch them out with what he calls for?

I can't even get the 'cd lglaf' command to work and that should run whether or not I've got his particular stuff in there correct?

I'm thinking no because there'd be dependencies and god knows what that goes along with them. and as I'm not seeing a ton of other folks posting questions along this line I thought I'd ask. I'm not the type to just wing something due to impatience I'd rather it be correct.

**Couple things I've learned for those that may be having issues that I was going through.**

1) If you're having trouble formatting the flash drive I've noticed that "sd formatter" seems to work when other won't & use "Rufus" which is linked within the fwul thread to burn it to the stick (make sure you use the DD option when it asks)

2) on Windows 10 to boot from USB you need to disable the secure boot option in the bios, just make sure you've got your BitLocker key to get back in afterward. ( on the 1st gen surface book it's volume up and a quick press of the power button, you keep the volume button pressed until the surface logo pops up then let go and it'll boot right into it)

---------- Post added at 07:23 AM ---------- Previous post was at 07:15 AM ----------

If your completely changing roms that was the wipe procedure. But I would point out that the op seems to recommend that you boot into the rom you've got the device first before going anywhere else with it. He even went so far as to say you didn't have to but that he didn't want us crying if something were to go wrong. For me that's a pretty big endorsement for not gooing from rooting right into flashing something completely different. Some others may have their own opinions and I wouldn't mind seeing what they have to say either but that's my thoughts on it. Since you've pulled it off maybe you could answer the question I posted about the same time you posted yours.;)
[T-Mobile LG G6 Guides, News, & Discussion] agmyers76259:
Right, I was able to boot fine into the rom. I also backed up the original to my MicroSD card. What happens is that whenever I go back to download mode and to TWRP, and then flash the H872 recovery, THEN attempt to wipe everything (advanced wipe) and install LOS 15.1 and Nano GAPPS---it says my recover is still on H870! So...my guess is that the updated recovery is not "sticking"

I am guessing this this is what the cleanup is in part 3---but perhaps like you, I cannot get the files from the git to write to my ADB within the terminal. I get a USB not found error---YES, I was able to do it during Step 2...but after that point I've tried dozens of attempts to get it to output the MISC.img that step 3 needs... any thoughts?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Just got past my network stupidity. So simple, damn thing just wasn't clicking in me head. Left click on data icon move down the list (couldn't read that ant script don't at . 5pt font) got something that allowed me to see my router and connect.

I just did a new flash drive with the persistent img. And the network thing, so I haven't tried the those commands yet. I will also admit to running through a dry run just to see even if fwul threw me an error. Wasn't expecting "not found" though. So I'll try again in a few and see what I get and let you know.

I'm hoping it was just the network thing and it'll run fine by now.

You talking about it not "sticking" though has me thinking about a portion of the process where op mentions something about "if you do this it'll overwrite twrp back to stock recovery"

Can't say if that's it, your issue with pulling the files sounds like me though. Read over his post again I'm sure I read that in there. Been going between a bunch of places after info but I'm reasonably sure he mentions that.

Could be that all that's giving you the problem, if I think of anything that could help or how it worked for me I'll post it.
[T-Mobile LG G6 Guides, News, & Discussion] megamanfre:
Anyone else having a problem downloading the H918 kdz? I keep getting "failed-network disconnected" or "failed-network error" messages
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
There was another guy having the same issue. Somebody put a copy of it up on their own deal. It's in here couldn't tell you where though. Me, I let it sit overnight to get it
[T-Mobile LG G6 Guides, News, & Discussion] agmyers76259:
Yes, will do. Ultimately I am just going to ensure I get root first by figuring out how to get Step 3 Cleanup completed. I have reformatted by USB with the Persistent version of FWUL, hopefully I will get traction when I try it later tonight. Thanks...

If anyone has a shortcut (that is safe) where I can just go straight to LOS/gapps after Step 2-let me know-but the sticking point is getting recovery to mount /system in the H870 TWRP. I have a working phone and completed Step 1 and 2 successfully, so it absolutely could be worse!

Thanks in advance...
[T-Mobile LG G6 Guides, News, & Discussion] onaikel:
If you want to restore original laf:

1- Download original laf here: https://drive.google.com/file/d/1CfqXtGVMlyOHbOfzFGTFOKBECF1oGkML/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] megamanfre:
Do I have to go right to phase 2 after phase 1? Im having issues installing fwul and running from my USB stick, but wanna do phase 1 now, and get it ready for when I get the chance to play around with getting fwul working properly.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
[MENTION=4767117]megamanfre[/MENTION] No you don't. You can keep the H918 laf on your phone as long as you want.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] agmyers76259:
Everyone - if you have successfully completed step 2 in this guide - as long as you flash (dont reboot, just flash the H872 TWRP file and go back, then go to reboot, and reboot to recovery--only then will it "stick" temporarily)---after that point, you are free to wipe your system/davlik/cache/data (I keep my Rom/GAPPS on my microsd) and Voila!
[T-Mobile LG G6 Guides, News, & Discussion] agmyers76259:
Does anyone have the Misc.img file they can post for step 3? I cannot get it to pull from the python repository---this will allow me to complete step 3 of the process.
[T-Mobile LG G6 Guides, News, & Discussion] Shabby The Dev:
Is there any working root success report on H872 LG G6 Tmobile because I read post someone had an issue of stuck on fastboot or what

So please tell me is there any safe tested rooting method for H872 Specific model?
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
This method in this thread is *for* the T-Mobile H872. However, there is a more user-friendly method coming soon if you want to be safe.
[T-Mobile LG G6 Guides, News, & Discussion] fubugang:
This method seems too dangerous
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
yes it is...a lot of user now have hard brick..and if you get hard brick you cannot repair anymore..nobody find a solution for hard brick and nobody have a firehose file..the only person can release firehose lg g6-g5-v20 is LG..the only way to get this file is to sign a petition to lg and scream to lg..i spend my last 4 week to search a solution..but nothing..
[T-Mobile LG G6 Guides, News, & Discussion] televate:
I assume after doing that we can boot into download mode like normal? This would be the key to restoring phone to stock if necessary?
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Its there and should work. It's trying to get all the steps to work out without a kink that seems to be the biggest issue. Only thing I can figure is the process gets automated so you don't end up asking questions that you can't seem to get answers to.

Here's one. When I run fwul and type in:

cd lg laf,

I get file or directory not found and can't for the life of me figure out why. Could be as simple as you need the device plugged in for that to work. But I can't get somebody that has pulled it off to say anything regarding that.

I know cd is change directory and it's pointing at that but why am I getting this error. That's the first dang step and I can't get an answer on it.

Add : excuse me that's the second thing to do in the fwul portion of the procedure.
[T-Mobile LG G6 Guides, News, & Discussion] onaikel:
Yes
[T-Mobile LG G6 Guides, News, & Discussion] Ravenjolly:
First, its lglaf, second did you do the step above it? Because if it doesn't clone then it wont be there
[T-Mobile LG G6 Guides, News, & Discussion] secretstring:
Hey guys, I was wondering if someone who has gone through this process could give me some insight into how risky this process is. Is it worth it just to wait for the easier method that is coming? The part that concerns me the most is pulling out the usb plug, since I don't really know how big of a time window I have before I would end up bricking my phone. I really want to get my phone rooted as soon as I can, so if this method is safe enough, I would really like to try it. I have experience rooting my Nexus 5 that I used to have, but I've never really had to do something like this to achieve root. Anything would be greatly appreciated, thanks!
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Actually I know about the lglaf bit I tried (file or directory not found) and just for kicks split it to see if it would make a difference. that gave me a too many arguments message. I tried through fwul and wasn't able to pull the repo at all.

Strange thing, I run those same commands in Ubuntu on W10 and they run fine. Except for the part where I need USB support and the first misc.img command I also recurrence not found. And that is after cloning the repo.

I even tried to point it just to the LG file itself and got the same not found message.

Its decidedly strange since if I'm able to clone the repo in one Linux build I theoretically should be able to clone it in the other. Granted all the drivers and whatnot are not there but I'm at a loss as to why it works for one and not the other and I'm not foolish enough to attempt this without running through the procedure that has been proven to work.

I do appreciate the response though. But since I've got 2 papers and a final to study for this will have to be put on hold until I either have the time to work through all this, or am able to get pointers that help alleviate this issue.

Theoretically though as long as I follow the directions given (which I'm more than capable of, this oddness is the only thing holding me up) I should be able to get it to work.

---------- Post added at 10:56 AM ---------- Previous post was at 10:03 AM ----------

Now that is interesting. Couldn't clonr the repo no matter what.

Just for the heck of it I tried again and it worked. What the frigging hell? I swear I did not one thing different than I had been. I was just following the commands posted in the op.

So tempted to keep going and do this but just don't have the time and In a test yesterday I had an issue with that first misc.img command throwing a not found on me.

I know these posts could make some folks nervous but I feel as long as everything we're running goes through this really shouldn't be the end of the world to do.

Plus it's my hope that the snags I've hit may help out the next person when they come across them, if they do. They'll go looking for the answer and maybe it'll be in one of these or in a reply to one.
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
If I recall correctly, [MENTION=3167089]runningnak3d[/MENTION] said a new, safer method was coming shortly.

To those having issues, or are afraid to take the risk, just relax and hang around until it drops soon enough.
[T-Mobile LG G6 Guides, News, & Discussion] MetroWestMA:
Everyone -- I got through his a few days ago, and phone has been rooted, works great and stable. I can confirm a few things:

1) setting the dun flag to 0 does not hide tethering from TMobile, but WiFi Tether Router does (I think it increments the TLS and does a few other things that TMobile checks), and runs dnsmasq which is a Linux DHCP/NAT command that I have used on Linux for network sharing apps. It also allows multiple devices to see each other setting up a real mini network like a true router and is highly configurable (like a router).

2) After the root process, your internal memory is left unencrypted which is somewhat scary since anyone could steal your phone, boot into TWRP, and mount it to a PC and read everything. So -- does anyone with rot expertise know if you can encrypt the image (or pw protect TWRP) and SD card so your data is safe? I read somewhere that you can do this, but I would image that TWRP plugins would no longer work properly....right?

MW
[T-Mobile LG G6 Guides, News, & Discussion] igorya79:
After the first unsuccessful attempt my phone could come in the download mode.

I tried to re-do all the steps, but it did not fix the problem, but it became even worse pehodit phone in download mode, instead I get this message: your device has a routine safety check and will not boot. this may be a temporary problem. if this message occurs repeatedly,

View attachment 4483080

is my phone a brick? or is there hope to raise it?
[T-Mobile LG G6 Guides, News, & Discussion] MudaTrucka:
Make sure you unlock the bootloader
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
Your bootloader is locked.

Here's what you need to do...

Step 1 - Boot back into Download Mode

Step 2 - KDZ back to stock with the 11g KDZ.

Step 3 - Enable Developer Options again, check OEM Unlock and USB debugging.

Step 4 - Connect to USB and reboot into fastboot mode with "adb reboot bootloader"

Step 5 - Perform "fastboot oem unlock"

Step 6 - Boot into the system, and restart the phone.

Step 7 - Redo the entire rooting process now from the beginning.
[T-Mobile LG G6 Guides, News, & Discussion] runningnak3d:
Actually on the V20 (I don't have a G6), once you boot without your bootloader unlocked, and with a modified laf, boot or recovery, there is no fixing it. Even if you flash the KDZ, it doesn't overwrite the persistent partition, and that gets flagged.

Now I am not saying that this happens on the G6, but I don't see why LG would handle it any differently. That is why I have a warning that you MUST unlock your bootloader or you will have a brick.

As for the safer method (which will among other things, check to see if your bootloader is unlocked), I have run into issues with KDZ flashing. Until they are sorted out, there will be no safer method.

-- Brian
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Thanks for the info man
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
When I initially attempted the exploit I did so with my bootloader locked (unbeknownst to me).

I was successfully able to restore using the KDZ (which got rid of the boot error) and booted fine back into stock where I started over from the beginning after unlocking it via fastboot oem unlock.

So perhaps the G6 is different, or I got incredibly lucky. I then restored the proper G6 LAF manually. I haven't a clue what's in my persistent partition, but the phone functions fully with root and TWRP in recovery.
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
guys i have the msm8996 firehouse for lg g5-g6-v20..now i need some expert that can try to make the magic to extract all we need for qfil and posting the tutorial for the hard brick
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
So...

What do y'all think on the update to oreo again eventually announcement? Lol

Figured I'd be the first to ask. And what are the chances they block the hole found here?

Still haven't actually rooted yet got one more final exam to deal with.
[T-Mobile LG G6 Guides, News, & Discussion] NighthawkXL:
Where in the blazes did you find those? I don't need them... but it seems strange that they haven't been posted elsewhere around the net if they where leaked from LG/QC. Obviously, you can't post them directly here on XDA. I'm leery they might be fake unless you know someone at Qualcomm who risked their job...

*Edit - I found your post. But still, we'd you find these? I'll see if they look genuine.

*Edit 2 - Those firehose files going around are NOT for the LG G5, G6, or V20 at all. But the Xiaomi Mi5. Please, please do not flash them to your eMMC. Unless you want a paperweight that even LG's Repair Center will reject.
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
This file are not Just for xiaomi this file is universal msm8996 emmc but you must know how to doit this file will not crash the phone because you will reject from programma and will fail is 100% safe because if no work forma you smartphone the program will not let you do nothing root is dangerous this not..an for say this is because i already test 100 time on my smartphone
[T-Mobile LG G6 Guides, News, & Discussion] davenger1:
Having trouble removing TWRP from laf partition.

Can anyone make a flashable zip to restore laf partition?
[T-Mobile LG G6 Guides, News, & Discussion] allstar1397:
Anyone able to install xposed on your rooted g6? mine doesn't seem to be functioning. Also is there anyway to get in to twrp recovery without using a usb?
[T-Mobile LG G6 Guides, News, & Discussion] elmy24:
when i run these commands :

./partitions.py --dump misc.img misc

./partitions.py --dump misctest.img misc

i get this:

[IMG="error"]https://image.ibb.co/h37Xoc/20180430_142811_1.jpg[/IMG]

and when i run the nex 2 commands i get : no such file or directory,

is it normal ? how do i fix it?
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
i will flash again a t.mob smartphone of mine friend so for don't go again in a same trouble when i flash the laf i will immediatly remove the cable right?
[T-Mobile LG G6 Guides, News, & Discussion] saigonson:
I can flash TWRP and It was replaced download mode, it will run TWRP when user go to download mode but failed to mount system as read/write (just read-only) so it is not root when boot to phone :(. Please help me to mount system as read/write.
[T-Mobile LG G6 Guides, News, & Discussion] sagorieli13:
hello, i have Tmobile LG g6 and i'm on 10e firmware. is it safe to downgrade to 11G?
[T-Mobile LG G6 Guides, News, & Discussion] mccrackengm:
would anyone mind making a video guide

the whole process is a bit confusing would anyone mind making a video guide?
[T-Mobile LG G6 Guides, News, & Discussion] johndc7:
I believe that's an upgrade not a downgrade. 11g is the latest firmware unless they have released another update since this was posted.
[T-Mobile LG G6 Guides, News, & Discussion] Charlyarp27:
How to unroor

Work fine but how to unroot?

Thank you
[T-Mobile LG G6 Guides, News, & Discussion] Ken C:
Maybe I'm totally wrong here man but I've been kinda following your posts and if I remember correctly your model wasn't the one this procedure was figured for and that's where all your trouble started. But if you can fix it and want to try again it's your deal I just don't think it'll work. But that's me and it's not my phone
[T-Mobile LG G6 Guides, News, & Discussion] Denversmartphone:
my personal phone was bricked...the h871 and the h872, i root the h872 from my friend and this time follow step by step the tutorial...all work okey rooted and working very good..now i just have to find a way to remove hard brick from h871 and h872 and is for nothing easy and we are only in 3 to find solution to this problem...btw this time the root work okey and my friend used the latest trwp posted in xda for h872..
[T-Mobile LG G6 Guides, News, & Discussion] mccrackengm:
On step 3 in TWRP

I can't mount system as (read and write), I can only set it as (read only),

also when I try to do data format it says

failed to mount /system

failed to mount /data

...done

unable to mount storage

Anyone have any tips that could help
[T-Mobile LG G6 Guides, News, & Discussion] Ravenjolly:
try this twrp
[T-Mobile LG G6 Guides, News, & Discussion] theartialmartist:
It drives me insane the way developers leave 4-hour branches of research open-ended as assumed knowledge ...

HOW? HOW can I use this TWRP instead? am i supposed to download the recovery.img to my internal storage? External storage? The linux USB? a PC? Fastboot?

Every single person rooting an H872 with this method ran into the same problem wiping and mounting system, right? HOW can i use this TWRP instead?
[T-Mobile LG G6 Guides, News, & Discussion] Ravenjolly:
It drives me insane that people can't read through most pages of a thread first before doing some kinda procedure as risky as this one...

Personally, I haven't done this yet so my assumption will be to go through the procedure in OP and then flash the recovery linked instead of the one provided (doing only the instructions that flash twrp). Of course, I could be wrong.
[T-Mobile LG G6 Guides, News, & Discussion] theartialmartist:
I thought i got through everything but lost Root with a factory reset from TWRP

Can someone help me out
[T-Mobile LG G6 Guides, News, & Discussion] theartialmartist:
Please someone. been at this for 4 hours.
[T-Mobile LG G6 Guides, News, & Discussion] Opemilekan:
I would love to make one but my phone is now hard bricked after flashing twrp for h872. I am looking for a solution to hard brick if anyone would like to help me. All and any help would be very appreciated. This is the link: https://xdaforums.com/tmobile-g6/how-to/reward-donation-hard-brick-lg-g6-h872-t3776163
[T-Mobile LG G6 Guides, News, & Discussion] theartialmartist:
Let me rephrase now that anxiety has calmed.

This step by step list is magnificently detailed, but i am so n00b i lost step as soon as the slightest modification came into play. I managed to install the replacment twrp i think, as i was able to mount storage

I do not get a "recovery-from-boot.p" or .bak to delete at the very last steps.

Also i lose root after booting once fully, then going back into twrp and formatting data (testing a full factory reset)

Can i get around this by just flashing 10e stock rooted?

Am i doing something wrong?
[T-Mobile LG G6 Guides, News, & Discussion] christopherrrg:
You need to flash magisk or supersu after twrp
[T-Mobile LG G6 Guides, News, & Discussion] Mr_F10ch3:
Hi to all, i read and follow step very carefully, all was going ok but i have a problem after

.

i lost download mode, when i try to put it back on download mode phone goes to fastboot.

How can i get download mode back to star from begin again?
[T-Mobile LG G6 Guides, News, & Discussion] mccrackengm:
still cant mount as rw after update

I still cant mount as rw - its only allowing me to mount as read. Is there any news on another update the new recovery.img did not work
[T-Mobile LG G6 Guides, News, & Discussion] sagorieli13:
please someone make video tutorial
[T-Mobile LG G6 Guides, News, & Discussion] mccrackengm:
any update?

is there any word on a rw mount update the updated file still doesnt work
[T-Mobile LG G6 Guides, News, & Discussion] arandom:
Does anyone know if there is a way to make SafteyNet apps like Snapchat useable after this? If so I would be more than happy to make a video tutorial.
[T-Mobile LG G6 Guides, News, & Discussion] purplekushDGK:
magisk has a hide option, cannot have xposed on, turn off and reboot and all should be well.