yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
The combination of the amount of thanks on Chainfire's post that does nothing more than say he's glad he doesn't have to work on the device compared to my actual OP, and this headline on AndroidHeadlines: "Chainfire Successfully Gains Root Access To LG V20" is pretty frustrating. Why why why! :eek:

In the meantime I've made a few bug fixes and cleaned up the code to recowvery, so it should be a little more understandable too. New binaries are already up at the same location.

I'm wondering what other devices out there in the world don't have signature enforcement enabled (unlockable, or unlocked but inaccessible or flash disabled bootloader), whatever there is, recowvery will very likely work on them as well in its current state. I assume people have tried this on all variants of the V20 now... (skipping past the fastboot instructions)

It should work on the H830 as well I think, negating the need to use TOTs and flash their entire device. :D (does it still do that?)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
This does not look fun at all...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] justthefacts:
Hey jcadduono. None of this would have happened without you. I have thanked every post.

Question. I'm coming from G3 and didn't have to install the V20 drivers because my computer saw the V20 first time I connected the it. Do I still have to install the V20 drivers?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shojus:
I posted that so you know what was being said.... They basically gave him credit but then said you were mentioned too... IDK man, BUT THANK YOU VERY MUCH!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
It depends what the computer is seeing. If you're able to see ADB or Fastboot when you're in the correct modes on your PC then you don't need to install any new drivers. The actual adb/fastboot drivers are very tiny and haven't changed in years.

If you can only see MTP/PTP file transfer, then you may need to install the drivers.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
It was actually a pretty easy process.

I am now rooted, with a custom recovery, and an unlocked bootloader ! :)

Let the ROMs begin!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Thank you sir for all the awesome progress you have made! 2 questions...

Will future Android updates to the v20 break this method?

Do you recommend to backup everything in TWRP? In case we need to revert? Is this possible yet? This is my first LG device, but been around the scene a long time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pro_granade:
So you're saying this should work on my Sprint (locked/non-existing bootloader) variant of the V20?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
I'm waiting for my battery to charge up before I delve into it... It looks like it's just running code. Only thing I'm not so sure about is the local_manifests.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bambam126:
So how would I flash a tot or even get out of this lg boot screen hard reset didn't work. Can I flash the tot imgs via Fastboot?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
Uhhh that's only if you want to build it yourself for another device, you only need to follow the "running" section with the already built binaries in the OP!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
Weeeeeeeeeeeeeeeee!!! Beautiful beautiful beautiful... You are amazing for this!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pro_granade:
[MENTION=5672995]jcadduono[/MENTION] should I set up the build environment from cm-13.0 or cm-14.0? The Github doesn't specify.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
I'm going in!!! Where's my hot assistant to dab the perspiration off of my upper lip???
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] justthefacts:
I think I got it all figured out before I jump in. I just want to clarify flashing the twrp. Is this the command?

dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wolfu11:
[MENTION=5672995]jcadduono[/MENTION]

Thanks for all your hard work it is much appreciated.

You didn't get the credit you deserved for the g5 either.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
Great achievement but for now, too hard for us regular users to follow this chain of commands

We need easier way for the masses or even video :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shojus:
Yes, but you may want to rename it to twrp.img and put a copy on your sdcard. I put a copy on both sd cards (internal and external) so that I could not go wrong and I was successful doing so!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Rydah:
Am I supposed to rename the dirtycow files? They download has the .c extension but the instructions dont.

Edit: Never mind, captain obvious over here obviously missed it...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
Hey, so you're interested in building it from sources? You can hopefully build it in any Android OS build environment, (5.0 or newer) including AOSP. If not, let me know and I'll try to find a way to solve it.

I only build TWRP so I'm using a minimal Omnirom 6.0 manifest specifically for TWRP:

https://github.com/lj50036/platform_manifest_twrp_omni

CM-13.0 and CM-14.0 should both work fine though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Did you ever get an error permission denied on any of the steps?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
I was told to run "run as su" but not working.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
curious, if I'm currently rooted on H91810d, how can I get to a rooted H91810i? would like to make the upgrade without getting my /data encrypted once root is lost or losing all my data if possible
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bxlegend:
Download the 10i system img zip from here. Unzip it, extract the system.img file, and flash it in TWRP as an IMG file (not a zip). Choose system as the partition. Without rebooting, flash the SuperSU zip followed by any other mods (Xposed...) and reboot. You should be rooted, on 10i, and good to go from here.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
what about all the other parts? won't those images also need to be flashed to be truly 10i?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pings:
I have a H918. I rooted and flashed TWRP and when TWRP booted up it asked me for a Device Encryption Password. I just clicked cancel and followed the directions. That part was not in my directions. Is my device encrypted? If so how do I tell?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bxlegend:
Actually, little has changed from 10d to 10i (which is very rare for lg). Your phone will still function without all those other bits as the bulk of the changes are in the system.img and boot.img.

---------- Post added at 04:42 AM ---------- Previous post was at 04:38 AM ----------

Sounds like you only completed the part that gets TWRP installed. You're not done yet as you still need to factory reset and wipe your data partition. Then you need to flash SuperSU to be actually rooted.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lilmeanz:
twrp starts then kicks me out it wont allow me to flash anything ive also tried hard reset but it sits at 100% and wont boot help me
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] beachcomp.com:
Tmo H918

I'm having 2 issues so far tying to do this on a brand new Tmo 20.

First, when I do

, it boots into the white Tmobile screen and just sits there till I remove the battery and reboot.

Then, when I run "adb logcat -s recowvery", it shows the below and sits there.

HELP!!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] slkpmp:
When I did mine,, I expected a "crashing scene" but all I got was the white T-Mobile screen,, but it was 90% blacked out and fading lighter towards the top.

I also thought I screwed it, but I gave it 5 minutes or so and it finished and did it thing.

I'm not sure but I'd go back and try running recowery again and wait a little longer.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] beachcomp.com:
I can not get this thing to work.

It runs

And when I run log cat:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] oakestrevor:
Link is Down

[MENTION=5672995]jcadduono[/MENTION] Link is down, 404. Any other links to these files?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jason504:
Is this the only way to root H918? I have rooted all of my past phones and none where as complicated as this. Not complaining just asking.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
Yes it's the only way. Android phones are just getting more and more locked down.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rowihel2012:
Thank you devolper

Successfully unlock and root
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] 2muchspl:
Here is thread that has a video link as well as webpage link I posted (post 2) that can make things much more easier to understand. I used the webpage link 2x and it was easy as pie.

https://xdaforums.com/v20/help/video-adb-fastboot-install-root-v20-t3536442
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] snipestech:
having some issues getting this error

[*] mmap 0x79f3916000

[*] exploit (patch)

[*] currently 0x79f3916000=10102464c457f

[*] madvise = 0x79f3916000 14360

[*] madvise = 0 1048576

[*] /proc/self/mem -2122317824 1048576

[*] exploited 0x79f3916000=10102464c457f

elsa:/data/local/tmp $ run-as exec ./recowvery-applypatch boot

Welcome to recowvery! (run-as)

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

Current uid: 2000

Setting capabilities

Could not set capabilities

Error 1: Operation not permitted

1|elsa:/data/local/tmp $

Any help will be apreciated thanks !
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
If we want to go back to pure stock, can't we just use LG Up with kdz?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jayochs:
so quetsion, the unlocked us 996 is FINALLY getting it's first OTA today to the software that ends in F...

does the unlock method still work on the new software? or are we going to run into issues?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
The 10j update for T-Mobile was just released as well, and it can still be rooted. I'd guess that this'll still work for the US996 too. Even if it doesn't, you still have the official option, although without a way to go back.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jayochs:
what do you mean with the official option?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
The US996 has an official bootloader unlock from LG. It just can't be reversed.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cwru53:
Most recent T-mo OTA (10j)

LG V20 H91810j is what is reported as my version on T-mo after OTA update. I cannot get recowvery to complete. It hangs for at least 10 minutes at

adb logcat -s recowvery

on T-mo white screen. Has anyone else received this update and tried to install TWRP / recowvery?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
[MENTION=4835387]OvrDriVE[/MENTION] confirmed it to be working.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jayochs:
yeah and that method has to be used for the us996. gotta do the official lg method to unlock and then you continue with cow.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
Worked fine for me after getting 10j.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pressmoon:
With Every New Nougat OTA Update?

Folks,

Do we literally have to reinstall Recowvery, TWRP, etc. every time a new OTA comes out if we wish to keep root with an update? I'm rooted on H91810d currently.

If so, do we take the OTA and "then" run adb, etc. following the instructions for the 1st time we did so?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
You can always install a custom Stock ROM. For instance, OvrDriVE's is on the 10i base currently and a 10j update is being worked on.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
For the moment, yes. But I, or someone else can create a TWRP-flashable update with the files we pull from our updated devices. However, this will not update the baseband.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pressmoon:
I might do this to stop OTA's if the fellow(s) who developed it will update occasionally. In the meantime, is there a way to get rid of the OTA notification to your knowledge?

And thanks to the 2 of you who responded to my question.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
You can swipe to show the gear and disable the Play Services notifications, but I don't know if you can individually disable it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pressmoon:
Frankly I wasn't even aware of the gear option on OTA notifications so thanks for that. I disabled the Google Play notifications as that's the only way to get rid of the OTA notification. I check for app updates often enough that I don't need app notifications so it won't be missed.

I'll still consider flashing that ROM though and thanks again for everyone's feedback.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cwru53:
Time frame?

How long did it take for the process to complete?

---------- Post added at 10:47 AM ---------- Previous post was at 10:45 AM ----------

Does anyone post approximate time frames for each process? I will try again at some point.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
The restore through LGUP took less than 5 minutes, then a full boot, OTA download/install, and then the recowvery process. I was done in under 45 minutes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pressmoon:
Rooted H918 10d - Want Rooted 10j

Folks,

If it can be done now, would someone please point me to instructions on how to upgrade my rooted H918 10d to H918 10j? Or do I have to unroot, take the 10j OTA and then re-root it? I've looked at all of the postings and don't believe I've come across anything that clearly addresses that.

I'd appreciate it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wildbill014:
When I get to the "adb shell reboot recovery" part my phone says "Your device is corrupt. It cannot be trusted and will not boot."

and then it boots up normally.

I tried continueing the commands but when i got to install twrp it said invalid file name. I put the correct name so I figured it had something to do with the corrupt device message

It is the T-mobile h918

any help?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jason504:
Can anyone help me. I tried to follow the instructions but it is not happening. Tried to watch the video not happening. I unlocked the bootloader that went fine. After my phone reboots that's where I am lost. The video and the instructions just seem to skip right over this part. Some of us are not that experienced.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
Use the script

https://xdaforums.com/v20/development/lg-h918-t-mobile-one-click-recowvery-t3491969
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jason504:
I get that but after I unlock the bootloader and your phone reboots and you set it up again what do you do. The instructions do not tell you it just goes into copying and pasting? Also it tells you to download 4 files I did that but there is nothing on my computer to open them or it does not tell you what to do with them.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
There should be a GitHub link with instructions.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nymikey:
Check PM......
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jason504:
Ok guys I am rooted everything worked good. Except one thing happened I lost some of my Lg apps. Like LG world the remote and health. Does anyone know why?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pressmoon:
I want to thank jcadduono for developing a way to root the T-Mo V20. Just updated my H918 10d to 10j (piece of cake) and followed your instructions to reroot after installed 10j. Everything went smoothly and after you use his instructions 1 time, you'll get the hang of it. Using LG UP to upgrade to 10j (using LG UP period) is tricky in getting it to recognize your phone but using UPPERCUT solved it. However, after it repeatedly hanged at 4 seconds I finally figured out that you have to turn off your anti-virus software to get UP to complete. There was no other way around doing so that I'm aware of.

Have Google Assistant and Viper4Arise installed and waiting to install 3Minit Clock once a 10j version comes out (I hope).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] diehard2013:
Canada checking in...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
did you bring the timbits
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] diehard2013:
unfortunately I brought my unrooted freedom lg v20 only....

next time...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cpgifford:
Phone: V20 [H918] T-Mobile

Root: DirtyCow

Recovery: TWRP (Latest)

I am using "Minimal ADB and Fastboot" instead of the full package from google sdk ( I only mention this because im not sure where the exec package is coming from, weather its from the phone or from the shell withing adb)

I flashed the CM Rom and Now I have no Recovery to flash the gapps.

This Is the steps i took.

Boot to Recovery

Skipped Decryption

Installed no-verity-opt-encrypt-5.1.zip

Factory Reset via TWRP

Flashed CM/LineageOS-14.1 | Android 7.1.1 for LG V20

Tried to flash Opengapps Aroma Full Package - Failed to Error 66

Rebooted phone

Booted into CM

Downloaded Stock Gapps via Phone

Rebooted to Recovery Using Power down menu

Hung at LG Splash Screen

Battery Pull/Powered back into CM

Used adb reboot recovery via console on computer

Hangs at LG splash

When I run the Command I get an Error about 'exec' is unknown

h918:/ $ run-as exec dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery
run-as: Package 'exec' is unknown

What Is the Solution?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lilmeanz:
No variety zip can't be located its in recovery folder
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sdlopez83:
- - - Rebooting to persist selinux permissive mode - - -

Error 1: Operation not permitted

Creating backup of recovery at /sdcard/stock_recovery.img... FAILED!

Boot and/or recovery partition already modified. Refusing to continue for safety.

If you insist, you can run the script again with integrity checking disabled... but just don't.

SOMETHING WENT WRONG! EXITING.

- - - Flashing no-verity-opt-encrypt - - -

Using C:\Users\Lenovo-Serg\Desktop\EasyRecowvery-1.3b3\zips\no-verity-opt-encrypt-4.1.zip

Press any key to continue . . .

This is as far as I go. Can anyone help or tell me what info I need? it won't flash and restarts at that stage. What did I do wrong?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] crazyc78:
Currently it seems this does not work for the new update. Are you trying to root on the new update or an older version of firmware? If you want to root you will have to do it manually or wait until the OP releases an update.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sdlopez83:
ah ok, yes im updated. If i go manual, do you know what step I would pick up from? Do i just need to install a recovery or is there other steps? Thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] crazyc78:
I would suggest following the steps one by one. There is a guide on how to root the new update. I posted a link to the thread a few posts back. Just be patient and make sure you type in the commands correctly. You can mostly copy and paste into the command prompt window. Good luck!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] snipestech:
Geez most complicated phone ever !
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
You've never had a Verizon Samsung, huh?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] snipestech:
No but I've heard .???
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dangercl0se:
I have been trying to root my US996 again and again using this guide.

the first time, I installed SU, and then flashed WETA 3.3. It worked, but I reflashed the ROM for some WETA features. Got stuck in TWRP loop.

Then I used uppercut to feed kdz into my V20, lost root and had to do everything again. This time I finished rooting, factory wiped once in TWRP, flashed SU, and then flashed 3.4 WETA, I am stuck in TWRP loop again.

(I specifically remembered that I did not reboot after rooting, until ROM is flashed, but I don't think that mattered)

What am I doing wrong?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Drkphnxs2k:
I'm getting this exact problem too along with a few other people. I'm on software version H91810d with security patch Sep 1, 2016. Doesn't this mean I'm on the old version that is rootable with no issues? I believe my old V20 had this version and was able to root that one no problem, but I messed it up by doing the OTA update and had to exchange it for this current one, and now I'm having this problem. I even tried doing it manually and it still gets stuck in the process. Any ideas?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sdlopez83:
Do the manual way each line at a time. I did it along side with the guy on YouTube. Worked
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Drkphnxs2k:
I just did it again and it finally worked, no idea why it wasn't before. I did the exact same thing, even copy pasted so I know I didn't misstype. Everything is fine now, rooted and installing a ROM now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Ceruleancerise:
US996 - Latest version

I have no clue how to do this, is it possible I could pay someone paypal/bitcoin to do it over teamviewer? I'm almost certain I'd brick it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
deal, send me a pm on irc or telegram (if you use the link in my signature for freenode webchat, you can use #jcadduonoisawesome as the channel name and you will appear in my room and can talk to me)

alternatively you can also talk to me on Mumble

adduono.com

port 10101

password inbred

i idle in "The Hood" room
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ludacris713:
Help

Is this root consider systemless root I want to install suhide to make snapchat work
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] groovadelickun:
First thing - I have no idea what I'm doing, but this worked for me....

My H918 was updated to 10j OTA and EasyRecowvery-1.3b3 was failing.

What I did was make sure I had TWRP on my external storage (named recovery.img) first and then use option (5) "Extras and Advanced Tools"

Then followed from Step 3 on the first page of this thread by pasting:

run-as exec dd if=/sdcard/recovery.img of=/dev/block/bootdevice/by-name/recovery

reboot recovery

Then make sure you continue to follow jcadduono's instructions regarding the requirement of flashing SuperSU or the no-verity-opt-encrypt zip and wiping data.

I was then able to install a custom ROM. (I used MTP transfer to copy the files over within TWRP)

Hope this might.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] me2151:
Yes its systemless
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ludacris713:
I couldn't get suhide working on this everything I try installing it i get stuck in a bootloop so have to go back to twrp add restore my back up to make my phone work am I doing a step wrong to get suhide on phone?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] me2151:
Im not sure honestly. I use root switch instead of suhide.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ludacris713:
Where can I find that and did that made u be able to long in snap chat?