yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] cydget:
So, I have an actual issue of which I need some help. So, I followed the steps exactly and rooted as expected. The problem is I was getting errors about system processes crashing immediately at startup then the phone would shutdown. I did some research and found that the dalvik / cache needed to be wiped, but when I went into twrp to wipe them(using advance wipe), it was giving me errors, so I then proceeded to have a brain fart and do the normal wipe in twrp(swipe to factory reset). To my surprise, when I then tried to reboot into system I would get sent right back into twrp recovery. I am able to get out of the twrp bootloop by typing dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc into terminal, but when it boots into system, it says, "Secure start-up encryption unsuccessful. the password you entered is correct but unfortunately your data is corrupt" ... with a button to "reset phone". I press this button, but I just get sent back to twrp and the cycle continues. I have tried following the steps again to install magisk thinking that might improve it, but I have had no success. I would like to reflash the 10p kdz using LGUP, but I cant because it just goes to twrp. I also tried flashing the 10t update(https://xdaforums.com/v20/development/rom-h91810q-stock-rom-twrp-flashable-zip-t3681312) using twrp. It was a custom update that did not touch the recovery partition, and I am still able to get into twrp. Any suggestions on how to proceed? My bootloader is still unlocked, not sure if that helps at all.
[LG V20 Guides, News, & Discussion] Phoenix591:
You need to format data (in twrp and the wipe menu a seperate button. itl make you type yes to confirm). Besides using dd to break the loop you can also power off then manually enter twrp.
[LG V20 Guides, News, & Discussion] cydget:
What do you mean by "the wipe menu a seperate button"? I have tried wiping it multiple times and still the loop. I dont have a problem getting into twrp, the problem is not getting into it. I have tried holding down volume up when booting, but that opens twrp, and when I hold volume down I get into the bootloader.

EDIT: Ayy got it working. you were talking about the format button in order to wipe.
[LG V20 Guides, News, & Discussion] cbissa18:
Also make sure you wipe internal storage. I had the same issue and I wiped everything but external storage twice. Install 10T.zip again wipe cache then install magisk and reboot.
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Just wanted to say thanks for this I'm on 10q right now and I just found this hope it works on my LG V20 H918 ?
[LG V20 Guides, News, & Discussion] BROKEN1981:
https://arstechnica.com/information...ses-gpu-to-compromise-an-android-phone/?amp=1

Could this help?
[LG V20 Guides, News, & Discussion] SMTB1963:
Possibly, but I think I read somewhere that nobody's been able to evict CPU cache to DRAM where rowhammer could get to it. (CPU cache being where keys are IIRC)
[LG V20 Guides, News, & Discussion] unforsaken:
Success LG V20 H918 10s

I just want to say THANK YOU to [MENTION=3167089]runningnak3d[/MENTION]

My phone LG V20 -H918 - was on 10s.

I followed your guide to the teeth and succeeded.:victory:

There is only one little thing I was confused about the PROCEDURE PART 1: Installing TWRP

Since I'm a noob on this subject, and I didn't know I had to boot my phone into Download Mode.

It could help a little if you include the "boot into Download Mode" before running ./partitions.py

Again, thanks.
[LG V20 Guides, News, & Discussion] cbissa18:
Once upon a time this was I! Lol
[LG V20 Guides, News, & Discussion] knophler:
Download mode missing... looking for suggestions. I had successfully:

*completed part 1 without any issues.

*completed part 2.... but twrp required password on boot...i swiped a disclaimer (maybe read/write related)

Setup android.... had booted/rebooted into twrp a couple times, all required the password which i swiped to accept disclaimer

only thing i can think i did that affected download mode, i updated magisk and ran it's safety check thing... eventually i tried the VOL DOWN + USB to get into download again and no luck.

I can still adb and fastboot no problem, should i install TWRP via fastboot? can i? or should i install using TWRP manager (or Flashify) within android? Does it matter what version of TWRP i use at this point? Is this just a magisk problem and i'm in the wrong thread??? Any directions or experience appreciated..... i'm sure it's an easy save, i just don't want to F this up any more.\

Thanks.
[LG V20 Guides, News, & Discussion] BROKEN1981:
You forgot to format data in TWRP
[LG V20 Guides, News, & Discussion] knophler:
Best course of action to fix?
[LG V20 Guides, News, & Discussion] cnjax:
Hopefully you have your important stuff backed up. Go into twrp and format data
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=9116801]knophler[/MENTION] No offense dude, but if you (and everyone else that has had this problem) actually read the instructions, you would have been fine. As [MENTION=4201835]cnjax[/MENTION] said, format data. Then reboot to TWRP and see if you can mount data. If you can't format it again. Repeat until you CAN otherwise you are wasting your time.

-- Brian
[LG V20 Guides, News, & Discussion] knophler:
---------- Post added at 11:42 AM ---------- Previous post was at 11:29 AM ----------

[/COLOR]

data not an issue, just cant boot to download/recovery. aaaaaand, i finally understand why now.

I really DO appreciate you patience. Reading, but not quite understanding all the details.... then the light bulb goes off. THanks.

I'm going down the path of installing TWRP via flashify..... can anyone comment on what version i should be using? Again, thanks for your patience.
[LG V20 Guides, News, & Discussion] runningnak3d:
Use 3.2.1 by [MENTION=8639605]Phoenix591[/MENTION] https://xdaforums.com/v20/development/recovery-twrp-3-2-1-0-t3720239
[LG V20 Guides, News, & Discussion] maxpatri9:
root done thanks

Root done with h918p fast and easy .How get download mode again ?
[LG V20 Guides, News, & Discussion] cnjax:
root done with h918P version, fast ans easy.[/QUOTE]

Don't quote the OP, please edit your post
[LG V20 Guides, News, & Discussion] cbissa18:
Twrp 3.2.1.0 using flashify will do the job.
[LG V20 Guides, News, & Discussion] PhillyWonka:
I lost download mode . I followed direction as written. I used the correct FD number relative to my phone. 39. Is there anyway to get download mode back

?

Edit: I just updated to 10q. And got my laf (download mode) back.. I rolled back to 10p and tried again and same thing I lost laf. Hashes match and FD is correct ..not sure what else I can do.

By the way I'm using FWUL . I'm using the instructions from OP.. I tried zacharees instructions but I get a crypto error.. when I try to install crypto I get "apt-get" command is not found . Any suggestions

Edit : found the problem to losing download mode.. Toggling OEM Unlock isn't good enough, you must completely unlock it using adb commands...

Also Fwul is only compatible with OP instructions.. Do not bother with zacharees instructions
[LG V20 Guides, News, & Discussion] suriya111:
Does any one help to suggestion for PROCEDURE PART 2: Rooting and cleanup?

I have past procedure part 1 and can get in TWRP.

Does any one help to suggestion for PROCEDURE PART 2: Rooting and cleanup more clear details?

what 's terminal to enter code below or how to do?

--------------------------------------------------------

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

---------------------------------------------------------------------------------------------------------------

[IMG="twrp boot"]https://drive.google.com/open?id=0B76sQqG5mChPQm9nTjNreFhSUHNNZXVlb3p3d3BDOTVZQU9J[/IMG]
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
When I try to boot from my used after downloading fwul and Rufus and writing the iOS to do my laptop tell me boot fail and then takes me back to a gray screen with blue writing and tells me to boot back in to windows 10
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
That what it tells me any help please
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
I can TeamViewer if anyone can when I get off work.

I'm on a window 10 how 15 notebook would it be easier for me to just switched it to Linux if so how would I go about doing that ?
[LG V20 Guides, News, & Discussion] PhillyWonka:
Did you use FWUL.
[LG V20 Guides, News, & Discussion] ToshBoss:
Just wanted to take this opportunity to thank you for the Root Exploit. Your instructions were clear and concise. When I did this hack a couple of days ago, I didn't realize that (A) The phone needs to be in Download Mode for lglaf.py to work. Also there was something about the phone needing to be in Photo Transfer mode for the USB Debugging (or something to work.) Also the TWRP update thing took a while to work out but beside those minor issues, it really was easy.
[LG V20 Guides, News, & Discussion] dudeawsome:
[MENTION=3167089]runningnak3d[/MENTION] Hey might have answered this but how do we update twrp laf?
[LG V20 Guides, News, & Discussion] maxpatri9:
Yes ,i did.

Enviado desde mi SM-G925V mediante Tapatalk
[LG V20 Guides, News, & Discussion] BROKEN1981:
Go into BIOS and disable secure boot.

I am assuming the USB hard drive is a USB stick with fwul on it.

Also did you format the USB drive? NTFS.
[LG V20 Guides, News, & Discussion] cnjax:
Can't you just flash the new image within twrp
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
I'll try that thanks and no because I used Rufus and the op says you don't have to format it because it doesn't care if it's formated but it is FAT13 . Btw what NTFS ?
[LG V20 Guides, News, & Discussion] dudeawsome:
I don't think there is an option to flash to download mode
[LG V20 Guides, News, & Discussion] runningnak3d:
While in TWRP that is on recovery:

adb push new-twrp.img /sdcard/

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

Now you have an upgraded TWRP on laf as well.

If you ever need actual laf back on laf, do the same thing but use laf.img that you extract from a KDZ.

-- Brian
[LG V20 Guides, News, & Discussion] ingrediential:
I hope this is proper and polite to ask here. Is there anyone near Louisville, KY, that has done this and could do mine? I'm good w/TWRP and root and roms and such, but this seems beyond my skill level.
[LG V20 Guides, News, & Discussion] carlosjcar:
Had a bit of problems in the beginning but I did actually search to see what I was doing wrong and found my error.

Phone needed to be in download mode since the beggining. After that it was a piece of cake.

Thank you for making my Lg V20 awesome again!!!
[LG V20 Guides, News, & Discussion] maxpatri9:
5 /dev/block/sda

# !COPY 39,91270,24670208,6

# !CTRL POFF

# exit

[android@fwul lglaf]$

i did it again
[LG V20 Guides, News, & Discussion] SMTB1963:
Been a while since I checked this thread, and I notice the procedure in the OP has changed from what I tried early on. Is the procedure currently outlined in the OP the simpler/safer procedure, or is [MENTION=3167089]runningnak3d[/MENTION] still working on something better (lafsploit 2.0)?

Cheers!
[LG V20 Guides, News, & Discussion] BadToThePhone:
I believe their is an automated simpler version that is coming but I'm not sure.
[LG V20 Guides, News, & Discussion] cnjax:
There's no automated version, if you read his post he said he was going to try and streamline the process to make it easier, there's never going to be an automated or one click process
[LG V20 Guides, News, & Discussion] cbissa18:
If you go back and read it you will see that he states it will be mostly automated but you will have to still input a few commands. So it will be automated to a point which is better than not at all.

---------- Post added at 08:59 AM ---------- Previous post was at 08:56 AM ----------

And seeing that he even made this much possible, to begin with, its more or less a kick in the developers face saying it will never be possible...
[LG V20 Guides, News, & Discussion] cnjax:
You're mixing words, that by definition isn't automated.
[LG V20 Guides, News, & Discussion] BROKEN1981:
Just to chime in, you are wrong.

Quoted from the OP

"I am still working on a mostly automated procedure. It will still require booting FWUL from USB,

but it will only be a couple of commands.

Like almost all software development projects, this one has suffered from feature creep. Some of it wasn't needed,

but most was needed in order to make all of this automated.

For example, I needed to write a routine that could restore misc. You can't use MISC WRTE + COPY to restore misc,

so ./partitions.py --restoremisc misc.img misc won't work -- it will just blow up your misc partition even more.

But it IS coming. Complete with KDZ flashing, and all kinds of error checking."

See where he says "mostly automated"?
[LG V20 Guides, News, & Discussion] cbissa18:
Thanks, cnjax has a issue with breathing down everyones throat 24/7 he thinks this is facebook. He doesn't like to be wrong either smh. But he is wrong.
[LG V20 Guides, News, & Discussion] BROKEN1981:
Well to be fair, the process as it is can be considered semi automated since you are typing cmds and letting the program do it's thing.

The OP is just going to stream line it even further. I've never seen a Dev on XDA go this far for users. Massive credit on his part.
[LG V20 Guides, News, & Discussion] cbissa18:
For sure I agree, he has done great!
[LG V20 Guides, News, & Discussion] runningnak3d:
Ah yes, you are encrypted. I will need to add this to the instructions...

Once you hit cancel, choose wipe / format data / type yes

Then you can mount storage....

Make sure you have everything backed up!

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
Actually you need to go back to 10p just to be safe, but ARB doesn't matter since laf isn't checked for ARB. They can increment ARB all they want.

There are other ways that they can block this in future updates that don't involve ARB, which I won't list for obvious reasons -- don't need to give them any ideas.

-- Brian
[LG V20 Guides, News, & Discussion] BROKEN1981:
I swear I was going to pm you and ask if you can do something along those lines. I installed git bash but the commands with pip......... don't seem to work. You guys are talking Greek as far as I'm concerned lol.

I'm just a dumb Italian from Brooklyn who can build you a new kitchen if you like.

This though? Hell, Samsung is far easier with the use of Odin.

I can use VM, I've used it for many reasons. Need to test files that might be affected? VM!
[LG V20 Guides, News, & Discussion] dtv5018:
Operation Success!

I am now greeted with TWRP in download mode.

My device was 10s LAF flashed to 10p LAF, bootloader unlocked.

My working environment was a newly installed Ubuntu 16.04, didn't have to install any driver .

The 3 things I did in addition to the guide provided by [MENTION=3167089]runningnak3d[/MENTION] and @ Zacharee1 was:

Before installing cryptography: sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

Along with cryptography installation: pip3 install pycryptodome

Flashing 10p LAF

Thank you [MENTION=3167089]runningnak3d[/MENTION] for early Christmas! Please let me know of your BTC address or paypal privately so I can make a donation since I am not sure when I'll ever be in FL.
[LG V20 Guides, News, & Discussion] runningnak3d:
Since so many people want to buy me a beer, I added my PayPal email so I have a donation link now. I just noticed there is a bounty thread for root on the H872, I wonder how many of them will still cough up -- lol

-- Brian
[LG V20 Guides, News, & Discussion] dimm0k:
so to confirm, when you say go back to 10p you mean to flash only the 10p laf partition before utilizing your masterpiece to achieve TWRP and from there one would flash ROM of choice followed by Magisk?
[LG V20 Guides, News, & Discussion] offremike0887:
By your instructions....I run a VM with this Distro. I then follow your instructions from the github link, I shouldn't have any issues? Would I need to download any LG drivers for this distro or is that part of the custom aspect of it?
[LG V20 Guides, News, & Discussion] nickland:
So, if lgup sees the phone in download mode and everything is installed but i still get the usb not found in either Ubuntu nor windows its oem unlock being greyed out?
[LG V20 Guides, News, & Discussion] BROKEN1981:
Since you did this, what am I doing wrong?
[LG V20 Guides, News, & Discussion] omariscal1019:
Do it bro!
[LG V20 Guides, News, & Discussion] The_Anomalist:
even though you made this for the h918 would it in theory work for the lg g6? im well aware of the risks. i built kernels for the tab 4 on a full linux machine mint 18. so doing it this way is weird lol but not entirely unfamiliar. anyway to try it on the g6 all i would have to do is edit the script a tad and change out the twrp for the h918 with the one i downloaded which is suppesodly for my model h872? correct?
[LG V20 Guides, News, & Discussion] SMTB1963:
Well, I appear to be bricked. Took a backup using twrp, then wiped/formatted. Restored from the backup and it threw an error (sompthin sompthin 255). Now phone just sits at initial LG screen when booted. When I try to enter download mode (vol up and plug in to computer), it shows

-----------------------------------------------------

* Welcome to Fastboot Mode

* HOW TO exit Fastboot Mode

Use fastboot reboot if fastboot is available

-----------------------------------------------------

LGUP doesn't see the device...am I hosed? :(
[LG V20 Guides, News, & Discussion] shrimants:
I think you havent properly installed python3. Remember that with Python, you need to include the python executables in your environment variables in order for commandline to properly recognize the paths.

if you cant type 'python blahblahblah' and have it recognize python as a legit command, it wont work.

sudo apt install git adb fastboot openssl python3-pip

thats what it says for win10 instructions, you might need to manually install python3-pip package and/or add the pip package to your environment variables.

personally, i feel safer doing this on a linux system because all that crap is automagical.
[LG V20 Guides, News, & Discussion] caitsith810:
I've been trying to use the patched LG UP that was linked in the OP, but I keep getting this error, any ideas on how to remedy this?
[LG V20 Guides, News, & Discussion] shrimants:
[MENTION=3167089]runningnak3d[/MENTION] i have windows 10, i can do stuff and post output to help out wherever possible. Also got skype and whatnot so if you want to screen share, i can do that.

---------- Post added at 04:12 PM ---------- Previous post was at 04:01 PM ----------

[/COLOR [MENTION=3167089]runningnak3d[/MENTION] i have windows 10, i can do stuff and post output to help out wherever possible. Also got skype and whatnot so if you want to screen share, i can do that.

---------- Post added at 04:28 PM ---------- Previous post was at 04:12 PM ----------

Minor update: I'm following the instructions currently. Stuff i've noticed:

At the link that goes to github for win10 instructions, they didnt have sudo appended to the pip3 commands. (https://gist.github.com/zacharee/6aa5fcb56d0a42937869494b12d77da2). Make sure you use sudo to do those pip3 commands.

I had to run sudo -H pip3 --upgrade pip

The -H flag forces your home directory to be set to the home directory of the current user. Should be default in some environments, but apparently not this one. I was getting issues during installation for the various pip packages without the -H flag.

Only other thing i can say is: check your typing. I fatfingered a lot of stuff and got weird results. its pyCRYPTOdome, not pyCROPTOdome. smh

It also says to make sure you're in your home directory. I would double and triple check this. You dont want a situation where your home directory has spaces in it for whatever reason and that causes commands not to work. I've been plagued by that before. For now, I think windows 10 (clean install) does a pretty good job of making sure your home directory path has no spaces in the file name. Whenever im using linux I make sure not to have spaces as much as possible. I use underscores whenever i can just to avoid issues.
[LG V20 Guides, News, & Discussion] BROKEN1981:
when i setup git, do i use git from windows cmd prompt or use git from gitbash only?
[LG V20 Guides, News, & Discussion] runningnak3d:
I am uploading the vdi that will go with the new instructions in the first post.

It really can't get much easier than that...

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
OK - the links are up. That is about as "point and click" as it can get...

You don't need to install ANYTHING. This also takes care of backing up laf / misc, restoring misc and giving you the option of restoring laf.

The only thing it doesn't do is format data, but there is a message to remind you. It also doesn't flash an su .. again, a message to remind you.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
Double clicking the .VDI wont work. It will make you set up a new VM and then import the disk. What did you use for your RAM settings and everything?

Here is the windows process to import a .VDI file into virtualbox

http://linuxbsdos.com/2015/11/13/how-to-import-a-virtual-machine-image-into-virtualbox/
[LG V20 Guides, News, & Discussion] cnjax:
Whatever noob no one wants to breathe down your throat
[LG V20 Guides, News, & Discussion] cbissa18:
Ooo name calling always works! Far from a noob! Lol my time wasting with you is over!
[LG V20 Guides, News, & Discussion] SFDave:
Thanks for this guide. One part did give me a bit of trouble. If anyone else is seeing the "USB device not found" error after entering the './partitions.py --restoremisc h918-twrp.img lafbak" command, it's because your phone is not in download mode. It might help others if the guide were modified by adding these additional commands:

Boot your PC from your FWUL USB stick.

Once booted, login. The password is: linux

boot phone in download mode (power off, hold volume UP button down, connect to PC while holding volume UP button down until in download mode)

Open a terminal. Click the blue arrow...
[LG V20 Guides, News, & Discussion] Still_living714:
What better place to ask questions then here. Doesn't matter which step you are stuck on we will help you.
[LG V20 Guides, News, & Discussion] BROKEN1981:
A Chinese guy in my neighborhood wants to charge me $50 to root my phone using this method. I walked in to order a computer part, he saw my phone and it lead up to I can't root because I computer fails to see my device, even when booted into FWUL.

He told me he can help me for $50. So not everyone is so nice on XDA. OFC he would not give me his user name.
[LG V20 Guides, News, & Discussion] Still_living714:
Save your $50 and do it yourself. Start asking away,xda community will help you???
[LG V20 Guides, News, & Discussion] BROKEN1981:
I can't do anything right now. My power supply died.

I ordered a new one. Hence how I got into the convo to start with.
[LG V20 Guides, News, & Discussion] Still_living714:
Ahhh gotcha, well depends how much you need root but imo I'd rather save $50 for an easy process.
[LG V20 Guides, News, & Discussion] Morganjbeard:
Hi, I recently bought an lg v20 a couple months ago. I had successfully unlocked the bootloader... And then I had updated to the latest software, being naive, and had no Idea it would become unrootable. I am currently on the h918t (newest s/w version) version. My bootloader is still unlocked, I'm quite the noob, is anyone able to help me out with some simple instructions? Im only rooting my phone for the viperaudio mods. (Im an audiophile.) I had a galaxy s6 that i installed them on. But it was never this complicated. Some help would be greatly appreciated. Thank you.
[LG V20 Guides, News, & Discussion] PrimeOG:
Does this work if im running v10t? Since I read somewhere I can't roll back to an older KDZ because ARB was incremeneted.