yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] bigshotrob22:
I flashed this one. Everything feel much smoother

https://xdaforums.com/v20/development/rom-h91810q-stock-rom-twrp-flashable-zip-t3681312
[LG V20 Guides, News, & Discussion] PhantomGamers:
You should be able to run any ROM made with firmware on your ARB version as long as you're running that firmware. At least that's my understanding of it.
[LG V20 Guides, News, & Discussion] SJMarty:
Quick question...

After getting root, I updated the TWRP from the one contained in the git repository to v3.2.1-0 from this thread.

What are the correct steps to flash laf with the new TWRP (so laf and recovery are the same version)?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Do at your own risk since I am not an expert. This is how I did it. I don't know if there is a better way or if there is any danger in doing it this way.

Just run this 2 commands in adb while you are in recovery twrp and not laf twrp(not sure if there is any danger while doing it in laf but better safe than sorry.)

Rename the new twrp image to "new_twrp.img" and place it in the folder where adb is.

adb push new_twrp.img /sdcard/
adb shell dd if=/sdcard/new_twrp.img of=/dev/block/bootdevice/by-name/laf
[LG V20 Guides, News, & Discussion] mingkee:
Fantastic!

Hell finally freezes over.
[LG V20 Guides, News, & Discussion] SJMarty:
After rolling back to 10p and and rooting, I am assuming we cannot take the 10t OTA. Is that correct? If so, has anyone tried to update to 10t using the instructions from this thread?
[LG V20 Guides, News, & Discussion] LOCO213:
bootloader unlock

[*]This should go without saying, but you MUST have your bootloader unlocked (check OEM UNLOCK in developer options AND fastboot oem unlock). If you don't, you will probably brick your phone.

as for bootloader unlock i only have the oem unlock check box how do i get fastboot oem unlock check box?
[LG V20 Guides, News, & Discussion] PhantomGamers:
It should work fine, I'm running Superv20 which is 10t based and it works perfectly.

You need to boot into the bootloader (adb reboot-bootloader from command line), and then run fastboot oem unlock from command line. Do note that this will wipe your data.
[LG V20 Guides, News, & Discussion] PhantomGamers:
Follow the instructions. Honestly if you're having trouble understanding the instructions I'd wait for running to get back from his vacation and release the automated version, cuz there's a lot of potential for bricking if you fail to follow the instructions exactly how they're written.
[LG V20 Guides, News, & Discussion] SJMarty:
Probably a dumb question...when you "swipe to factory reset" inside of TWRP, does it remove root?
[LG V20 Guides, News, & Discussion] Josh McGrath:
Yep, you have to flash magisk or superSu again and possibly the dmverity disable zip
[LG V20 Guides, News, & Discussion] dleclair:
Thank you! After struggling for an hour and a half trying to get either VirtualBox or Ubuntu running under Windows 10. I ended up using Rufus to burn the FWUL ISO, booted it up and was rooted within 5 minutes with your instructions.
[LG V20 Guides, News, & Discussion] Green Ranger 54:
Every time I start the virtual machine it keeps saying error failed to open session in virtual machine error
[LG V20 Guides, News, & Discussion] D1G1T4L3CH0:
A happy rooted V20 User now.

This worked for me. I'm so grateful for the work done on this. I only recently got the V20 to discover I couldn't root it. I was pretty bummed out. Of course I did find a way to remove a lot of bloatware without root, but I'm glad to have more control over my phone again. Thanks to Brian and the other's who's work contributed to it.

Having gone through this process, I can verify that if you are not comfortable with the command line in linux, you should not attempt. It does take some attention to detail. Mostly copy / paste will help you a lot though to avoid typos. You can enable that in VirtualBox's menus..

I want to elaborate on my experience because I think there are some issues with the instructions that could cause a lot of headaches. Maybe it will help others. My first issue was 'git pull'. It complained about not being able to pull the repo because of an existing file, the twrp image... so I had to remove that file with 'rm' first and then pull again. After that I ran into some problems with the python scripts. They threw some errors on first run, but running them again fixed those issues. For the ./lglaf.py script, it was confusing for me because I didn't understand if I should or should not include the exclamation point, you should. After the bulk of it was completed, I only had to run some adb commands while in twrp. I had some trouble there however. The first run of twrp presented me with a message asking for the password for the encrypted volume. I had no choice but to press cancel, then I followed the guide as usual and all went well, untill next boot... then that came back again. I made a rookie mistake then of just formatting data again and then booting right into the os. I had no root yet because of it. But I just went back to twrp and repeated those commands one last time. All seems well now. Anyhow, I'm sure this won't matter once there is some easy app you can run to automate it for you.
[LG V20 Guides, News, & Discussion] Enismirdal:
I agree with the majority of your thoughts, but to add to your observations:

I too found all USB commands, including manually-executed ones not in the instructions, would always fail on the first, and only the first, USB-related script invoked, per VM startup. Haven't looked into why, since sending one 'sacrificial' command first, then proceeding as normal, always worked.

To anyone else yet to try to try the manual instructions:

They are literal, to the character. The only deviation, right now, is that before running "git pull", you do still have to "rm h918-twrp.img", because the wrong TWRP .img got left on the virtual machine, and you need to remove it before pulling the repo. This will probably be fixed very shortly after our OP returns from vacation. If you're at all unclear on this, just wait for the automated program to be finished, it'll be much safer and faster anyway.

Other thoughts:

Restoring LAF and resetting the phone to stock with the 10p kdz does not overwrite or erase carrier, and flashing a ROM shouldn't either, so you might well be several steps ahead if you ever have to go back to stock and then wish to re-root.

If you're paranoid about errors, you could also dump laf after the COPY operation and make sure the sha256sum still matches between the (whitespace-stripped) dump and the local twrp image, before rebooting, but this should never be necessary. It definitely isn't necessary if copying from carrier to recovery is or becomes possible, because then the phone would be in an easily-recoverable state at all times.

It might not be a bad idea to dump LAF before replacing it, and keep a copy on the chance you want to restore it. You could certainly grab it elsewhere, but having a local backup might be convenient if you find yourself wanting to use LGUP for some reason.

Since we're looking for /dev/block/sda, after "!OPEN", it seems like it'd be nicer to "lsof /dev/block/sda", instead of "lsof". Might as well filter for the desired block device and remove some confusion and work, I'd think?

Overall, an excellent guide to rooting, especially given that it's merely in lieu of an in-progress purpose-built system.
[LG V20 Guides, News, & Discussion] SJMarty:
Doubtful if this is related to the rooting but I thought I would ask in this thread first...

Has anyone tried to convert a system to user app with Titanium? I tried it with two Google apps, and the apps just disappeared. My experience in the past with doing this was it stayed as a system app until a reboot. After a reboot on my H918, the two apps are gone.

I searched Google, XDA, and specifically the Magisk thread and only found one very old instance of this happening to someone.
[LG V20 Guides, News, & Discussion] bmooney1988:
I've been trying to root my phone using the Ubuntu app using Windows 10 and everything goes fine until I get to the main instructions and try the git clone https://github.com/runningnak3d/lglaf method. Where it asks for a username and password after I do so it says "repository not found". I'm not sure if it's something I'm doing wrong. I'm relatively new at doing it this way. I really want my phone rooted so I can flash SuperV20. Any tips?
[LG V20 Guides, News, & Discussion] PhantomGamers:
Exactly what are you typing in?

You should be doing:

git clone https://github.com/runningnak3d/lglaf.git -b h918-miscwrte
[LG V20 Guides, News, & Discussion] bmooney1988:
What I originally typed in:

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

Then I retyped it the way you had it and got the same "repository not found" error
[LG V20 Guides, News, & Discussion] SJMarty:
Looks like you are missing an 'l' in your screenshot...?

'lgaf' should be 'lglaf'
[LG V20 Guides, News, & Discussion] bmooney1988:
Yeah you're right, my mistake. Should've caught that the first time but yes that's what I was doing wrong. Thanks

Update: I got the TWRP flash and root to work. Worked easier on FWUL boot used because I kept getting "USB device not found" on Windows. Now my phone is happily rooted and with Super V20. Super thanks to [MENTION=3167089]runningnak3d[/MENTION] for your non-stop and devoted work on getting root back to us. Much props!
[LG V20 Guides, News, & Discussion] Gabe2014:
ok so I'am at TWRP first time after reboot on download mode (affter finsh !COPY ... ) the questions is how to push the adb comant on this part ?

UPDATE: finally I can push the adb comants after doing some search in to virtualbox so now reboot my system on look everything fine whit magisk, I already boot on to recovery on now ask for the password so I press cancel but my file from internal storage cannot see it just the external file work so I have to figure out how to make it work

Update 2 : all workin good now and I flashed super v20 now my v20 feel like new ?
[LG V20 Guides, News, & Discussion] Linkzz:
Compare the hashes. If they don't match, then you have a bad flash --STOP and try: ./partitions.py --restoremisc h918-twrp.img carrier again!

If you can't get a hash match, DO NOT continue. At this point your phone is completely safe. If you have a hash match, then carrier was flashed successfully, you can continue.

can someone give me some advice cause i am not getting a match because the twrp file image is bigger than the partition. i need to root so that i can unlock the phone. someone give a helping hand please.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Do a "rm h918-twrp.img" and then a "git pull" while in the lglaf directory. After that continue where you left off.
[LG V20 Guides, News, & Discussion] Linkzz:
Thanks i got through with it.
[LG V20 Guides, News, & Discussion] Dong thanh tien:
I hope root on the LS997ZVD
[LG V20 Guides, News, & Discussion] Green Ranger 54:
Any idea when the automated version will be available?
[LG V20 Guides, News, & Discussion] Zacharee1:
When it's ready.
[LG V20 Guides, News, & Discussion] whojabacod:
Mother F**** native, virtual, windows whatever all performs the poops right but when it comes time to write the poop... No... Just USB time out wtf. :mad:

P.s. the hash never matches

Yes, I've tried different cords.
[LG V20 Guides, News, & Discussion] offremike0887:
Can someone point me to the page that addresses this issue? (in the screenshot)

If you want, you can just tell me what to do next, if that's easier.
[LG V20 Guides, News, & Discussion] whojabacod:
Next, take phone, throw out window. Buy new phone.
[LG V20 Guides, News, & Discussion] PhantomGamers:
You didn't follow the instructions. No script files should have been ran.
[LG V20 Guides, News, & Discussion] runningnak3d:
I wanted to have it done today, but I have run out of time. It is coming Soon(c).

But just so you know, it isn't going to be something like: "Download an app, and click ROOT".

The final procedure will still require FWUL, but it must be burned onto a USB stick. VMs will not be supported.

Boot FWUL

login

cd programs/lglaf

git pull

git checkout miscwrte

root-h918.sh <twrp.img>

Reboot to download mode which will now have TWRP (as long as all the hash checks pass).

post-root.sh

This will flash either the TWRP image that you pass to root-h918.sh or if no image is given, then it will use the image that is in the repo.

I have added all the hash checking to the Python script, as well as backing up and restoring misc.

partitions.py --restoremisc now takes 3 parameters: The image your are flashing, the partition you are flashing, and the backup partition to use for the hash check. So you could run:

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

If the backup partition doesn't exist, or isn't big enough, etc. -- then it will let you know.

If the flash to the backup partition is bad, you get a hash fail.

If your misc backup hash fails, it aborts.

If you try to do something like:

./partitions.py --restoremisc twrp.img laf sec

or

./patitions.py --restormisc twrp.img xbl xblbak

The program will exit and inform you that you would have bricked your phone. If you REALLY want to, then you can pass --yesyesyes and it will gladly blow away your xbl partition with whatever you were trying to write, and brick your phone :)

The main things that I am adding now, are more error detection / correction (don't want a fat finger to brick your phone), and more debug output.

There are now lots of progress indicators as well. You know:

Percentage of misc dumping / hashing / restoring

Percentage of the backup partition dumping / hashing / restoring

However, at the end of the day, if you can't do the list at the top of this post -- it will never be made more simple.

-- Brian
[LG V20 Guides, News, & Discussion] Green Ranger 54:
Thanks for the update
[LG V20 Guides, News, & Discussion] zeruth:
Just an FYI the current TWRP from the repo doesn't have a device name set. So it will error out using the exact instructions you laid out installing any custom rom with a device name check. (using h918 btw)

Real easy fix, just strip the device check out of the updater script, but the device name is stored in TWRP so should be set.
[LG V20 Guides, News, & Discussion] jcpowell:
Does this new script still exclude ls997?
[LG V20 Guides, News, & Discussion] dondreh19:
I have finally achieved root on my H918 (literally after countless attempts doing so resetting v-box, USB 1.0, 2.0, adb commands, etc.) Now...since I am rooted, i am curious as to where or how I can possibly find this update.zip file. Also as well as other users download mode is replaced with TWRP 3.0.
[LG V20 Guides, News, & Discussion] darkknight1812:
It is recommended to keep TWRP on the laf (download mode) partition. If you really want download mode, you just need to flash the backup made of the laf partition.
[LG V20 Guides, News, & Discussion] whojabacod:
How?
[LG V20 Guides, News, & Discussion] dondreh19:
After my 3rd attempt of trying the "root-h918.sh" code, I did a battery pull and rebooted back into download mode (which became TWRP somehow).
[LG V20 Guides, News, & Discussion] whojabacod:
Did it give you a bad hash at the end of the script or what happened?
[LG V20 Guides, News, & Discussion] dondreh19:
I forgot to take down a log and I dont recall exactly what it said, however once the verification finished and the computed error occured (bad hash) thats when I pulled the battery and was able to boot into TWRP. I'll search my pc for any screenshots.
[LG V20 Guides, News, & Discussion] whojabacod:
Weird. Ok

---------- Post added at 02:09 PM ---------- Previous post was at 02:06 PM ----------

Did you boot into twrp through download or recovery?
[LG V20 Guides, News, & Discussion] offremike0887:
Will this resolve the issue of having root, then randomly losing root? I was finally able to get everything working. I flashed superV20, mainly because it's the only one I can think of that keeps the second screen but is a custom rom (mention any if you know of any others). Then as I was installing apps, I noticed that I lost root.
[LG V20 Guides, News, & Discussion] runningnak3d:
You mean while the phone is booted into the OS, you have root, and then out of the blue you no longer have root -- or -- are you talking about after a reboot?

-- Brian
[LG V20 Guides, News, & Discussion] offremike0887:
I meant after the rom has installed and I am just installing apps. It randomly lost root but I went back into twrp and installed SU (before I only installed Magisk) and that seemed to work. The main reason why I've been wanting to root my V20 is for the buildprops and to potentially install viper4android.
[LG V20 Guides, News, & Discussion] runningnak3d:
The method of getting TWRP onto your phone has no bearing on anything that you flash after that. If for some reason Magisk won't stay (which is just weird), then it wouldn't even if you had full fastboot and used fastboot flash to get TWRP onto your device.

I have no idea why you are having problems with Magisk. Never heard of or seen that before.

-- Brian
[LG V20 Guides, News, & Discussion] SJMarty:
You are probably not going to want to hear this...

I had consistent USB timeouts when using my Toshiba Satellite (which has USB 2.0). I tried the USB 2.0 as well as the USB 1.1 setting in VirtualBox but the timeouts continued. I was able to get matching hashes eventually but I decided that if it was that sketchy, I didn't want to do the actual process with that many unexplained timeout errors.

So, I tried the whole thing out from scratch on my work laptop - an HP EliteBook (which has USB 3.0). As others have mentioned, the very first command produced a timeout but all of the subsequent ones worked without a hitch. I went through the whole rooting process with no errors or problems.

Sooooo...at least in my case, I ended up using a completely different computer.
[LG V20 Guides, News, & Discussion] Gabe2014:
I'm agree whit you everything workin good after root my v20 , I happy running Super v20 h918 whit 0 problem

One more happy v20 user whit root thaks to you bro !
[LG V20 Guides, News, & Discussion] Avenal:
Well, something unexpected pops out.

I didn't notice the "IGNORE" and continue typing all the old code. Turns out I got recovery instead of download mode when I try to get in download mode. Then I reboot and get the notification of upgrade. So I upgrade from 10p to 10q and I found my download mode back. Now I am trying out new code. I didn't get the same hashes. So I try "./partitions.py --restoremisc h918-twrp.img carrier". Still does not work. How can I fix it? Thanks for ur work all the same.

(P.S. Could u just delete the old code instead of putting a "IGNORE" sign?)
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Did you do the "git pull" as well as deleting the original image before doing the "git pull"?
[LG V20 Guides, News, & Discussion] BatPhone:
Any update on when the automated tool will be released?
[LG V20 Guides, News, & Discussion] Avenal:
I didn't delete the original image? How can I delete it?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
[MENTION=3167089]runningnak3d[/MENTION] you might want to include the "rm h918-twrp.img" step before the git pull as it seems like some people are not doing it when doing the manual method.
[LG V20 Guides, News, & Discussion] Avenal:
Well thanks, problem solved. I am following the instruction now, but when I do "./partitions.py --restoremisc h918-twrp.img carrier" step, it said "No such file or directory : 'h918-twrp.img' "
[LG V20 Guides, News, & Discussion] PhantomGamers:
You need to do git pull again after deleting the file. You need the file but the version included in the image isn't the same as the version on the repo.
[LG V20 Guides, News, & Discussion] victor0888:
Error getting usb device no found
[LG V20 Guides, News, & Discussion] SJMarty:
Is anyone that has rooted their H918 having an issue with screen rotation? Even though the auto-rotate screen option is on, my screen is not rotating. For example, a picture taken in landscape will only display in portrait. Solid Explorer should give a split-screen view in landscape but the app does nothing when the phone is rotated.
[LG V20 Guides, News, & Discussion] dudeawsome:
Try installing mk bttf kernel I have had that issue but it was kernel related or wipe your phone
[LG V20 Guides, News, & Discussion] victor0888:
please help

raise RuntimeError("USB device not found")

RuntimeError: USB device not found
[LG V20 Guides, News, & Discussion] Avenal:
I did do the git pull after deleting the file.....
[LG V20 Guides, News, & Discussion] OtVang:
Working fine! :)

My device was bricked when install customize ROM (https://xdaforums.com/v20/development/resurrection-remix-h918-beta-unofficial-t3540362) after root by this method and... un_bricked by this method too :)

Note: don't install any version before H91810p released- may be bricked your device
[LG V20 Guides, News, & Discussion] victor0888:
I used this method with rufus, i make a bootable usb, all works, rooted h918, thanks

procces is easy download FWUL ISO, make usb bootable with rufus

boot with the usb, pass for user is linux

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

cd lglaf

git checkout h918-miscwrte #for the TMO V20

then instruction of this

https://xdaforums.com/showpost.php?p=76168591&postcount=271

all correct without problems
[LG V20 Guides, News, & Discussion] Green Ranger 54:
I've been having problems with virtual box as it keeps showing error, e_fail and some other stuff. I wish there was an easier way of doing this
[LG V20 Guides, News, & Discussion] cnjax:
Patience is a virtue. Runningnak3d has already stated numerous times that he is working on an easier, more automated way of doing this.
[LG V20 Guides, News, & Discussion] dudeawsome:
Guys please don't ask for ETA or for an easier method [MENTION=3167089]runningnak3d[/MENTION] is on vacation and he did state he will release an easier method. So as [MENTION=4201835]cnjax[/MENTION] stated please be patient. As a dev also I know getting asked the same thing can get frustrating. Hope you guys understand and have a great day/night.
[LG V20 Guides, News, & Discussion] cnjax:
You got me confused. I didn't ask for an eta
[LG V20 Guides, News, & Discussion] Zacharee1:
Read it again :p
[LG V20 Guides, News, & Discussion] dudeawsome:
Lol yep read it again
[LG V20 Guides, News, & Discussion] enigmaco:
Yeah that's one thing I have learned since my Moto X days, don't ask for a ETA on anything....ever....or feel the wrath lol. I do look forward to an easier process to do this because the way it looks currently I am quite certain I'll F something up, still having issues getting mint to play nice in my virtualbox
[LG V20 Guides, News, & Discussion] Nathan4923:
I get to the last part when its flashing the Testtwrp and I get a hash check failed ?

What's wrong

---------- Post added at 06:52 PM ---------- Previous post was at 06:45 PM ----------

I'm getting:

Sha256sum: WARNING: 1 computed checksum did NOT match

HASH FAILED! you need to try again

I've already tried multiple times

Sorry I'm a noob
[LG V20 Guides, News, & Discussion] runningnak3d:
Because I have let feature creep cause me some serious delays, I have updated the first post with a much more detailed procedure, explaining exactly where things could go sideways.

Also, booting FWUL from a USB stick is now mandatory, and it will be mandatory in the 3 command automated procedure as well.

-- Brian
[LG V20 Guides, News, & Discussion] Nathan4923:
How do I put it on a USB and make it bootable for my windows 10 labtop
[LG V20 Guides, News, & Discussion] runningnak3d:
You can use Rufus. I will add that to the first post.

-- Brian
[LG V20 Guides, News, & Discussion] ToshBoss:
Flashing KDZ

Are you adding the KDZ flashing as part of the automated program, or will we have to do this manually?