yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] datvui2211:
I means, whenever I reboot, it boots to twrp, I can't get my system booting, even when I check in file manager in twrp, system's still there. What should I do? :crying:
[LG V20 Guides, News, & Discussion] cnjax:
I just told you, use the mount command within twrp and check system then use twrp to boot to system. If that doesn't work you may need to update your twrp version
[LG V20 Guides, News, & Discussion] datvui2211:
Yes, I did what you said, but it'still not working,

How can I find an new twrp for h918? Tks
[LG V20 Guides, News, & Discussion] cnjax:
There's this really neat feature built into xda and the internet it's called search... Try it

The answers are out there
[LG V20 Guides, News, & Discussion] runningnak3d:
What did you do to get stuck in a bootloop? Did you take an OTA?

-- Brian
[LG V20 Guides, News, & Discussion] b8engl:
I'm answering my own question, since no one did!

If anyone decide to roll back and be able to use download mode again, you should pull the laf.img and recovery.img from a working phone or extract from .kdz.

Paste the images in /sdcard and use:

adb shell "su -c 'dd if=/sdcard/recovery.img of=/dev/block/bootdevice/sde2'"

adb shell "su -c 'dd if=/sdcard/laf.img of=/dev/block/bootdevice/sda1'"
[LG V20 Guides, News, & Discussion] suhridkhan:
I wonder if this is possible to be included in the twrp, like the ability to flash in the laf partition!
[LG V20 Guides, News, & Discussion] quinciebee:
Wow.

So a couple of things. I'd never in my life heard of FWUL, nor did I even know that you could boot from a USB drive. I've always had Samsung phones so, I've never had to attempt the rooting procces for an LG. I stayed up until 2am in the morning reading through this guide and all the comments, and for the life of me I could not figure out how to get my phone rooted. I finally decided to just go to sleep, but when I woke up this morning, I hopped right back on, and literally 1 hour later, my V20 was rooted. It just takes a little bit of determination and a whole lot of common sense. Thank you so, so much to [MENTION=3167089]runningnak3d[/MENTION] for providing this root method. It seemed impossible at first because of all the scripts, which I actually copied by hand, because I didn't realize I could access Mozilla from FWUL. :silly: Once again, thank you runningnak3d, you are a legend!
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
I lost my original misc.img when I flash twrp in second time.

Now my S/N is blank.

My network locked too and I can't use Tmo sim unlock bcause they were detected that my phone has no S/N or not in their eligibility rules.

What should I do???

How to manually push S/N on the phone based on S/N in back of battery.???

Need ur advice please.

Thanks in advance.

Sorry for bad english
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Can this be rooted with system root and not magisk root? Because isn't magisk systemless root ? Sorry if I am wrong .
[LG V20 Guides, News, & Discussion] cnjax:
Yes Magisk is systemless, and depending on the version of supersu is systemless as well.
[LG V20 Guides, News, & Discussion] runningnak3d:
There are posts out there on how to fix your misc partition. You will have to use a hex editor.

-- Brian
[LG V20 Guides, News, & Discussion] Almond_Cacao22:
Emmm is it works for every 918???

I thought it has a unique code or something else every phone.

I'll try.

Thanks for respond
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Oh okay so another question can this be rooted with SuperSU that not systemless ?
[LG V20 Guides, News, & Discussion] cnjax:
I'd recommend using the latest stable version or the latest beta, there's threads for both on xda, both are systemless
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Okay thanks a lot so by what your saying only systemless works right now .
[LG V20 Guides, News, & Discussion] cnjax:
No I didn't say that, what I said is the latest versions of supersu is systemless
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Oh okay thanks I just took it wrong the first time
[LG V20 Guides, News, & Discussion] stillblaze01:
Worked like a charm . good instructions thank you so much . thanks :svetius:
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Thanks so much for your work, it worked for my LG V20 H91810q you guys are great and everyone that worked on this now time to go find a good rom and sound mod and to make the speakers louder thanks so much you guys ?
[LG V20 Guides, News, & Discussion] stillblaze01:
Have a question when I boot into recovery I get the dead android. Unless I try to boot into download mode with a pc then twrp pops up . the twrp app says I have no custom. Recovery. What did I miss. ?
[LG V20 Guides, News, & Discussion] suhridkhan:
You don't have twrp in your recovery partition. Most likely you missed this following step.

adb shell dd if=/sdcard/h918-twrp.img of=/dev/block/bootdevice/by-name/recovery

You can just flash twrp again, while booted into your twrp in the download mode.
[LG V20 Guides, News, & Discussion] stillblaze01:
Hey thanks a lot for answering my question but I have another one where do I find the T wrp image so that I can replace it it's not in my sd card can I extract.
[LG V20 Guides, News, & Discussion] suhridkhan:
https://xdaforums.com/v20/development/recovery-twrp-3-2-1-0-t3720239
[LG V20 Guides, News, & Discussion] stillblaze01:
Dude. I feel like a big idiot. For some reason I thought I could only use the twrp that I used in fwul.

Pardon my ignorance. And thank you for helping me out.
[LG V20 Guides, News, & Discussion] agentkalaw:
I just went through the steps on part 1 which went really smooth and I can boot into twrp. My problem is in part 2:

adb push Magisk-v16.0.zip /sdcard/

adb push h918-twrp.img /sdcard/

adb shell dd if=/sdcard/h918-twrp.img of=/dev/block/bootdevice/by-name/recovery

for some reason when I do these commands I get a "no such file or directory"

attached is a screenshot

https://imgur.com/pT6DivM

thanks.
[LG V20 Guides, News, & Discussion] cnjax:
Since you can get into twrp why not flash magisk and the updated twrp from there?
[LG V20 Guides, News, & Discussion] agentkalaw:
I was thinking about that and just wanted to confirm.

is there a link to how i can push magisk and other things i needed to do in step 2? thanks for your help
[LG V20 Guides, News, & Discussion] cnjax:
Well you would flash magisk like any other zip. Flash twrp by selecting image and flash it to the recovery partition
[LG V20 Guides, News, & Discussion] agentkalaw:
Thanks! I think that solved it.
[LG V20 Guides, News, & Discussion] Sadistic_Loser:
If you happen to have a SD Card, you can just download both Magisk and this new TWRP:

https://www.google.com/search?ie=UTF-8&source=android-browser&q=lg+v20+twrp

*Make sure you select your correct variant model, and once you have both Magisk and TWRP, flash them from within TWRP.

*In TWRP, select install then choose install img on the bottom right, wherever you put the new TWRP img that's where you'll see it. Then select from the two options, Boot or Recovery, choose recovery then reboot the phone back to recovery.
[LG V20 Guides, News, & Discussion] cnjax:
You're late to the party
[LG V20 Guides, News, & Discussion] agentkalaw:
Thank you!
[LG V20 Guides, News, & Discussion] igorya79:
hi guys, the topic is very large, and perhaps this issue has already been raised somewhere.

How to remove the custom recovery and get back the factory firmware?
[LG V20 Guides, News, & Discussion] Sadistic_Loser:
Alright cool but nobody asked you ;)

---------- Post added at 05:41 AM ---------- Previous post was at 05:26 AM ----------

I think all you have to do is grab the KDZ that is for your variant and flash everything back to stock with LG UP. I may be wrong though.
[LG V20 Guides, News, & Discussion] igorya79:
how did you extract the necessary files from the firmware? (what software to use)

and how these files are signed in the archive?
[LG V20 Guides, News, & Discussion] b8engl:
The easy way: https://xdaforums.com/showthread.php?t=2600575

If you would like to explore the tool : https://github.com/thecubed/kdzutils

Here's another one: https://github.com/innfinite4evr/Kdzextractor
[LG V20 Guides, News, & Discussion] igorya79:
I got these files from the firmware:

recoverybak_20614.bin

recovery_10246.bin

lafbak_91270.bin

laf_6.bin

which of them should I use?

and how to convert them into .img (just rename it?)
[LG V20 Guides, News, & Discussion] b8engl:
recovery_10246.bin > recovery.img

laf_6.bin > laf.img

Just rename them and change the extension to img
[LG V20 Guides, News, & Discussion] udis:
I'm getting this ready only filesystem message at the end of the first part at the hash check and am stuck. I used the persistant fwul and burned the 8gb image to an 8gb USB stick with Rufus. Thank you!
[LG V20 Guides, News, & Discussion] b8engl:
Use a VirtualBox, it's easy that way ( swap USB conections )

Install the LG drivers ( reboot if necessary )!

Don't need to use the extension pack and use the USB 1 protocol, take a look here: https://xdaforums.com/tmobile-lg-v10/general/root-h901-nougat-t3773942

Follow the OP, and copy paste everything ( safest way )
[LG V20 Guides, News, & Discussion] igorya79:
thanks bro, this method really works.

now the next question is: how can I cancel the factory unlock permission? (this function is not available in the developer menu)

main task: remove warning with a yellow triangle (screen saver when you turn on the phone)
[LG V20 Guides, News, & Discussion] b8engl:
You have to flash the recovery.

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

You have unlocked the bootloader, that’s why!

If you relock it you will format the device.
[LG V20 Guides, News, & Discussion] igorya79:
fastboot oem lock - this command removes the yellow triangle!
[LG V20 Guides, News, & Discussion] Icohedric:
lglaf

the github link is a 404... is there another link I can use that would work with this?
[LG V20 Guides, News, & Discussion] b8engl:
Please explain! What link?
[LG V20 Guides, News, & Discussion] Icohedric:
This link for github /runningnak3d/lglaf that you're supposed to type in for the first line of code
[LG V20 Guides, News, & Discussion] b8engl:
You are right! [MENTION=3167089]runningnak3d[/MENTION] deleted the repository, you have to ask him I guess...
[LG V20 Guides, News, & Discussion] Surly33:
Just getting started with the LG V20. Is this method viable: https://wiki.lineageos.org/devices/h918/install ? Nope. Well, at least not on my software version.
[LG V20 Guides, News, & Discussion] xdasree:
looks like repositary deleted [MENTION=3167089]runningnak3d[/MENTION]

Can anyone have alternative
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=4590816]xdasree[/MENTION] I migrated all my repos to GitLab when it was announced that Microsoft would be buying GitHub. I have updated the link in the first post.

-- Brian
[LG V20 Guides, News, & Discussion] xdasree:
Thank you Brian for superfast response.

Looks like I'm getting timed out error, Not sure weather it's coming from repository or my USM image problem.

after issueing "./partitions.py --restoremisc h918-twrp.img lafbak" getting below error after approx 5ms of wait :

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 110] Operation timed out

---------- Post added at 03:40 PM ---------- Previous post was at 03:38 PM ----------

Thank you Brian for superfast response.

Looks like I'm getting timed out error, Not sure whether it's coming from repository or my USB FWUL image problem.

after issueing "./partitions.py --restoremisc h918-twrp.img lafbak" getting below error after approx 5ms of wait :

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 110] Operation timed out
[LG V20 Guides, News, & Discussion] evolucian911:
I am also getting the same error. I tried a laptop and then my desktop and then figured i would ignor the warning and ry a vm. same thing on them all. thought i was super out of luck when the link didnt work. now that is has been migrated there is hope again :D
[LG V20 Guides, News, & Discussion] Sadistic_Loser:
If you do that doesn't that brick thr device ?
[LG V20 Guides, News, & Discussion] evolucian911:
Thanks alot mate. I tried an older laptop with no usb 3 controller and everything worked smoothly. Every Step worked as stated. Im now rooted. All i need now is a way to netowrk unlock via root. I will be sure to donate!
[LG V20 Guides, News, & Discussion] BROKEN1981:
Is there any other reason that people moved to GitLab other then "we just hate MS and anything MS related"?

I've been using MS since W95, so maybe I am a bit baised.
[LG V20 Guides, News, & Discussion] manolocorral:
v20

Hi Brian. I tried with your links updated but is not working. Say "unable to access". Thanks
[LG V20 Guides, News, & Discussion] suhridkhan:
Agreed. Can't understand the hate behind MS at this point, specially when these days MS is becoming more and more developer friendly, while Google is closing down things in many ways.

By purchasing GitHub, MS basically saved this great developer platform from extinction.

Disclaimer: I am also a big fan of MS products, specially Windows, Office and Surface.
[LG V20 Guides, News, & Discussion] ric_ta:
I've tried 3 different laptops (one that is 10 years old) and I get a timeout error doing the. /partitions.py - - restoremisc command. I am on 10t. Do I need to downgrade?
[LG V20 Guides, News, & Discussion] gavilan2010:
Yes i belive u need to be in P or Q firmware thos are the one who had the codes. That root is posible read the firts page he recommend P.
[LG V20 Guides, News, & Discussion] ernestico911:
Hello, i know this thread is only for root and problems with root process but, if anyone can tell how can I restore Download partition for locking bootloader and Flash new KDZ, I only root this device for unlock not for work with root permisions

Sorry about my post, I just read the 1st post again and see the solution.
[LG V20 Guides, News, & Discussion] Ohitstarik:
bless you man, followed this to the letter and got no problems. wasnt even that difficult, idk how people like you do this **** AND keep a life going on the side with work and whatnot. gonna go flash LoS and that gamma kernel now, thanks for all that you do.
[LG V20 Guides, News, & Discussion] Ohitstarik:
"If you use ANY version of TWRP besides what is in the repo, you will lose download mode since the values for COPY are specifically for that version."

So we cant update TWRP or we'll lose download mode? Is there any way to upgrade the version of TWRP we're on and change the value for COPY?
[LG V20 Guides, News, & Discussion] runningnak3d:
Once you have TWRP, you can install any version that you want.

Also, for the people that just don't understand why you would want to keep TWRP on laf as well, I will post a zip you can flash.

Unless you are using an LG tool, there is never a reason why you would want laf instead of TWRP.

You want flash back to stock using a KDZ? There are several back to stock zips you can flash in TWRP. Those zips include laf.

-- Brian
[LG V20 Guides, News, & Discussion] SMTB1963:
delete
[LG V20 Guides, News, & Discussion] b8engl:
Maybe he/she want's to activate the insurance warranty or want's to sell the device in a original state... or just want to root the device to sim unlock it, and then restore the device to his original state to receiving updates without breaking the device.
[LG V20 Guides, News, & Discussion] kidbowsur:
any update on the operation timed out error or is there nothing i can do?
[LG V20 Guides, News, & Discussion] evolucian911:
This dose not work on VMs. U get that error in a vm.
[LG V20 Guides, News, & Discussion] b8engl:
That's not true!

---------- Post added at 10:10 AM ---------- Previous post was at 09:55 AM ----------

You have to be on download mode for this to work! If you chose to use a VM you have to switch the USB comection ( USB 1/2 protocol ). Use VirtualBox!
[LG V20 Guides, News, & Discussion] illitero:
Knowing how easy it can be to bork an LG device, I was hesitant to get into this task. Even when I got myself to, it took a couple days to complete because at any slight suspicion of failure, I'd use that as an excuse to give up haha. I think the biggest cause of the hesitation was the simultaneous repeats of heavy warnings and offering zero assistance outside of the direct task itself. I understand the point being that this isn't something to take lightly, but the extra searching for documentation/applications/troubleshooting took me all over the site for the last four hours despite already having knowledge/tools/drivers from previous work on other LG phones.

Having said all of that, however, I just wanted to make sure I took my friggin' time. I don't think I can count how many different times I've gone through the guide and associated material over the last week. The guide is expertly made, so the only *real* issue I ever had was being unsure on the output of certain terminal commands. The last couple laf commands just entered a new # line and I had no clue on if it was working or not, so I was sweating when the time came to reboot into TWRP for the first time lol.

THANK YOU for your efforts and the efforts of others on this site in coming together to share work and knowledge. You make magic real <3
[LG V20 Guides, News, & Discussion] vishuxperia:
Well I tried this method first time around march and lost my download mode. Turns out my USB was not workimg fine, it was injured in an accident with me.

I waited for new ota and I tried it again today.

It works like magic...

Thanks for this easy tutorial and all your hard work..
[LG V20 Guides, News, & Discussion] iBowToAndroid:
Why does the OP say you can use DirtySanta to root older versions? I just tried it on 10d and I'm now hard bricked.
[LG V20 Guides, News, & Discussion] runningnak3d:
That should say DirtyCOW not SirtySanta -- sorry, that was a typo. Either way, in the DirtySanta thread it specifically states that you will brick an H918. I have updated the first post.

-- Brian
[LG V20 Guides, News, & Discussion] ernestico911:
there is any way to just change the recovery for TWRP instead of LAF partition?
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
[MENTION=3167089]runningnak3d[/MENTION] Hey man I have to re-root with this new method. So my question is if I extract the laf_6.bin from my 10p kdz using WindowsLGFirmwareExtract, and rename it laf.img could I then DD my laf back that way? If so I wouldn't mind providing the laf's from the different firmware's and instructions for those that would like to restore it in a guide to save you the time of having to make the zip. I just like having that fallback as well as twrp on recovery as I use lg tools a lot. It's the first time I've extracted a kdz and not sure of the procedure to get a working boot, and system image from the fragments the kd provides. Otherwise I would just do that to get the files I need for future rebases. I just figure if that would work I save you the effort and time to make a zip. :)
[LG V20 Guides, News, & Discussion] runningnak3d:
Yup, extract and dd it onto the laf partition. You don't need to do it for each version -- the 10p laf provides all the functionality that is needed -- they only removed things from later versions.

-- Brian
[LG V20 Guides, News, & Discussion] gavilan2010:
Please make a zip to flash laf and recovery in twrp reboot and everything is stock if u can
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Hey [MENTION=3167089]runningnak3d[/MENTION] got that guide up. Here is the link: https://xdaforums.com/v20/how-to/guide-h918-restore-laf-partition-t3804728
[LG V20 Guides, News, & Discussion] gavilan2010:
Thanks
[LG V20 Guides, News, & Discussion] knophler:
I'm stuck in a boot loop (gets to LG screen) after flashing WETA rom (not a boot loop to TWRP)..... started with H91810P, no problems with lafsploit part1, minor issue with part2 and lost download mode. have TWRP 3.0.2-1 on recovery, can still get to fastboot....

do i need to restore LAF partition for download mode (https://xdaforums.com/v20/how-to/guide-h918-restore-laf-partition-t3804728) ? then update via KDZ???? or is my problem not related to related to lafsploit at all and i'm just special ed and my own worst enemy??? :confused:

Thanks again guys. :sigh:
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
You can't use WETA it's based on a pre 10P stock rom & is ARB0. Your device is ARB1. You can't go backward only forward. Did you make a twrp backup?

Edit: Also can you boot into twrp via recovery, or download mode?
[LG V20 Guides, News, & Discussion] knophler:
aaaaaaah....... got it. :good: So, SuperV20 should be good then, correct? no TWRP backup, was a new device that i hadn't planned on staying stock rom.

Vol up + USB gets me to TWRP recovery.

Vol down + USB gets me to fastboot.

Thanks for the help.
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Hmmm you could try, and see. However I'm unsure of whether it'll work, or not. I've never had any bad flashes like that. If it was me I would find a 10p stock zip. Then reflash laf. (But without further validation that the lg flash tool will detect your device. It is inherently dangerous for obvious reasons. Mainly you'd have no twrp, and no way to flash anything. If it goes bad that is.) I'd wait for someone that knows a bit more.
[LG V20 Guides, News, & Discussion] Swordfish II:
Thanks for root. Question for you smart folks, if I have version 10t and root can i flash a 10d kernel? How about a rom? Or does ARB 1 mean only ARB 1 kernels and roms can be used. TBH i am really just wanting to put nethunter kernel on so i can modify outgoing Ttl. The most recent kernel for that is 10d.
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
If you are arb1 you can only flash arb1 roms, and you can't downgrade with a kdz. So no 10d anything will not work with your device.
[LG V20 Guides, News, & Discussion] Swordfish II:
As expected for the rom. But is that true for the kernel? Where is the ARB trigger? The rom or the kernel
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
I believe in the bootloader, or aboot. However you can't downgrade anything on the device below arb1 once it's triggered. Be it rom, boot loader, etc. Best case it won't boot. Worst case you have a brick.
[LG V20 Guides, News, & Discussion] knophler:
edit: lineage 15.1 flashed fine. thanks all who helped this old man get back on track :highfive:

On to fixing wifi/mac and LAF :fingers-crossed:
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Good to hear. :)
[LG V20 Guides, News, & Discussion] Swordfish II:
Woo got my phone today. It is 10j so it should be ARB 0, I can use dirty santa and then an ARB 0 rom (or stock debloated) with nethunter kernel.

Right?

Any suggestions for an ARB 0 rom?
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Do not use Dirty Santa as stated in the op. It will brick your phone. I believe you can use dirty cow.

There is both a arb0 and arb1 Lineage build. I believe WETA is arb0 as well.
[LG V20 Guides, News, & Discussion] Swordfish II:
Oops meant dirtycow. Will check lineage tks
[LG V20 Guides, News, & Discussion] rafe83:
I just bought a H918 with H91810u on it. I've been trying to do as much searching on the V20 as possible (mainly had samsung phones). I'm afraid to ask, but is it possible to downgrade from 10u for root?
[LG V20 Guides, News, & Discussion] vishuxperia:
Yes, u can downgrade to 10p for root. Search for downgrade using LGUP and follow the easy instructions...
[LG V20 Guides, News, & Discussion] rafe83:
Thanks. Which version would you suggest?
[LG V20 Guides, News, & Discussion] vishuxperia:
Go for 10p version.

Please do read the full tutorial first before trying anything...

Best of luck.