yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] thestalkingocelot:
Same here. I don't think AOSP roms are compatible with the v20 anymore. I cant reflash the kdz because i have no download mode

My V20 is now Backlight Looping
[LG V20 Guides, News, & Discussion] cko:
Before moving forward with this root, I wanted to check: does this kill Google Pay?
[LG V20 Guides, News, & Discussion] runningnak3d:
Please do. But I can see now that I will definitely have to come up with a better solution for Windows.

-- Brian
[LG V20 Guides, News, & Discussion] pyrorob:
ok! so I have full communication with the v20! running ubuntu 16 in a virtualbox, keep in mind, every command has to include sudo, you need to install pip3 and I found this explaining the "laf crypto failed to import" error: https://github.com/Lekensteyn/lglaf/issues/39

it suggests "pip install pycryptodome" and after that it ran perfectly.

and I do mean every command needs sudo!

I have backed up laf and misc, and before I go next, I realized I should probably unlock my bootloader first! lol
[LG V20 Guides, News, & Discussion] ki11aprime:
been at this for awhile im getting to install PyUSB but not cryptography thinkin in the morning imma jus dual boot and try in unbuntu
[LG V20 Guides, News, & Discussion] darkknight1812:
You beat me to it. I can confirm pycryptodome solved the import error and that you need to use sudo.

I tried using Windows but I think it has trouble pulling the right dependencies. I switched to Ubuntu, set it up, and so far it is working.
[LG V20 Guides, News, & Discussion] suriya111:
waiting for better solution for Windows

I am rookies who try to get my LG V20 H91810r to root and unlocked, could you make a video to show how to get root H918 by this method or better solution for Windows? that will be help a lot for rookies.
[LG V20 Guides, News, & Discussion] pyrorob:
ok.. I'm getting usb timeouts now

the error:

also, I just realized this, but I updated my H918 to 10t yesterday, you think I should downgrade to s or p? I don't know if they updated laf in it...
[LG V20 Guides, News, & Discussion] dtv5018:
[MENTION=349649]pyrorob[/MENTION]

I have 10s. Same exact issue as you have. I'm running on a dual boot Ubuntu 16.04 machine.

Thank you, [MENTION=3167089]runningnak3d[/MENTION] for your work!

---------- Post added at 06:51 AM ---------- Previous post was at 06:36 AM ----------

@SMTB1963

To get rid of the cryptography installation error that I had (I didn't read everything but it looks like what I had), I used the following command posted on Cryptography website:

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

I got the same USB device not found as you on Windows 10 but after switching to Ubuntu, I got past the error and got as far as [MENTION=349649]pyrorob[/MENTION].

Hope it helps...
[LG V20 Guides, News, & Discussion] jl10101:
[MENTION=3167089]runningnak3d[/MENTION] - This is fantastic work! So good to see more of the V20 variants seeing the light...Perhaps a silly questions, but does this exploit have any benefit over DirtySanta? Would it warrant "redoing" root with this exploit, say, on an H990?
[LG V20 Guides, News, & Discussion] social.catastrophe:
This may sound silly, but did you unlock your bootloader? I had the same problems, then I figured out what dependencies i was missing, installed them, still no joy, so then, i remembered i enabled oem unlock but never actually did it. yeah. fun times lol. anyways, did that and it seems to work great now. im about to get rid of rctd next, so all going great.

also, i did it in windows but not with ubuntu, that may matter. and i used git cmd instead of git bash, since git bash wasnt working well with python3. just in case it helps anyone else.
[LG V20 Guides, News, & Discussion] dtv5018:
My bootloader is unlocked. I still get bootloader warning every time I reboot. so after you unlock your bootloader, the twrp flashing process no longer times out? Much appreciated!
[LG V20 Guides, News, & Discussion] Sizzlechest:
I'm already rooted, so I don't think I will be trying this myself. It might be a good idea to try doing this on Windows through Cygwin instead of Ubuntu.
[LG V20 Guides, News, & Discussion] runningnak3d:
If you are on anything later than 10p, you need to flash 10p laf. You don't have to flash all of 10p, just the laf partition.

Sorry for the trouble some of you are having on Windows. I don't have a Windows box to test with, so I am just going to have to keep refining the instructions as problems are reported.

-- Brian
[LG V20 Guides, News, & Discussion] dtv5018:
[MENTION=3167089]runningnak3d[/MENTION]

Could I please ask for a link to 10p laf image?

Also,do i flash laf.img and then flashing TWRP image right after?

Thank you!!
[LG V20 Guides, News, & Discussion] runningnak3d:
You will have to use the patched LG UP to flash laf from the 10p KDZ, using partition download.

If you can't find them, I will post links in the first post in a bit.

-- Brian
[LG V20 Guides, News, & Discussion] ahmedyar91:
Hey Brian,

Been following this thread for a long time, I am really happy that you guys have finally achieved it, during the process I lost my v20 sometime ago, actually some Bas*ard mugged me :(

I moved to Lg G6 (Dual Sim) Bootloader Locked

I know it will take time to move ahead and look for LAF Root other devices,

I am available if you need anything from g6.

Regards
[LG V20 Guides, News, & Discussion] SJMarty:
I have found a couple of versions of TWRP for the H918 in various other threads but none are available on twrp.me. Which version should we be using for this process?

---------- Post added at 08:02 ---------- Previous post was at 07:58 ----------

Just to clarify, if my H918 is running anything newer than 10p, do I need to do something outside of the new documentation or is this covered in those steps?
[LG V20 Guides, News, & Discussion] runningnak3d:
Somewhere on here there is TWRP 3.0.2 for the H918.

Yes, if you are on anything later than 10p, you need to use the patched LG UP and flash just the laf partition from the 10p KDZ.

When I am at my PC, I will update the instructions with links and fixes for the issues that people have reported about dependencies under Windows.

-- Brian
[LG V20 Guides, News, & Discussion] Zacharee1:
TWRP 3.2 https://xdaforums.com/v20/development/recovery-twrp-3-2-1-0-t3720239
[LG V20 Guides, News, & Discussion] dudeawsome:
It's not compatible with ABR1 stated in the linage 15.1 build thread
[LG V20 Guides, News, & Discussion] SJMarty:
Based on the poll results, it looks like 20 people have successfully rooted. It also looks like four of us lost download mode.

Just checking in to see if someone that's rooted would be able to get me/us the OTA. If you're on 10p, 10q, 10r, or 10s, we just need the update.zip file that is downloaded to /cache/fota. Without it, we cannot get download mode back and therefore, no root.

Very much appreciated if someone could do this.
[LG V20 Guides, News, & Discussion] Opsectx:
100% successful with LG v20 h918 10t rollback to 10p. Completed using Linux mint, Ubuntu, Arch, as well as VM on windows 7 and windows 10. No driver issues. Had very few minor issues the first run through. Nothing that couldn't be solved with a short read in the forums. Great job with this. Would love to see this used with my V30, G5, and G6.
[LG V20 Guides, News, & Discussion] BROKEN1981:
rm h918-twrp.img

git pull
[LG V20 Guides, News, & Discussion] offremike0887:
Im sorry but that doesn't work for me either. Maybe my ignorance to Linux is the issue, but I'm trying my best to follow the instructions. It doesn't help that there, maybe 3 different sets of instructions for this one task. On top of that, there's parts of the instructions that feel as though they skip a step and if you aren't familiar with Linux commands then you won't know how to fill in the blanks. The first time around that I did this, I had to figure out on my own that certain repositories needed to be installed to make things work when the Windows 10 instructions were originally put up. It was never in the instructions and it took someone mentioning it for it to be addressed. As self sufficient as I'd like to be, I'm forced to wait for the version that does most of the work or maybe there's a version with the complete instructions, that won't require looking at other instructions, that I can use.

I was hoping the specs I mentioned would've helped but it doesn't seem to have done much.
[LG V20 Guides, News, & Discussion] jcpowell:
Are you folks who keep getting errors copying and pasting commands or inputting them yourself?

I know Linux is a different beast in itself, but most of these issues seems to be a result of not being familiar with Linux. Try to just copy and paste commands.
[LG V20 Guides, News, & Discussion] offremike0887:
Both. I deal with scripts and commands half my day, so I try to triple check myself when putting in a command. Also, the commands aren't always coming up with errors. The main issue is my phone not being recognized.
[LG V20 Guides, News, & Discussion] BadToThePhone:
Does this mean it will be difficult to have roms or to make new roms? Thanks
[LG V20 Guides, News, & Discussion] dudeawsome:
Well no we just need to figure out how the abr 1 works so we can run aosp but stock rom will work experience and I have made one for most devices SuperV20
[LG V20 Guides, News, & Discussion] BadToThePhone:
What's the difference between AOSP and the Super V20? Thanks
[LG V20 Guides, News, & Discussion] dudeawsome:
Mine is based on stock like the software that comes on your phone but I have updated it to latest security patches and AOSP is Android like pixels
[LG V20 Guides, News, & Discussion] ITasteTerrible:
If you can walk me though the steps on how to do it. I am willing to do it when I get back from class. Also I lost my laf when I installed superv20 2.0 so I will probably have to flash back to 10p then redo the twrp install. Doesn't really matter to me since I was planning on doing it anyways to install the 2.1 superv20 rom.

---------- Post added at 10:54 PM ---------- Previous post was at 10:33 PM ----------

Just saw that you said how to get the update.zip. I will try and get it once I load a twrp backup that is on 10p when I have the chance.
[LG V20 Guides, News, & Discussion] SJMarty:
[MENTION=9075200]ITasteTerrible[/MENTION]

Awesome...very much appreciated.
[LG V20 Guides, News, & Discussion] PhantomGamers:
Just wanted to thank you for your work. Just followed your instructions and my phone is now running TWRP!
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Has anyone been able to boot from a twrp restore? I didn't flash the no opt encrypt zip. As I went with magisk. Just wanted to confirm that it would work before I test a build for someone.
[LG V20 Guides, News, & Discussion] offremike0887:
I can't even imagine what you did that was different from me so that it would work for you.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Just flashed back to 10p and download a Security ota and there is noting in my /cache/fota but there is a update_s.zip in the /cache folder not sure if that is the one that you guys need or are looking for.
[LG V20 Guides, News, & Discussion] SJMarty:
Sounds right. I'll give it a shot.
[LG V20 Guides, News, & Discussion] dudeawsome:
yes that has since been fixed. Join the telegram page and I will be more that glad to walk you through
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Whenever I transfer it to my pc to upload it, the size changes from about 137.79 MB TO 0 B
[LG V20 Guides, News, & Discussion] social.catastrophe:
https://drive.google.com/file/d/1IkeZUBf1wOJouU9OIzZtc12eFXYeS9C3/view?usp=drivesdk

My update_s.zip I got. Was in cache not fota.

All good on SuperV20.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Beat me to it lol. Was about to post a link to my google drive where I uploaded it as well when I saw your post. I wonder why it kept showing as 0 B when I transferred it to my PC.
[LG V20 Guides, News, & Discussion] SKRS:
Is this to recover laf via twrp?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
It's for if you had a bad flash when trying to install twrp into laf and lost download mode.
[LG V20 Guides, News, & Discussion] SKRS:
I messed up the last steps of the guide, right now my phone boots and the download mode has been replaced by twrp

Do I just flash it regularly tru twrp if I want to start over?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
This step? "adb shell rm /system/recovery-from-boot.p"

---------- Post added at 04:10 AM ---------- Previous post was at 04:08 AM ----------

That file is for people who don't have download mode or twrp on their laf or recovery.
[LG V20 Guides, News, & Discussion] SKRS:
no, all the steps below "Now while you are still in TWRP"
[LG V20 Guides, News, & Discussion] xdamember143:
Downloaded all the addons unziped and files opened Virtual box and cant select Linux 64bit help?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Just go back and to twrp and re do the steps.

[LIST]
[*]Format data. Choose Wipe / Format data / type YES -- hope you had a backup. Press the home button
[*] Mount system r/w: Mount / check System. Press the home button
[*] adb push misc.img /sdcard/
[*] adb shell dd if=/sdcard/misc.img of=/dev/block/bootdevice/by-name/misc
[*] 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
[*] Install Magisk: Install / select Magisk-v16.0.zip / swipe to flash
[/LIST]

Now you have TWRP on laf, and recovery, and you are rooted. But, if you boot to system, it will wipe recovery, so, while you are still in TWRP:

[LIST]
[*]adb shell rm /system/recovery-from-boot.p
[/LIST]

You might have to mount system again before doing "adb shell rm /system/recovery-from-boot.p"

---------- Post added at 04:16 AM ---------- Previous post was at 04:15 AM ----------

Is you Host machine 64 bit? Or do you happen to have hyper-v Installed atm. Does you cpu support VT-x harware virtualization.
[LG V20 Guides, News, & Discussion] xdamember143:
its 64bit but only shows 32bit which is strange
[LG V20 Guides, News, & Discussion] SKRS:
Ok but when I go into TWRP I get ask for a password, if I click cancel it goes to the regular menus.

I wiped data, then I did the "Mount system r/w: Mount / check System." step, but I can get past the "adb push misc.img /sdcard/ step".

I tried to use the twrp terminal and it says adb: not found.

I tried to use the virtualbox terminal and I get "adb: error: cannot stat 'misc.img' : No such file or directory

Thanks for helping.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Go back to the vm and remount your device and do the command there.

---------- Post added at 04:28 AM ---------- Previous post was at 04:27 AM ----------

Make sure you are in the lglaf dir
[LG V20 Guides, News, & Discussion] skeliton lord:
no matter what i choose in VM settings, i keep getting usb timeout error. i dont have usb 3.0, so i made sure to select 2.0, but i still get the error. any suggestions? literally stuck after git pull. when attempting to run ./partitions.py --dump misc.img misc
[LG V20 Guides, News, & Discussion] ITasteTerrible:
is this on the "./partitions.py --dump misc.img misc" command? If so try again a second time. The 4 Times I have done this on my phone it kept giving me that error the first time I run that command.
[LG V20 Guides, News, & Discussion] skeliton lord:
edited to add that lol, ive been attempting to run the command over and over and still have the issue
[LG V20 Guides, News, & Discussion] social.catastrophe:
I upped straight to drive from cache on the phone. :D
[LG V20 Guides, News, & Discussion] SKRS:
Thank you so much it was because I forgot to do cd lglaf again.

I'm almost done, but now I am stuck on the very last step "adb shell rm /system/recovery-from-boot.p" I get no such file or directory
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Mount system again
[LG V20 Guides, News, & Discussion] SKRS:
:good: I belive its done.

Is there any confirmation message or something to make sure is done?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
do this "adb shell ls /system" and make sure that recovery-from-boot.p is not there.
[LG V20 Guides, News, & Discussion] BROKEN1981:
What am i doing wrong? I bought a usb stick to make this work.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
do a "ls"

to see what is currently in that directory .
[LG V20 Guides, News, & Discussion] ITasteTerrible:
should look like this.
[LG V20 Guides, News, & Discussion] SKRS:
mmm everything but twrp seems to work as normal, twrp still ask for a password. I read some comments in this thread that flashing TWRP 3.2.1-0 fixes it.

.....

ok so if I try to boot into recovery I get the "no command" screen

so what I did was booted into laf which loaded twrp and from there I flashed the unofficial twrp 3.2.1-0 to recovery

Now I have the old version in laf and the newer as my recovery and root.

I think now I am done.

:good: thank you so much
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Well now that you are done .Good luck
[LG V20 Guides, News, & Discussion] xdamember143:
ok, so I fixed the issue of the program not detecting it as 64bit and now when I scroll to which Linux to choose from there are like 4 of them to choose? Which one is the correct version?
[LG V20 Guides, News, & Discussion] BROKEN1981:
This is what i have.

I am also using FWUL from an iso image on a usb stick.

If you arent bussy, can we do a team viewer? I hope tgats not too foward.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Arch Linux (64-bit)
[LG V20 Guides, News, & Discussion] BROKEN1981:
Or maybe what i should do at this point?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
I guess if you want to try teamviewer I could try.
[LG V20 Guides, News, & Discussion] BROKEN1981:
Huh, i installed it and cant get it to open. From my SS i posted, any clue as to what i should do?
[LG V20 Guides, News, & Discussion] xdamember143:
Wow now it's saying the hard drive disk storage unit at location already exists? what now EDIT: Reread the op carefully and saw i needed to choose a different option
[LG V20 Guides, News, & Discussion] ITasteTerrible:
From a quick google search people seem think this will fix that issue. I don't know if it will but I guess you can try it if you want.

https://stackoverflow.com/questions/44114854/virtualbox-cannot-register-the-hard-disk-already-exists

Open the Oracle VM VirtuaBox Manager

Click on File -> Virtual Media Manager (or Ctrl+D)

Delete the hard disk entry in question (select and press "Del" on keyboard) / You can try and releasing it first as it may actually delete it.

Open "Settings" of the Virtual Machine, go to "Storage", click "Add Attachment", select "Add Hard Disk" and "Choose existing disk", then selected the vdi
[LG V20 Guides, News, & Discussion] xdamember143:
Cant get these hashes to be the same :/
[LG V20 Guides, News, & Discussion] PhantomGamers:
Do this:

rm h918-twrp.img
git pull

then try again.

The FWUL image has a different twrp image than what's in the repo and it's too large for the partition, so this is why it's not writing properly.
[LG V20 Guides, News, & Discussion] SJMarty:
THANK YOU! Download mode is back!

The next thing is to get my serial number back. I have my backed up misc partition. I looked back and saw a couple of slightly different steps to flash misc.img back. Can someone confirm the steps I'm supposed to use?
[LG V20 Guides, News, & Discussion] issam1979:
Now this is truly a master peice I have been wating for for months, I have one question before I go home and start rooting, does the script require arch lnux ? I have debian based neptune in dual boot, can i use your script on it?

And thanks man I really appreciate your work and you putting time into this.
[LG V20 Guides, News, & Discussion] yoez94:
https://drive.google.com/file/d/1IrVpn_PPQTuqFlWhkucx0-H6z5pJs7Bc/view?usp=sharing

---------- Post added at 01:24 PM ---------- Previous post was at 01:21 PM ----------

as you proceeded since not when flashing I get an error. PLEASE HELP ME
[LG V20 Guides, News, & Discussion] cnjax:
Please refrain from quoting the OP it's very annoying
[LG V20 Guides, News, & Discussion] yoez94:
I followed all the steps to root, I stayed in download mode then I restarted it, pressing the upload button I started in twrp and then I was curious flashee with superv20 v2.1. AND OTHER ROMS. without having a backup, normal start until obtube root, but it does not help me at all, and the camera does not work, the gyroscope sensor, my lg v20 was in 10s, I passed it to 10p to try root, and it ended eliminating the mode of descarga.estoy scared of not returning to stock since I flashed with many rom trying to find solution to the camera, PLEASE HELP AS I AM FROM PERU AND I DO NOT SPEAK ENGLISH. I'M JUST A HOBBY.
[LG V20 Guides, News, & Discussion] SJMarty:
Which "process" in LGUP do I select to flash back to 10p? I'm currently on 10t. (Sorry, used to ODIN) :p
[LG V20 Guides, News, & Discussion] Ak7J4:
I was on 10s and I got an error for the "REFURBISH" process, but I got it to work on the "UPGRADE" one. I'm pretty sure that upgrade would on 10t but I can't make any guarantee.
[LG V20 Guides, News, & Discussion] SJMarty:
UPGRADE appears to have worked for me, too.
[LG V20 Guides, News, & Discussion] skeliton lord:
live booted fwul, worked like a charm, but when i run lsof, i cant find anything relating to dev/block/sda. ive searched through the entire output. is there another possiblity it could be?

EDIT: after reading through, it seems that the last line is the one i am looking for but the last line does not appear. it ends at /dev/laf
[LG V20 Guides, News, & Discussion] Green Ranger 54:
Anyone know a way for me to unlock my v20 h918 from t-mobile? The unlock site charges over one hundred dollars. Is there any other way to to unlock it
[LG V20 Guides, News, & Discussion] Josh McGrath:
I already told you what to do. If you're just going to ignore me, at least stop posting.

Again, download a stock flashable zip for your phone and flash it with twrp.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Look like you forgot to do the "!OPEN" command. Do that first then do the lsof command once more.

---------- Post added at 10:20 PM ---------- Previous post was at 10:18 PM ----------

From a post from Zacharee1 at page 26 the steps to do it is

[LIST]
[*]adb push /path/to/misc.img /sdcard/
[*]adb shell
[*]su
[*]dd if=/sdcard/misc.img /dev/block/bootdevice/by-name/misc
[/LIST]
[LG V20 Guides, News, & Discussion] xdamember143:
So everything went good have twrp installed tried to install a mod in twrp but it bootlooped my device. Tried to boot back into twrp and aks me for a password and my backup that I made is gone ? Any help
[LG V20 Guides, News, & Discussion] skeliton lord:
ended up figuring out what the issue was. didnt realize that it had put a space before the !
[LG V20 Guides, News, & Discussion] PhantomGamers:
What mod did you install?

I don't think that's related to the exploit, once you have TWRP installed you should be golden.

Try installing the newest version of TWRP
[LG V20 Guides, News, & Discussion] xdamember143:
I installed this https://xdaforums.com/v20/themes/aroma-ozop-dev-animations-11-5-add-t3648591 and for twrp I already installed the latest version and does not want to read my storage ;/. It says I need to decrypt everytime I boot into twrp
[LG V20 Guides, News, & Discussion] PhantomGamers:
Did you follow the instructions and format data when you first installed TWRP?
[LG V20 Guides, News, & Discussion] xdamember143:
Wow, I forgot to do that lol. OK, problem fixed but now how do I get my phone booted back since my backup was erased?
[LG V20 Guides, News, & Discussion] cnjax:
Try dirty flashing your rom
[LG V20 Guides, News, & Discussion] xdamember143:
I was on stock rom though
[LG V20 Guides, News, & Discussion] cnjax:
If you rooted your phone using this method, then the only rom that is working with this exploit is Super V20. Check the forum for the thread
[LG V20 Guides, News, & Discussion] bpc4209:
So can you run a stock rooted rom after rooting with this method or only Super V20?