yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
Boot into TWRP without swiping to enable modifications using the factory reset dance after flashing twrp.img to recovery.

Option 1 (complicated and crappy):

Open adb shell from PC, and run:

mkdir -p /external_sd/partitions; for p in system boot modem aboot apdp cmnlib cmnlib64 ddr devcfg devinfo drm eri factory fsg hyp keymaster laf mpt msadp operatorlogging persdata persist persistent pmic raw_resources rct rpm sec sns ssd tz xbl xbl2; do echo "Backing up: $p"; dd if=/dev/block/bootdevice/by-name/$p of=/external_sd/partitions/$p.bin bs=272144; done; echo "DONE!"

This will copy each partition to your microSD card in a partitions folder. If you don't have one, use [Format Data] to format internal storage and change both references of /external_sd to /data/media/0 instead. You can then copy it off your phone using MTP.

Option 2 (fast and easy):

If you're on linux you can back up directly to your PC using (from your linux shell, not adb):

mkdir partitions; cd partitions; for p in system boot modem aboot apdp cmnlib cmnlib64 ddr devcfg devinfo drm eri factory fsg hyp keymaster laf mpt msadp operatorlogging persdata persist persistent pmic raw_resources rct rpm sec sns ssd tz xbl xbl2; do echo "Backing up: $p"; adb pull /dev/block/bootdevice/by-name/$p $p.bin; done; echo "DONE!"

If you're on Windows, visit https://frippery.org/busybox/ and download busybox.exe

Place busybox.exe in a directory you'd like to work with for partitions, or in C:\Windows\System32 (better).

Open a command prompt in the directory you'd like to work with (shift+right click and open command prompt here), and type: busybox sh -l

Holy crepes, now you can pretend you're on Linux and run the Linux command from Option 2!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sakuryu:
Hi, I'm coming in from the s7e and a long history of Samsung so im at a bit of a learning curve here. I have TMO variant of the phone. Does doing this trip anything like KNOX is there a flash to total stock option like ODIN or is this a forever modified thing?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
LG tools says it's permanent but I also want to know if it's possible to relock the bootloader like Nexus phones with no obvious tampering sign. (fastboot oem lock?)

As we all know the v20 isn't exactly fault free right now with the shattering glass and blown speakers. Not trying to be dishonest here but I believe it would be unfair for LG to conveniently blame those potential defects on the bootloader unlock.

For the time being I'm hoping for the above so I can root it without worry. The v20 screen is calibrated *really* freaking blue and I can't wait to calibrate it using my colorimeter.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sakuryu:
Yeah that's my thing, I have JUMP and full coverage insurance so I don't want them to go "Well....you unlocked it so.... F*U*"
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TheLoonyRebel:
[MENTION=5672995]jcadduono[/MENTION]

So I am stuck in the infamous TWRP loop where no matter what I do my V20 (TMobile H819) boots to TWRP. I've formatted data, wiped everything then installed Deodex ROM, etc etc etc. One thing I did notice is system isn't mounted after I installed the Deodex ROM. I am very confused and frustrated at this point I don't know what I can do. :(

Edit: Figured out how to fix it on my end. I decided to try to Power + Volume Down on the LG screen right on booting. Selected to do factory reset which still took me into TWRP but then right away rebooted to system. Worked like a charm I am up and running again complete with a rooted system! :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkandaH:
[MENTION=5672995]jcadduono[/MENTION]

First of all, great guide & thanks for building the binaries for the exploits. Though I don't have a V20, I like to play with the approach & got couple of hurdles on another device . I can't find a report button in your repo, so will be better to PM?

:highfive:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
Member

60 posts

Thanks: 7

Dang it I keep getting "program can't start because libwinpthread-1.dll is missing from your computer" please help me I tried 2 computers same error
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nxsone:
[MENTION=726782]jhr[/MENTION] In my case , I was in the same situation as you and someone sujested to just relock the bootlaoder and unlock right after it worked for me
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] azumandias:
I had the same issue and was able to pull that dll from @romracers Pixel XL fastboot compilation. Just copy that dll file into the adb folder with the other dll's.

http://xdaforums.com/pixel-xl/how-to/index-google-pixel-xl-t3466185/post69239012#post69239012
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
Thank you so much really appreciate the help
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
added issues button, but chances are it's simply not a device this is valid on
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkandaH:
Thanks, I've submitted the issue.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
this is so frustrating abd wont open on my PC it just open and disappear am i doing something wrong
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] 12MaNy:
OP: Thank you very much for this easy to do write up!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OneDon:
So let me get this straight, this link right here https://build.nethunter.com/misc/us996/v10d/ is basically stock images of the us996 that I can flash to go back to stock in the sense of me screwing up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
it might so possibly maybe be that perhaps i put that up there in the case of what you say could be a possibility in which i might somehow be able to help you solve, you dig?

yes, they also enable the ability for you to take OTAs again
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] z28james:
I just wanted to mention that this method works unaltered on the LG G5 H830 running 7.0. In fact, I lost TWRP while upgrading to N and this helped me regain TWRP (and root). Thank you!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
been watching you guys lol, i'll add it to the thread title
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OneDon:
Lol yes sir, thank you for this!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jaistah:
Wow it's been a while since i came back to check the TWRP process, i'm still running TWRP 3.0.2-0 for G5 under 10d. Since everythnig is working smoothly i didn't bothered upgrading, though i want to flash this newer TWRP. would flashing TWRP 3.0.2-1.img using the old TWRP work or flashing it with flashify would work or not? sorry i'm not sure if that was already ask before on the previous pages.

by the nice work jcadduono! you're the MAN! :good:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
flashing twrp from twrp should always work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kibmikey1:
So, to get back to stock for OTA's and such with a locked bootloader, all we need to do is flash everything in the OTA 7z from https://build.nethunter.com/misc/h918/v10d/, then relock bootloader, and we will be good to go? Again, this is for H918.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Perion:
So..I finally bit the bullet after waiting for an LGUP and relocked OEM and exchanged my V20 that would no longer boot. And, because I'm not bright, I had to go through this process again. It worked without a hitch this time through, no TWRP bootloop after the process this time, and there are two things that I did differently:

First, of course, I remembered to do the Format Data (type yes), however, the behavior was different this time around, I'm sure that I saw the TWRP bootloop after the very first boot back to OS in this process, and this time the system rebooted at least twice before I formatted data. This makes me think that it was the second difference that caused the issue.

The LG V20 has a feature that I hadn't seen before. In the security settings is an option to require a tap code on system startup, before the OS loads at all. I know that I did NOT turn this option off before I flashed the first boot looped phone. I remembered to do this on the new phone before initially flashing it. The bootloop in TWRP, and the LG Logo hang when going back to the stock recovery seem like they may be happening at the same point of the boot process where this small security lock program may have normally loaded.

This is just a theory, of course, I don't want to lose another phone in testing. If there is some type of system flag, perhaps it is something that a dev can look into? I know that I formatted data and flashed new system and boot from TWRP several times before I bricked my old phone with stock recovery, and those procedures worked for other people to get out of that TWRP loop issue, this is what seems likely to difference to me.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Mastajeff:
Anyone get the TWRP bootloop fixed? My device keeps booting to TWRP.. Tried several things with no luck
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
try formatting data from twrp.. you probably didnt and it is encrypted.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] andrewjt19:
Thanks for the write up. I just picked up the V20 but coming from a history of Nexus devices I'm pretty fluent with Android modding. However I always want to first find out how to restore the device to factory just in case or to unbrick it. Can someone point me in the direction on how to potentially unbrick the H918 back to factory?

tApPeD fROM mY nExUs 6
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
Which buttons do I press to enter twrp? Can someone please describe in detail?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
Anybody have a step by step video I would really appreciate it
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] djnikkofb:
first power off

hold vol down+ power

when you see LG, quickly let go of power only, than immediately press and hold power again (keep holding vol down).

when in LG recovery, highlight and select factory wipe data. select yes, than it will reboot to TWRP
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Mrsana:
I'm also waiting for this. When I rooted my LG V10, I used a video tutorial and never had an issue. Can someone create a video guide for us neophytes? Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hykhleif:
my phone H990 does not belong to a carrier, can i root it ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] agrenwa:
I'd like to bring up a general issue related to rom flashing and doing twrp backup and restore on the LG V20, if you had a password or pattern for screen lock/unlock and you backup the rom with twrp, you will not be able to get past the lock screen upon twrp restore, the rom will not recognize your unlock password or pattern. I had this problem with all the LG V20 custom roms, I had to do a clean install or just system restore in order to get past the lock screen.

I would like to find out if there is a workaround for this issue aside from not using a password or pattern before doing a twrp backup.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I answered you in the ROM thread you posted in. Quick and easy fix.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] andrewjt19:
Thank you for the information... I am assuming your are talking about extracting the contents in the OTZ 7z file right, followed by flashing them through Terminal? Do you have the commands for Terminal?

---------- Post added at 10:52 PM ---------- Previous post was at 10:49 PM ----------

That "tap the code on start up" usually means the phone is encrypted which normally causes problems when trying to manipulate the system... At least that's how it was with the Nexus 6...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ayemez:
Hi [MENTION=5672995]jcadduono[/MENTION],

First of all, thank you very much for your hard work, very much appreciated. I already have a little something went on your way. Please keep up the good work.

Quick question on the mounting the system r/w and bricking... I have fully rooted per your instructions, so I'm all good there. Is there any risk in mounting the system r/w after this to edit files such as build.prop or drop in system apps?

Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
you can modify system however you want after flashing either no-verity-opt-encrypt-4.1.zip (or higher) or supersu/phh-superuser.

you should make a backup in twrp though before doing modifications. remember that some things you should modify using cat, not by removing them and placing new files. ex. to edit build.prop, copy it to your pc, make your modifications, then copy it to sdcard, then do

mount /system; cat /sdcard/new_build.prop > /system/build.prop

using cat will preserve ownership, permissions, and contexts so it is the safest method to edit files!

ps thanks! :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ThaHaloMilitia:
Where do i put the TWRP file to use adb push
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jhr:
I am unsure of this. Currently I had no opportunity to test any methods. I may have the chance in 19 hours from this list time (2200 Pacific Time).

I thought relocking was the last step in any thing you do to this device to revert.

did you have the same twrp version as I do now. I can't even get ADB commands to work? I will be happy if I can as a beginning

I will try at 5pm PSt. Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nxsone:
I don't remember which twrp I had , but it was one of the earliest , I was also hesitant when they recommend me to just relock then unlock right after , but I tried and it booted back as a new phone , anyway just give it a try it might work .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
[MENTION=5672995]jcadduono[/MENTION] I was wondering if you'd be willing to look at how to get System Ui Tuner fully enabled in settings? Since you are the reason we have options for this device, I thought you would be the best person to ask.

System UI Tuner can be enabled but has no options available.

How to enable System UI Tuner

http://xdaforums.com/v20/how-to/manually-doing-ui-tuner-t3493986

Screenshots from my device

This would definitely help the community with customization options since xposed is still in the works. As I'm sure you know, some people do not like to use xposed anyway, so it would be nice to this feature available. Its there just not unleashed...yet.

If you are interested just PM me. I'm will be your test dummy. Thank man for all that you have accomplished on the V20 and many other devices.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jhr:
Here is my noon concern...how do I get it to relock? ADB was not working on Windows 7. Today I will try ADB on a Windows 10 laptop...(the one I originally unlocked with.) Hopefully that would work if not...then goes to my original concern of getting the relock commad to go through
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
exactly you can enable this menu but its blank so what's the point of that
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] KingKash420:
This is such a noob question but is it possible to boot into twrp without using adb fastboot recovery?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] alcoholer:
hi, someone can help me. My phone when start stay at LG Screen

i cant boot into recovery, i cant boot into android.

when i plug the phone into the pc holding vol down i have the option to type "fastboot reboot", when the phone reboot stay at the same LG screen.

thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jinkerz9430:
Okay i have been trying for several minutes now and i dont know what else to try. At first i downloaded the file "libwinpthread-1.dll" which was the error displayed when i opened the downloaded adb.exe , now it does open but shows a white screen and closes in a fraction of a second. why is it doing that? i havent been able to pass from the first steps. I enabled OEM unlock, i selected PTP mode, i have the driver for the V20, Trust me im a fast learner but this i havent been able to overcome :( . im going to try with a different computer and see how it goes. But for the meantime, if anyone has any ideas of whats wrong, please let me know

---------- Post added at 03:56 PM ---------- Previous post was at 03:36 PM ----------

i tried with another computer but it didnt work either.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jinkerz9430:
I tried with a third computer and the same issue happens...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kevinchristopherson:
need answer for fastboot oem unlock

YES YES help me please.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jinkerz9430:
I found the issue. My antivirus was been a pain in the ass. I had silent mode activated. I deactivated my antivirus and now is not deleting the files. But still, the adb and fastboot were still missing the libwinpthread-1.dll file, in all of them it is missing. so i downloaded from the pixel one and it worked, now im on step 2 :cowboy: .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] andrewjt19:
I thought I saw it but what's the button combination to boot into the bootloader and recovery.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tegezee:
This is great if you can't do it manually

http://xdaforums.com/v20/development/lg-h918-t-mobile-one-click-recowvery-t3491969
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kibmikey1:
1. Download and extract images from OTA zip.

2. Transfer image files to internal storage on phone.

3. In TWRP, flash the image files to the corresponding partitions. **NOTE** There are reports around that it might be prudent to hold off flashing the stock recovery, as it might lead to issues booting up once you restart. The theory is that the stock boot image will trigger an automatic flash of stock and a factory reset once it notices something's up (namely TWRP being in place of stock recovery), so the issue corrects itself. Again, even if this isn't the case, and Android boots up completely fine, you can still get back into TWRP, flash the stock recovery, and everything's right with the world for OTA's again. The choice is yours, grow mold or be bold...;)

4. After flashing all images, reboot to bootloader and re-lock bootloader (fastboot oem lock), which will completely restore your phone to it's zero day box status, until, of course, you mess with it all over again. Because you will.

Hope this helps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jinkerz9430:
quick question. do we have to download the 32bit recowvery app process? that's what i understood, and i changed all the app_process64 to app_process32. But now im stuck on tmobile's logo. is that normal?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ImpulsiveOats:
Was able to get this working, but now my device only boots into TWRP. Any ideas? I've tried reflashing the stock image as well as a custom rom. I'm on the h918 variant.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Mrsana:
After I flashed SuperSu, my phone boots into TWRP all the time. What did I do wrong? Any help? Thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Mrsana:
I *just* finished this and my device is also booting into TWRP. I have tried reflashing the stock images (all versions of it) and custom ROMs. Nothing yet. I'm also on the H918 variant.

Someone help us, please? Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jinkerz9430:
Nevermind. ROOT ACHIEVED! it took me a couple of times because my computer was being a pain in the ass. now i have root! (JC drops the mic! ) LOL
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] RealPariah:
Ok, so I got all the way through this guide twice. Both times I got the congrats we have root access and I issued the dd command to replace the recovery twice (file on sdcard as twrp.img (3.0.2 or 1-2 whatever newest is for H830). But all I am seeing is my device restarts like 3 times and ends up in android. Also, now if I issue adb reboot fastboot it does the same I see it reboot, then reboot and then I am in Android not fastboot! UGH I just want my SuperSU LoL all this money and now OEMs are doing insane **** to keep me out still :-p

Same thing if I use manual key boot method to try to get to twrp it presents the data reset I answer yes then I see the boot logo and the stupid can't be confirmed relock your loader boot message twice and then it goes right in to Android!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] andrewjt19:
Place it in your folder that contains fastboot/adb files.

tApPeD fROM mY nExUs 6
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ThaHaloMilitia:
Did that. I have TWRP but i get a failed error when trying to flash SU
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] andrewjt19:
What exactly are you trying to do? Are you using TWRP or your computer?

tApPeD fROM mY nExUs 6
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ThaHaloMilitia:
Flashing through TWRP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] andrewjt19:
So your trying to move a file from your computer to your sdcard to flash through recovery? Right? If so, on your computer, place the file in the same folder that has your fastboot and adb files. The open terminal or command prompt and write something like this:

C:/adb push filename.ext /sdcard/filename.ext

tApPeD fROM mY nExUs 6
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ImpulsiveOats:
I just managed to fix it. I downloaded the OTA img files and restored them one by one in TWRP. Afterwards, I also flashed the included recovery img and re-locked the bootloader in fastboot. This brought me all the way back to stock, but at least now my device is working.

The img files can be found here:

https://build.nethunter.com/misc/h918/v10d/

Thinking about trying again in a few weeks when I have more time :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OneDon:
Could mean a bad download, re-download and try again. If the same problem commence try the adb route.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ThaHaloMilitia:
Ok
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] littleprince86:
Hello guys,

I bought a lg v20 us996, lg I never had before. but I did modding with other phones.

I would like to unlock the bootloader and root, but I want to first understand something. I know you can not upgrade via ota, but do not miss the updates so that you can flash without any problem to the release of new firmware? you can do with unlocked bootloader without breaking anything?

roms and kernels issued for h918 are also fine for us996?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kevinchristopherson:
All Right, I'm thinking of going for root.

It took me four days to unlock my boot-loader, found the answer when i switched laptops.

My three other androids were rooted on day one, I've had this for six days or so. after reading the thread from front to back, and reading other articles, I had decided to wait and just enjoy my stock V20 until an easier way to root had come about.

But I'm getting the itch. So I think I'm going to go for it. I'm just looking for anybodies experience as to if I should hold off and wait?? any input would be appreciated.

I found this article that explains the process down to the nitty gritty details, in easy to understand words with pictures. (I'll take any help I can get).

http://android.wonderhowto.com/how-to/root-your-t-mobile-lg-v20-using-dirty-cow-0175329/

If anyone sees any problems hit me up. thanks.