yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
1. no OTA before or after you probably will lose root or wont be able to root after update

2. option 1 or 2 should work . unlocking bootloader wipe phone clean so it will be stock :)

3. not sure

about going back to original i guess it can't be done yet

And I still have question about SU if it will be installed with the script or how. TO get root you need to have SU I suppose
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotstocks:
Also I dloaded the zip from his recovery git. I see 3 files recowvery-app_process64.c, recowvery-applypatch.c and recowvery-run-as.c. I guess I am a little newbish. Shouldn't there be a recovery.img or twrp.img that you want us to put into internal memory and rename recovery.img? Which file and where do I get the recovery for twrp that I need to put into internal and rename recovery. img.

Thanks again
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
you get TWRP from here

http://xdaforums.com/v20/development/h918-recowvery-unlock-v20-root-shell-t3490594

Then change the name to recovery.img and put in phone internal storage
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
still the same, no change.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
1. Google is almost guaranteed to patch this exploit. I don't know if they have yet, and I'm personally not taking any OTAs until I know for sure that it will be possible to keep root or re-root.

2. Option 1 is the cleanest. Your phone will be no different except that it will have TWRP.

3. selinux is part of the phone's security. If you don't know if you should disable it, you probably don't need it disabled. However, SafetyNet no longer passes for anyone with an unlocked bootloader (on these new devices). You can use option 6 to restore boot and recovery from the backups the script creates.

I'll take a minute to update that image. It's just more difficult to take a screenshot when things are scrolling. :p

jcadduono's GitHub contains the source code for the exploit. The TWRP you want (until it gets updated again) is linked in his thread: https://build.nethunter.com/test-builds/twrp/lge/twrp-3.0.2-0-beta4-h918.img
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Which step gives root?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
Its step 7 when you flash it in TWRP...can't really get any easier than that
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotstocks:
Dev, thanks for the answers. So I assume if I do option 1 I can then get the phone how I like it with everything installed (I assume it will wipe my files and screens?), then I can titanium backup everything and make a twrp image of it with everything set up. Then I can rerun the program and do option 6 to go back to stock, still have all my programs and screens, and play pokemon or android pay? or will it wipe everything and I need to reinstall from titanium again? I really don't need root but I must have twrp backups in case something goes horribly wrong and titanium backups of app data. Oh how I wish there was a non-root app that backed up all apk data and screen layouts, but sadly there is none. I even paid $4.99 for Helium and it just stops and fails at some random app backup between 30 and the 170 apps I have every time, no matter if I am backing up to google cloud, internal, or external card, it just fails.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] planetbeen:
*delete*
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Thanks to Google, you would need to wipe your device by running "fastboot oem lock" every time you want to play PoGo or use Android Pay. If someone develops a custom kernel for the V20, there may be a (probably temporary) way around that. The only other alternatives at the moment are basically to: a) leave your bootloader locked, b) go back to an older phone that Android Pay can't check, c) pick up a dirt cheap prepaid to play PoGo on.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Yup, no need to add an extra .img to the name, but I might as well add an extra check in case people do that. (I always forget Windows normally keeps the file extension hidden from the user :rolleyes:)

Can I get a screenshot of the folder you're running it from?

If I'm ever done playing Q&A in here and chasing little bugs, there will be an option to flash additional zips like SuperSU at the end of the process. ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
flashing what in step 7. Thought step 3 was for root (3. Run exploit and spawn a limited root shell)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
Just flash SuperSu in TWRP. This 1 click won't do it...yet.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
[MENTION=3355584]vibrantliker[/MENTION]: open the latest ZIP from the releases page (link in OP) and drop the whole folder somewhere, then add (at least) "adb.exe", "AdbWinApi.dll", and "AdbWinUsbApi.dll" to the EasyRecowvery-beta4 folder.

Screenshots attached.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
Getting root shell access isn't rooting...in this case it allows permissions to overwrite stock recovery with twrp...twrp is what injects systemless root.

I was just kidding about the step 7 thing...but until dev incorporates root step that's how you have to do it ( through twrp)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
I just ran option 2 (selinux permissive) and didn't get the "Congrats, TWRP is installed" Got the attached.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blackisland:
Hello...I picked up my LG V20 from T-Mobile yesterday. This is my first new phone from T-Mobile. I moved away from Sprint. I have not rooted since Sprint Note 4, which I still have BTW. I also brought another new phone, LG Stylo 2 Plus from MetroPCS. I have a couple of questions, will there be root, roms, etc for the Stylo 2 Plus? Also, will any of you gifted developers come up with sound boost profiles/zip files? Especially boosting the in call speaker/receiver on the V20 and Stylo 2 Plus (note: I have tried all current methods, settings..etc)? Thanks in advance.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
adb crashed or the connection to your phone was interrupted . Can you attach recowvery-exploit.log and recowvery-logcat.log? They should exist this time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Here you go...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Yup, just an "innocent" connection problem. I'll look into ways to catch and recover from that sort of thing, and in the meantime it may work just fine if you try again.

Btw, I appreciate your responsiveness - it's helped me catch and notice a lot of little things that might interrupt the process. :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Sure. I did try again and same thing. Do you think it has anything to do with the permissive option?

How do I get around there connection problems? It's happened on 2 different computers.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
I've seen adb behave so badly that it would kill the server before every command, though I've never figured out what conditions cause it. If you're running as admin, I would try not, and if you're not, then I would try running as admin.

In lieu of all that, the next release should be up shortly with a possible workaround.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] techpreneur:
Not sure if others had the same issue as I did but this is what I did to get my root working. (As usual. I'm not responsible if you brick or break your phone)

After I ran 1 the phone restarted. I then opened up EasyRecowvery.cmd again and pressed 4. Everything looked good except it couldn't restart into recovery.

Since I couldn't get the software to do it I opened a new cmd window. Went to my adb tools path typed adb shell and then reboot recovery.

Then did followed some of part 3 in jcadduono guide. I didn't do this part since TARP was already installed.

"This step requires that you've used dirtycow to replace /system/bin/run-as with recowvery-run-as. If you've rebooted since doing that, you will need to go back and do that again."

You should be inside TWRP now. It will ask you if you want to enable system modifications. You should swipe yes, otherwise your OS will replace TWRP on next boot. (When I was first in tarp it was asking for a password. I just hit back and then I was able to enable system modifications)

Since I forgot to put supersu.zip on my sd card I went to mount and mounted my USB then I dropped in the SR3-SuperSU-v2.78-SR3-20161103171345.zip.

After that went to installed SR3-SuperSU-v2.78-SR3-20161103171345.zip

Then the rest of the guide from jcadduono

To disable encryption after flashing SuperSU or the no-verity-opt-encrypt zip, you must use the [Format Data] button on the Wipe page in TWRP. No other options will work.

Back up all your internal storage and apps data that you can to your PC. You can use Titanium Backup with SuperSU before doing this step if you like.

Warning: Using [Format Data] will wipe all your apps and data (including internal storage) off the phone, giving you the out-of-the-box experience of a new phone!

Once this is done, you should be able to backup/restore/use any function of TWRP without any issues.

Once the phone comes back up flash super su again and you're rooted.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] crazyc78:
If you want to run certain apps like Pokemon and Android Pay, you could temp turn off SuperSU and thus the apps will think your phone is not rooted. Or there was a program called magisk but not sure about the compatibility for our device. I believe it needs Xposed and so far there is not a working exposed for 7.0 and our device. I know it's annoying but that might be your best bet to run those apps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albinoman887:
hey i did the root process manually with the other guide. I wanted to have a backup of the original recovery and boot.img but never got one. Could someone upload theirs?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gman_aka_Pop's:
Will this work on AT&T variant or is this strictly for the T-mobile variant???...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lavin40:
Hope for some help first I did Unlocked my bootloader and second I was able to get the exploit to run successfully my only problem is twrp wasn't installed as well supersu I was wondering if I was missing something in the process in order to get twrp and root
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] srimay:
Only tmobile
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ElBeaner:
Will this work on windows 10 pc or only windows 7?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
Should work on any pc
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
I still can't get this to work. Here's my latest logcat attached.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rbox:
In the thread about the TOT, is a link to the TOT. Also is a link to my github that has an updated program to extract that TOT. You can extract the kernel from the TOT with it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
I've had no problem getting TWRP to flash but when I go into TWRP to install SuperSU, TWRP can't see the zip file on my internal. TWRP is asking for a password first and I'm not sure what password it wants/needs. I hit cancel, then hit Install in TWRP but like I said it doesn't see the .zip file I copied over so I can install SuperSU.

Thoughts?

EDIT: Update...was able to flash SuperSU by loading it onto MicroSD
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] watdafux:
I've run into a bit of a snag myself guys. Hope someone out there can help. I can get the installer to the point where it completes the "Exploiting /system/bin/run as..." The problem is afterwards it claims to find an "existing stock*_ files in /sdcard". I wasn't sure what this meant but I went ahead a formatted my SD just to be sure. I re-ran the process and the same thing happened again. Can anyone shed some light on what this could be in reference to?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
After a bit of a delay, a new version is up with more fixes than I care to detail. Grab it from the OP, and feel free to report issues on the GitHub page (preferred) or here. Please attach any .log files the script creates, and I'll do my best to polish it all up if any more issues arise. :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pjs187:
I had to pay tax to donate to you OP c'mon man lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] watdafux:
Well then... ummm... where to start? Bezeek, you are the man is a good place I guess. Seems like my concern regarding this mysterious stock image has been addressed in your most recent release. Thank you good sir. I am now in TWRP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Why can't I get this to effing work!!! Been trying all day!!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
If there was a question there, I missed it ;)

Also, thank you - I didn't have a clue which user here sent me that! :laugh:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Glad to hear it!

I would highly recommend biting the bullet and installing an official ADB from Google.

You can find downloads (installer or ZIP) at the bottom of https://developer.android.com/studio/index.html where it says "Get just the command line tools"

To set it up, run "SDK Manager" then install Tools > Android Platform-tools, and Extras > Google USB Driver. You can uncheck everything else.

Do you have any other phones' drivers installed, like maybe HTC Sync Manager? Some OEMs include system services that force their own version of ADB to run at all times.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
That could be the problem. I have a brand new laptop at work that has no previous drivers. My desktop at home has years of leftovers from a lot of years from Samsung phones and maybe an HTC.

---------- Post added at 09:37 PM ---------- Previous post was at 08:42 PM ----------

After installing this official ADB from Google, do I run adb as I was previously?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Forgot to mention: adb.exe (and fastboot.exe) are installed to the "platform-tools" folder found right next to SDK Manager. I prefer to just be able to run "adb" from anywhere, so I generally add x:\wherever\it's\installed\platform-tools to my "path". On Windows 8 or above, you can hit the Start button and type "env", or refer to the picture attached.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Looking for the picture attached.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
I'm not that experienced in adb but always willing to try. Do I start adb from this folder?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
delete
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
That's the one! EasyRecowvery should detect it there no matter where you run it from, and that's the folder you would want to add to your path (I actually attached the pic to the previous post now) if you want to be able to run "adb" in command prompt from anywhere.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wing_addict_usa:
Does anyone know how to get permissive manually?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
bezeek,

First, thank you for all the effort you have put into this.

Earlier today I used Beta-5 and it ran just fine but TWRP was always being overwritten by stock on reboot and I couldn't see my internal storage inside TWRP. I was able to get around that by loading SuperSU on a microsd and TWRP did read that. So I'm up and running with root.

A little while ago I tried 1.1b-hotfix. It seemed to run fine and then errored out toward the end flashing the verify zip. It also was not able to copy the logs to my phone but they did save on the computer. However, I do have TWRP and so far it has stayed after reboot but I still can't get TWRP to see my internal storage.

Log attached.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
That's an odd one. Which version of TWRP did you try to flash there?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
At this moment, there's no (documented) manual method. One of jcadduono's exploits uses an injection technique he programmed just to get the phone to boot into permissive mode on demand. Off the top of my head, I seem to recall selinux's status is set in init.rc inside the boot partition, but don't quote me on that :silly:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
The latest TWRP Beta 4.

It's working but I get the encryption message asking for password when it first loads. I hit cancel, do you swipe right on that next screen, then when I hit install, I can't find files on internal storage but I can see microsd.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Ideally, there's no need to touch anything after hitting cancel - it should just begin to install after a second or two. To try to install it manually, look in /cache/recovery for the ZIP it uploaded to your device.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
Using ES file explorer, I can see the verity zip in cache/recovery.

Should I be able to see my internal storage inside TWRP? Am I not able to because the verity zip failed based on that log I uploaded?

TWRP is working. I was able to flash SuperSU earlier but only after I put it on microsd. I just can't get TWRP to see my internal storage.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
TWRP has issues with internal storage because the phone runs with encryption from the moment you take it out of the box, if not before then. I was hoping it wouldn't be the case, but it looks like the long-term answer is going to be to use TWRP's Wipe Data option in order to get internal storage to be useable.

In other words: most TWRP features won't work if you don't wipe Data (and install something that disables forced encryption, like the no-verity-opt-encrypt patch) after installing.

Ideally, that will be fixed eventually, but it will be done by someone with far more Android kernel smarts than myself.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
Gotcha.

So for me to get internal storage working in TWRP, I need to reboot into TWRP, wipe data, then manually flash the verity zip inside TWRP?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Yup, that ought to do it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
Well yuck lol.

Just when I just about had everything setup after the unlock wipe.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
So if I'm reading the other thread correctly it sounds like flashing SuperSu does the same thing as the verity zip? So if I already have SuperSU flashed and working, I should be able to wipe data in TWRP and then everything should function correctly in TWRP? I shouldn't need to flash verity zip or reflash SuperSU?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Slypnslyde:
Damn you t-mobile guys are so lucky. I gotta bad feeling that Sprint will be left in the dark again. And luckily I just got this phone two days ago, thinking I should return it ASAP
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
I can attest that SuperSU disables dm-verity during install, and I haven't checked myself but I'm inclined to believe jcadduono when he says it also disables forced encryption.

That said, blowing away the data partition ought to take the SuperSU app with it. You could re-flash it from TWRP or using EasyRecowvery 1.2b.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jagman96:
I unlocked the bootloader and confirmed with fastboot getvar all that it is unlocked, yet when I run this script it doesn't work. I opt for option 1, click another key, it says looking for adb success, then elsa two something or other and some other stuff really quickly goes by and then goes back to the beginning as if I never selected option 1. This all happens in maybe 1 second. I scrolled up to see what it said but it's like I never ran the script. Weird. I even went back into fastboot to confirm the bootloader was unlocked and it did that just fine so adb and fastboot are obviously working and I confirmed that adb and fastboot see my device. What do you recommend doing?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
There should be at least a few lines in your recowvery-exploit.log by that point. Could you attach it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jagman96:
Happy to. Where can I find it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tourbound129:
Should be in the EasyRecowvery folder on your computer.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bambam126:
Question can we factory wipe from the back up and reset screen in settings? With twrp installed or would that mess it up
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jagman96:
I don't see it. Sorry.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Still trying.....

Why do I get "adb server version (31) doesn't match this client (36); killing"
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jagman96:
Where did you find the log?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jthrasher47:
It would just boot you into twrp then it would perform the reset from there.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
It should be in in the folder you opened up adb from.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jagman96:
There's no log there for me :(
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bori1030:
So got bootloader unlocked but getting nowhere in step 2 for recowvery. I tried the steps and it won't install recovery . any help? Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bambam126:
How would we unroot I need to sign into something
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
In beta4, it will do as [MENTION=4581110]jthrasher47[/MENTION] described.

By the time you select a command from the menu, it should at least create a file named "recowvery-exploit.log" right next to EasyRecowvery.cmd that shows which mode it's going to run in. You can keep the EasyRecowvery folder open and watch for it while it's running.

With no log, about the best advice I can give is to update ADB and/or try Run as Administrator. I outlined the process for obtaining official ADB over the last couple pages.

That is definitely software killing off your adb to keep its own running. Off the top of my head, I'd say open Services on your computer, and look for "HTCMonitorService". If it exists, stop it and set it to Manual. It wouldn't hurt to look for services by other OEMs while you're in there.

Watching Task Manager, you should be able to run ADB, walk away from the PC for as long as you like; then come back, right click on it, and be brought to the folder you installed your copy to by clicking Open File Location. If not, then it's being hijacked.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
If you mean you're running into SafetyNet issues, this phone (and most other ~2015-2016 phones at this point) will only pass if you restore everything to stock and lock your bootloader.

In other words: restore boot and recovery from a backup you created, one the script created, or one of the stock images here; then use fastboot oem lock. And yes, that will fully wipe everything, because Google doesn't trust us anymore.

Please attach any logs that were created in the EasyRecowvery folder, especially easyrecowvery-exploit.log.