yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] pvaldeben:
Hi All, I have not rooted in years and looking to start again with the v20 on T-mobile. I just installed the latest security patch and im in 10u. Can I use this method to root?
[LG V20 Guides, News, & Discussion] runningnak3d:
Yes -- first post updated.

-- Brian
[LG V20 Guides, News, & Discussion] Stallio:
Need to know which version of TWRP used for this method

Hi utka can you provide me the link where I can download the exact version of TWRP used in this method? I am referring to !COPY 44,91270,24670208,6 doing anything wrong here can result in loosing boot. Also do I need to install python on my PC? ( ignore if it's unrelated question 'noob here's)
[LG V20 Guides, News, & Discussion] utka:
sorry stallio, I'm noob at this ( haven't gathered the guts to root mine yet) , but maybe fellow XDAers can help
[LG V20 Guides, News, & Discussion] Opsectx:
FWUL is a live Linux boot CD. It has twrp and python ready to go for you. If you want to update to newest twrp. Get the twrp for lg v20 newest version and flash recovery partition with newest twrp after you completed the unlock/root method.

As long as you don't have a typo and everything matches up fwul will copy twrp to proper partions with no issues. Just follow the steps by step commands.

I prefer to copy all commands from here to a text editor. And check them to ensure they are proper. Then copy from text editor to terminal.

https://xdaforums.com/devdb/project/?id=20590#downloads

Link for twrp 3.2.1-0 which is what I updated to.
[LG V20 Guides, News, & Discussion] dogemaster420:
do i have to download anything beforehand besides FWUL? just got the V20 and would love to root any help is appreciated. :)
[LG V20 Guides, News, & Discussion] Stallio:
Thanks. !COPY 44,91270,24670208,6 is the code for the specific version used here 'as given in tutorial, few things I would like to know when I will download the FWUL it will have the recommended TWRP in to it so that I don't have to change the code !COPY 44,91270,24670208,6 ?? OR if let say I used the TWRP, the one you provided in the link what will be the modified code?

One more question though unrelated, is there any way apart from reaching The mobile to get the career unlocked? I am pretty messed up brought this phone from a good seller from ebay in starting it was working with my sim but after trying to root and reflashing stock ROM I am locked out. Haven't been able to use this phone since I bought it.
[LG V20 Guides, News, & Discussion] psytr0nic:
in process I dont get that code .
[LG V20 Guides, News, & Discussion] Opsectx:
The contained twrp in fwul matches !COPY code.

Twrp from the link I gave you can be flashed to recovery partion from inside twrp.

I carrier unlocked my v20 by flashing a certain modem lemme see if I can dig up the link. I did that after unlocking bootloader and rooting.

---------- Post added at 12:06 PM ---------- Previous post was at 12:00 PM ----------

I recommend getting unetbootin and using it to create the bootable USB with the fwul image.

After the process your choice of root/ rom/ or updating twrp can be done from inside twrp off a micro SD card. As is fwul will do everything and contains everything to unlock and root and boot to oem rom.

---------- Post added at 12:08 PM ---------- Previous post was at 12:06 PM ----------

Hash codes matched when you did that part?
[LG V20 Guides, News, & Discussion] runningnak3d:
For any brave souls that would like to use a different version of TWRP as part of the root process, this is what you need to change:

These are the parameters passed to COPY

!COPY FD_NUM,SOURCE_OFFSET,SIZE_IN_BYTES,DESTINATION_OFFSET

So the TWRP that is in the repo is: 24670208 bytes

If the TWRP that you want to use is 25981423 bytes, then you would change the COPY command to:

!COPY fd_num,91270,25981423,6

You only change SIZE_IN_BYTES -- do NOT change the src or dest offset ;)

If doesn't make 100% sense to you, then don't try it because at best you will lose download mode, and at worst you can brick your phone.

-- Brian
[LG V20 Guides, News, & Discussion] psytr0nic:
Yes when do hash match .
[LG V20 Guides, News, & Discussion] runningnak3d:
First post update with a zip and instructions for flashing laf back onto the laf partition.

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
Thanks, I will update the first post with what settings are needed.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
also my bootloader is not currently unlocked, so I need to make a backup of everything before I do that. Its going to take a while. In my experience, the file transfer likes to quit right in the middle with no way to resume transfer.
[LG V20 Guides, News, & Discussion] runningnak3d:
File transfer from your phone, or do you mean downloading from Google? If Google is a problem I can find another file host.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
file transfer from my phone to the computer and vice versa. I transfer a lot of audiobooks, comics, and music to the device and it quits mid-way every time. So often I have to do it 1 painstaking folder at a time.

I wasnt expecting us to actually get root so I hadnt bothered unlocking my bootloader lol.

For the KDZ file I was having a bit of issue with google. Download kept failing, but I eventually got it. I had to leave the download window open. Or maybe I just had to get lucky, I dont know. I have everything needed right now though. Just gotta make the backup and I should be good to go. Last I checked it said 2 hours 11 minutes, and then it said 14 hours and sort of sat there for a while, so I dont know how long it will actually take. Thats assuming I'm successful the first time.

Using MTP was one of the single worst things to happen to android. It used to be just fine when the whole thing showed up as a basic USB drive but now we have to deal with MTP every time we do a transfer.
[LG V20 Guides, News, & Discussion] SMTB1963:
Anyone? ANYONE? Bueller?

[*crickets*]

At this point, I'm going to assume I'm bricked for good since I can't seem to get into download mode anymore. Oh well. :crying:

I guess n00bs like me should avoid bleeding-edge stuff like this - although for the life of me, I can't figure out what I did wrong. I may not know what I'm doing, but I'm pretty damn good at following instructions...I guess simple bad luck struck with a random twrp error.

In any event, I'd like to thank [MENTION=3167089]runningnak3d[/MENTION] for all the hard work and excellent writeups. It was fun following your process, and I may have even learned a few things along the way. :good:

Cheers!
[LG V20 Guides, News, & Discussion] runningnak3d:
Does your phone still show that your bootloader is unlocked (the warning screen) when you boot?

If so did you flash TWRP to recovery, and have you tried to get into it with the key combo?

-- Brian
[LG V20 Guides, News, & Discussion] ivoh95:
I dont know anything that could help you fix it. But LG probably would fix it under warranty since we got a warrenty extension due to bootloops, and technically your phone is in a bootloop.
[LG V20 Guides, News, & Discussion] offremike0887:
I may have to bow out. My computer refuses to see my phone in download mode. I even tried the VM method and everything I choose the LG option under USB, it just won't see my phone.
[LG V20 Guides, News, & Discussion] Zacharee1:
Have you tried a different cable?
[LG V20 Guides, News, & Discussion] shrimants:
just to clarify, to get into download mode do you have to reboot the phone while pressing volume up? or do you just plug in as usual for file transfers but hold volume up? Or do you have the phone turned completely off, press and hold volume up, and then plug it in and it automatically boots itself into download mode?
[LG V20 Guides, News, & Discussion] runningnak3d:
With the phone off hold vol up and plug in the USB cable.

-- Brian
[LG V20 Guides, News, & Discussion] The_Anomalist:
On the g6 you can boot download mode using the following: initially press volume+&power button at the same time then let off the power while still holding volume+
[LG V20 Guides, News, & Discussion] caitsith810:
Are these timeouts and errors normal? This is my 2nd time doing this(1st time didnt seem to get recovery, even after reboot) and I got this.
[LG V20 Guides, News, & Discussion] runningnak3d:
No, those timeouts are not normal. Same suggestion -- try another USB cable.

-- Brian
[LG V20 Guides, News, & Discussion] BadToThePhone:
Once someone successfully roots the phone with the new Windows method can you please post your results. Thanks
[LG V20 Guides, News, & Discussion] SMTB1963:
Hi Brian, thanks for responding. :)

Yes, phone still shows bootloader unlocked at startup, and I did flash twrp to recovery but using key combo doesn't work. It just goes straight to LG splash and doesn't do anything else.

But somehow I can now get into twrp by vol up & plug into pc. Only thing I did different was switch to a fresh battery. Weird.

Anyways, now that I got trwp back (I'm assuming it's running from laf), is there anyway to flash something to get the system back? Any help appreciated!
[LG V20 Guides, News, & Discussion] BROKEN1981:
is it normal for the VM to spam Y in a single column? for what ever reason i had a hell of a time getting VM to connect to my device. it kept saying failed, i even checked to make sure adb could see my device and it did. also another odd thing was VM was able to see every usb port i would switch too. so i had a total of 4 lg devices being shown.

also that lg up could not connect to my device either. i had to use uppercut and select upgrade with the 10p kdz. very odd.​
[LG V20 Guides, News, & Discussion] offremike0887:
Hard to believe that would be thw issue when the cable recognizes the phone in any other situation.
[LG V20 Guides, News, & Discussion] runningnak3d:
Do you have another machine you can try? Another USB port? Another cable? Something is very wrong, and that is how bad flashes happen.

-- Brian
[LG V20 Guides, News, & Discussion] Zacharee1:
Sometimes just reversing my cable fixes weird data problems I have. And LAF is a special mode, so you never know.
[LG V20 Guides, News, & Discussion] lovemypurps:
loststill not understanding this please help

im lost as to what to do after input the command ./partitions.py --dump twrptest.img lafbak do i put only that for the command or ./partitions.py --dump twrptest.img lafbak

dd if=twrptest.img of=twrptestout.img bs=1024 count=24092 # This strips the trailing whitespace so the dump is the same size as TWRP

sha256sum twrptestout.img

sha256sum h918-twrp.img

is each likne a commnnd and if so would it be

./partitions.py --dump twrptest.img lafbak

dd if=twrptest.img of=twrptestout.img bs=1024 count=24092 # This strips the trailing whitespace so the dump is the same size as TWRP

sha256sum twrptestout.img

sha256sum h918-twrp.img
[LG V20 Guides, News, & Discussion] rafe83:
"You must have a version of laf that has the COPY opcode." I know this has been discussed but I'm still not sure what it means. Does it mean that you are suppose to be on 10p in order for this to work or does it mean that I need something else?
[LG V20 Guides, News, & Discussion] lovemypurps:
[android@fwul ~]$ cd lglaf

[android@fwul lglaf]$ git checkout h918-miscwrte

Branch 'h918-miscwrte' set up to track remote branch 'h918-miscwrte' from 'origin'.

Switched to a new branch 'h918-miscwrte'

[android@fwul lglaf]$ ./partitions.py --restoremisc h918-twrp.img lafbak

[ 100 % ] 2018-06-21 20:26:01,737 partitions: INFO: Done after writing 24670208 bytes from h918-twrp.img

[android@fwul lglaf]$ ./partitions.py --dump twrptest.img lafbak

[ 100 % ] 2018-06-21 20:30:00,371 partitions: INFO: Wrote 50331648 bytes to twrptest.img

[android@fwul lglaf]$ dd if=twrptest.img of=twrptestout.img bs=1024 count=24092 # This strips the trailing whitespace so the dump is the same size as TWRP

24092+0 records in

24092+0 records out

24670208 bytes (25 MB, 24 MiB) copied, 0.104753 s, 236 MB/s

[android@fwul lglaf]$ sha256sum twrptestout.img

69c86b92f0a4f8099d33ed3b392a4c3d48da8155d441d11735156aa51e818ee0 twrptestout.img

[android@fwul lglaf]$ sha256sum h918-twrp.img

69c86b92f0a4f8099d33ed3b392a4c3d48da8155d441d11735156aa51e818ee0 h918-twrp.img

[android@fwul lglaf]$

thats where i am now
[LG V20 Guides, News, & Discussion] Stallio:
Thanks A Ton

Thanks a lot for your reply and great help.

---------- Post added at 01:34 PM ---------- Previous post was at 01:03 PM ----------

That will be a great help.

---------- Post added at 02:11 PM ---------- Previous post was at 01:34 PM ----------

That will be a great help if you share the link.
[LG V20 Guides, News, & Discussion] klewisjohnson:
I went through this sucsefully but than lime an idiot I used lgbackup. Will this ruin anything? If so what do I need to do to fix. It. Is twrp gone?
[LG V20 Guides, News, & Discussion] eduardoantonio10:
Thank you very much, I could already root my phone, I just need to unlock my H918 if someone knows a method is well come
[LG V20 Guides, News, & Discussion] xpresotw:
stuck

i got stuck on this
[LG V20 Guides, News, & Discussion] runningnak3d:
It is stuck because you are running firmware 10r or later that doesn't have the COPY opcode. If you issue a non-existent opcode to laf -- it hangs.

Downgrade to 10p or 10q as is stated in the first post.....

-- Brian
[LG V20 Guides, News, & Discussion] cnjax:
RIF
[LG V20 Guides, News, & Discussion] fairley:
Okay I got through step 1 but I wasn’t able to get into twrp via download mode. Any ideas on what I did wrong and how to fix it?
[LG V20 Guides, News, & Discussion] LOCO213:
so I have done lafsploit im currentl rooted now how can I get back to twrp to flash mods or roms
[LG V20 Guides, News, & Discussion] cnjax:
You're twrp is on the download partition so boot into download mode
[LG V20 Guides, News, & Discussion] BROKEN1981:
ahh thank for that, i was going crazy. can i also replace recover with it?

edit....

i am very tired. stupid question. just want to say thanks to the op for making this possible. it seems i was doing everything correctly, but on W10 it just never worked. I did a clean install of W7 and funny enough it worked.
[LG V20 Guides, News, & Discussion] BROKEN1981:
I lost TWRP on download mode. Any clue how to get it back?
[LG V20 Guides, News, & Discussion] runningnak3d:
While in TWRP, connect your phone to your PC and:

adb push twrp-3.2.1.img /sdcard/

adb shell

dd if=/sdcard/twrp-3.2.2.img of=/dev/block/bootdevice/by-name/laf

exit

You will now have TWRP on recovery and laf...

-- Brian
[LG V20 Guides, News, & Discussion] scorpio76r:
Quick question, when I open terminal on Linux I don't see anything. I just have the option to write something. Is this correct or should I be seeing something once phone is connected and I open up the terminal on Linux?
[LG V20 Guides, News, & Discussion] runningnak3d:
It is just a terminal -- think command prompt in Windows. You just type what is posted :)

-- Brian
[LG V20 Guides, News, & Discussion] scorpio76r:
so type this all of this :git clone https://gitlab.com/runningnak3d/lglaf

cd lglaf

git checkout h918-miscwrte

./partitions.py --restoremisc h918-twrp.img lafbak

./partitions.py --dump twrptest.img lafbak

dd if=twrptest.img of=twrptestout.img bs=1024 count=24092 # This strips the trailing whitespace so the dump is the same size as TWRP

sha256sum twrptestout.img

sha256sum h918-twrp.img, sorry for asking a dumb question. I just got this device and have never rooted this way so I just wanted to be sure and not mess anything up
[LG V20 Guides, News, & Discussion] psytr0nic:
I booted on usb with forgetfull mode .... no lsof 490 root 44u BLK

stuck here [IMG="ok"]https://imgur.com/5QIqDKz[/IMG]
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=7200067]scorpio76r[/MENTION] Yep. When you run the sha256sum commands, you will get a string of 32 hex characters like so:

sha256sum twrptestout.img
[B]69c86b92f0a4f8099d33ed3b392a4c3d48da8155d441d11735156aa51e818ee0[/B] twrptestout.img

sha256sum h918-twrp.img
[B]69c86b92f0a4f8099d33ed3b392a4c3d48da8155d441d11735156aa51e818ee0[/B] h918-twrp.img

You compare what is in bold -- that is the hash. If they are IDENTICAL, then you can move on to the next step, and type those commands.

[MENTION=2680810]psytr0nic[/MENTION] The line that has /dev/block/sda is what you are looking for. So your fd_num is 39

-- Brian
[LG V20 Guides, News, & Discussion] psytr0nic:
yeah both are identical
[LG V20 Guides, News, & Discussion] BROKEN1981:
Awesome, thanks man! You really go out of your way to help others. Pure example of what XDA is all about.
[LG V20 Guides, News, & Discussion] psytr0nic:
Ooouff finally i figure out bro .. rooted ????
[LG V20 Guides, News, & Discussion] Phoenix591:
My us996 let the magic smoke out the use port (literally..no idea why). Picked up and rooted an h918 no problem thanks to your method. Suprised how it doesn't even have mobile service manager nor facebook/Instagram stubs preinstalled.
[LG V20 Guides, News, & Discussion] BROKEN1981:
My H918 does
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
Stuck On Logo and has no twrp nor download mode

I just tried to root my brother's 918.

But we got a problem.

There's something error when I wrte twrp.img to laf partition and then I can't access download mode nor twrp mode.

I tried to boot it but it stucks on logo please help me what should I do... :(
[LG V20 Guides, News, & Discussion] runningnak3d:
Copy and paste the output of the commands that you ran. Can't help you if I don't know where you screwed up.

-- Brian
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
how to do that??

---------- Post added at 12:13 PM ---------- Previous post was at 12:13 PM ----------

now I cant access download mode and twrp mode.

my device still stuck on tmo logo
[LG V20 Guides, News, & Discussion] runningnak3d:
The only way you could end up in this situation is if you messed up the COPY command. I need to know what you typed before I can help you.

NONE of the rest if this procedure can mess up your phone, only a typo on COPY. Without knowing exactly what you typed, I can't help you.

-- Brian
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
it seems there's trouble on my usb cable when I wrote command ./partitions.py --restoremisc twrp.img laf, its error communication blablabla..

so I decided to go back in 1st step.

I shocked that my laf was gone, something like it's corrupt.
[LG V20 Guides, News, & Discussion] runningnak3d:
Well, you have a brick. You don't restore TWRP directly to laf for this very reason.

If you had followed the instructions, your phone would be fine since the instructions state to restore to lafbak first and then if the flash is OK (by verifying the hashes) THEN you COPY TWRP to laf.

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
Actually, IF you can find someone nice enough to post an OTA update.zip then you can fix your phone IF you can still get to recovery, and sideload the update.zip.

All of my phones are on 10u, and I am not flashing back so that I can get the update.zip. Sorry.

If you would have messed up your phone due to bad instructions, then I would be happy to backup my phone and revert to 10p so that the OTA zip would show up -- but I am just not going to do that because you refused to read the instructions.

-- Brian
[LG V20 Guides, News, & Discussion] cnjax:
Now he's over in the super v20 rom thread blaming it for his brick smh
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
I did and it was success.

This is the other phone, my bro's.

I did like the instructions I did before.

Something trouble on my usb and then it seems laf partition didn written correctly or somthing like that.

---------- Post added at 02:26 PM ---------- Previous post was at 02:24 PM ----------

I have the update.zip

but I cant access twrp nor download either.

The only one I can access it just fasboot mode

---------- Post added at 02:27 PM ---------- Previous post was at 02:26 PM ----------

sorry dude I have explain it on that threat.

Sorry for that.

I dont meant it I just find the solution
[LG V20 Guides, News, & Discussion] runningnak3d:
Well, it doesn't matter if you have the update.zip .. you have lost recovery, laf, and boot. You can do nothing with fastboot. Your phone is a brick.

Had you asked for help when you first ran into trouble, you would have been fine.

Just to be sure, with the phone powered off, hold vol up and plug in the USB cable ... What do you get?

-- Brian
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
yeah.

maybe it should be.

its just dimming on lg splash screen and then boot again when I still push the button.

when I release it, its just boot normally and stuck on tmo logo
[LG V20 Guides, News, & Discussion] runningnak3d:
After the firmware loads there are three boot mode:

Normal -- Do nothing and the phone boots

Recovery - Hold vol down + power / release power when logo shows / hold power

Download mode - With the phone off hold vol up and plug in the USB cable

If NONE of those work, then there is NO WAY to save your phone. Literally. Even my unreleased brick recovery / special root methods will NOT work.

You have got your phone into a situation where it loads the firmware but will not boot. The only fix is a direct UFS write....

-- Brian
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
yes sir

I lost the other two.

and then normal boot just stuck on logo.

Direct UFS...? do you mean it uses some tool like octopus box or something like that?
[LG V20 Guides, News, & Discussion] scorpio76r:
This is what I'm getting every time when entering the whole code. Can someone please help me out?
[LG V20 Guides, News, & Discussion] Libraplum:
Hello guys,

Can someone please upload a video on this rooting process? I don't want to brick my phone.

Thanks.
[LG V20 Guides, News, & Discussion] BROKEN1981:
I might be wrong, but it looks like you copied everything and just put it into terminal.

You have to do 1 line at a time.
[LG V20 Guides, News, & Discussion] scorpio76r:
True, I found that out over the weekend by trial and, error. I don't think that my pc has enough ram though. I also have a 32g USB stick and, can't seem to get enough storage to root this device from my pc. Lol I wish there was a way to do it from the device itself like the old days.
[LG V20 Guides, News, & Discussion] BadToThePhone:
If someone could please help me I would appreciate it.

First how do we know if the system mounted and what does that do?

And second I tried flashing an updated image version of twrp and it wouldn't stick. Here's what happens, when I boot into the rom and boot back into twrp it still shows 3.0.2-1 but if I restart back to recovery while in recovery it will show the updated twrp version. It's almost like I have 2 twrp versions installed and one is in the background. Did I do something wrong somewhere? And hopefully this makes sense.

Thanks for the help.
[LG V20 Guides, News, & Discussion] runningnak3d:
You have two versions of TWRP installed. One is on laf and the other on recovery. When you say: "when I boot into the rom and boot back into twrp it still shows 3.0.2-1" how are you getting into recovery?

-- Brian
[LG V20 Guides, News, & Discussion] BadToThePhone:
By turning off the phone then holding up and then plugging in the usb cable into my computer. Thank you for the response.
[LG V20 Guides, News, & Discussion] runningnak3d:
That takes you to the version that is on laf. To get to the one that is on recovery either use the power / vol down key combo as described in the first post, or use a recovery reboot app (there are PLENTY out there).

If you want to upgrade the version that is on laf:

* Boot to the new version

* adb push twrp-3.2.1.img /sdcard/

* adb shell

* cd /sdcard/

* dd if=twrp-3.2.1 of=/dev/block/bootdevice/by-name/laf

* exit

Replace twrp-3.2.1 with the actual name that [MENTION=8639605]Phoenix591[/MENTION] uses which is something like: recovery-twrp-h918-DATE.img where DATE is the date it was built.

-- Brian