yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Umbrella Corp:
I got TWRP installed and booting, but I deleted files by mistake.

Still have TWRP, but I can't boot into the phone.

Anyone have a or know of a ROM for the unlocked US996?

Or some other way to boot it up?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
If anyone has a US996 and hasn't rooted yet, can you please contact me on IRC (links in signature) preferably in the #twrp channel.

I will give you instructions on creating fastboot flashable restore files for this poor soul and credentials to upload them to my server for people to download.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] luzair:
LG V20 Root

can international version be rooted?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] manufan721:
So, don't normally ask for help because I can usually figure things out but I successfully unlocked, got twrp booted, left the room and my stepson messed with my phone and wiped data prior to me flashing supersu.. Uggh.. So I still flashed, wiped data and now it constantly loops back into twrp everytime I reboot system.. Is there a fix for this or is my phone bricked? I'm going to kill that kid, I know he did it on purpose.. Damnit
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Umbrella Corp:
Looks like it was an exciting day for at least 2 of us.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] manufan721:
Might have found a workaround since I can access twrp posted in another thread here
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] chronos7:
I'm finally rooted and loving it!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] czerdrill:
Just to clarify, after flashing SU i wipe data right?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Swizzle82:
No, wipe data then flash supersu.. Supersu is systemless so it resides in your data partition. If you wipe after flashing, it would be pointless cause you'll have to reboot to recovery and flash supersu again..
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kasey348:
Hello I have the beta TWRP I flash a bad room when I boot into all the apps force to close pressing the volume down and power pressing twice it get into recovery but then it format or wipe the phone then it boot back again and start all the apps but I only get into a black screen force to close I have a video if someone can help me or I have to wait for a tot loader.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] justthefacts:
I see new TWRP 3.0.2-1. Any substantial changes from rc8?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EMSpilot:
And can we flash it via flashfire or do we have to push via dirtycow?

Cheers
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
not much changed, just corrected some fstab stuff and added more things to flash image page

if you already have twrp installed, why not just flash it in twrp? (install -> flash image -> twrp.img -> recovery -> flash)

anything that gets it onto the recovery partition is fine though
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Writer01:
Rooting and Android OS shell

Hey guys. I looed over the process of rooting posted on github. First step is to set up Android OS build environment.

Can you give me a guide where to find info on that? I am on linux. I can use shell and bash without problems.

I just want to make sure I will follow the process exactly.

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] turilo:
Can anyone confirm this is the variant that the bootloader may be unlocked? Thank you

Check out what I found on B&H Photo Video http://www.bhphotovideo.com/c/product/1285960-REG
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jthrasher47:
Yes that one can be unlocked any of them from the US Open markets such as B&H Photo Newegg or Amazon can be unlocked with the official LG unlocking tool
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Writer01:
Never mind guys. Just use adb and shell to get into toot.

Just another simple question. Should I load/flash SU to data partition???

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Writer01:
Just did all steps. Was able to root but it is the pain to do. LG will NEVER be dev friendly. Rooting is PAIN. Good luck guys. I am going back to Pixel.:laugh:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XooLoo:
I'll get mine in the coming week, and I'll be more than happy to help before I root. If you pm me the info here, it'd be much appreciated.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] manufan721:
So just need to verify, after unlock and recowvery install I install supersu, format data then reinstall supersu? Only reason I'm asking is that I bricked my last v20 trying this, it went into a twrp loop at boot, I'm assuming I wiped at the wrong time and I'm getting a replacement and just wanted to make sure I'm getting it done correctly this time.. Lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
get into twrp

if your data mounts then just flash supersu once and be on your way

if your data doesn't mount, and you flash supersu, supersu su.img is installed in /cache and you can be on your way

format data after this only if you want to disable encryption

if your data mounts and you flash supersu then format data then you lose su.img and that's the only reason you'd flash it again

shouldn't have bricked, and at least now you can't twrp loop anymore (twrp beta 8 or newer)

should be able to get back into fastboot and from there you can just fastboot erase misc and/or fastboot format userdata, if none of those available, fastboot oem lock/unlock will erase too. to stop twrp loops
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] manufan721:
Gracias jc.. And I really appreciate all the work here!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] netgar:
Mr. jcadduono, I know I am off the topic but could you please answer my question. Bassicaly my V20 speaker got broken and I was offered exchange by TMobile. However I am rooted. How to back to stock or kind of...

Is it trued if you relock bootloader and flash your stock imgs in Twrp you can go back on stock ?

Thank you
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
you have to flash all the files in the for-OTA 7z (not the other 7z) and relock AFTER factory reset from pure stock

if your device boots to system and works after relock then you're good to go it's 100% stock
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
I got this [MENTION=5672995]jcadduono[/MENTION] Go to post #892 and download the OTA.7z

Here

http://xdaforums.com/showthread.php?p=69573075

Extract it

Flash modem.img and persist.img via flashfire

Flash system.img then boot.img then recovery.img via flashfire or TWRP.(make sure recovery.img is flashed last just in case something goes wrong you will still have TWRP)

I would personally let the phone boot up after each flash just minimize anything getting wonky. I flashed each .img via flashfire to keep things uniform

Now this is probably the most important part...after all is flashed go to SU app and uninstall it under settings...after it boots again verify it is gone...now factory reset device

Now power off device or pull battery and boot into fastboot mode (from phone off...hold volume down and plug into pc... Give this command "fastboot oem lock" then "fastboot reboot"

done!

* if you have any issues with cmds not working you will have to boot up phone...rush through setup wizard without inputting any of your accounts...go to settings/about device and activate developer options and ensure usb debugging in enabled. If that is the case you will have to do another factory reset to bring back setup wizard
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] netgar:
I am sorry but what do you mean by "all the files in the for-OTA 7z (not the other 7z)" Where can I find it?

Thank you for your help....
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
Read the post after [MENTION=5672995]jcadduono[/MENTION] post...I linked and explained everything...I had to do this a couple of weeks ago for the same reason as you...it works perfectly
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
no need to use flashfire either they can all be flashed from twrp (persist and modem added to flash image in 3.0.2-1), just make sure you reboot immediately after flashing them ALL

modem actually doesn't *need* to be flashed when modified as OTAs flash the entire partition without checking it, and it's not under verity checks

persist actually shouldnt be needed either as we arent using it in twrp and isn't verity checked either
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
Good to know! Thank you for that info!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
y'know what, don't flash recovery in twrp, leave twrp as is on recovery partition.

if boot is unmodified, then it will verify integrity of system. if system is modified, it will fail to boot and your phone will boot to twrp so you know there is an issue.

if system is modified and boot has verity on (unmodified) and you flashed stock recovery, you're pretty much out of options = bricked. (h918 only)

if boot is unmodified and system is unmodified, system will boot successfully AND it will automatically flash stock recovery using a diff/applypatch from stock boot so you don't have to worry!

simply booting into recovery and seeing stock recovery after that will tell you that it's safe to lock.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Lmax579:
I'm having an issue... My phone is unauthorized on adb, is there a reason that would be?

---------- Post added at 06:07 AM ---------- Previous post was at 06:02 AM ----------

My adb is not working, but if it was, I can restore to stock?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] monsieurtalbot:
Alright. I got my America Unlocked US996 v20. Did I make the right decision?

Coming from a heavily modified Note 3 and I have a feeling i'm going to be missing my mods for a while. =(

How difficult is it to get a stock rom root and deodex? Is deodex even possible right now? Are H918 flashables going to be compatible in general with the US unlocked US996? I feel like I haven't done this in a while coming from a 5.0 device.

[MENTION=5672995]jcadduono[/MENTION] I messaged you on IRC.

Cheers!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jhr:
Ok here my screw up...my T-Mobile v20 was unlocked and rooted. I flashed twrp but it was not rc8 instead the beta4 version from the other thread. Still the phone was working but I never factory reset for fear that I world brick. Well I took the plunge and factory reset through twrp but I keep getting the white screen message to reset phone . Data corrupted but successfully unencrypted. I haven't figured out a way to go to twrp. The only way it goes there momentarily is if I choose to reset. But it always goes there. Never boots through completely. It stops at the white screen that tells me data corrupted and to reset.

I can go to bootloader mode if I press the volume down and plug it to USB. If I press volume up and connect to USB it will go to downloading firmware and computer does recognize it that way. ADB won't work. Currently on a PC with Windows 7. I can try later on a laptop and see if anything better. But currently can't. Can anyone help me figure this monster?

Last option easy one is do insurance claim if T-Mobile won't do a warranty exchange.

But currently being a dad to my 2 year old. So my time is limited in response. Thanks in advance
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
maybe you could make a batch file like...

adb wait-for-recovery
adb shell "dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=272144; killall recovery; killall twrp"

if adb shell triggers fast enough it could end up wiping misc (which is telling your device to constantly reset itself) then restart the twrp interface
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Umbrella Corp:
If you do I would be forever grateful.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XooLoo:
It'll definitely help myself too. I have a tendency to screw things up once or twice every week or so... lol But I haven't the slightest clue how to do this. Hopefully [MENTION=5672995]jcadduono[/MENTION] will walk me through the steps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] monsieurtalbot:
I had a US996 unlocked and already screwed it up - so I'm ordering a replacement and I'll have it in a couple days - I'll also upload all the stock files before I screw this one up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
[MENTION=5672995]jcadduono[/MENTION] why after flashing a kernel would i lose access to twrp? It will no longer let me boot into it via app or adb command. When I use quick reboot or any other app, the phone just restarts normally, and doesn't boot into TwRp. Any help would be great! I had it all working perfectly until I flashed a kernel.

---------- Post added at 08:24 AM ---------- Previous post was at 07:51 AM ----------

How can I get super su back?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jhr:
1st and foremost thank you for your personal reply.

After rereading my post for the 3rd time...I need to clarify that twrp only does its thing as factory resetting and locks you out of doing anything else. I even went as far as pushing volume up and power while it reboots when I tap on Reset. When I do that occasionally twrp will have a big closed transparent lock. Regardless if I get the lock or not. Twrp itself will reset the device and not allow me access to twrp itself after finishing the command of factory reset.

Currently out of town without my v20 for a couple of days. Won't be able to try your advise until I return. Will post my results when I do. Unless you have different suggestions from what I explained. If it makes sense to you :good:

Thank you
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
What does deODEXd actually mean?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
It contains all pieces of an apk inside the apk itsslf. This allows you to modify the contents of the apk. It also usss much less space than odexd roms, and has an evee so slight performance boost
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Ah OK, thanks for clearing that up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EMSpilot:
twrp-3.0.2-0-us996

Hmm I did a full restore today with TWRP 3.0.2-us996 and now twrp won't mount the system? Any idea's?

Root Explorer can't mount system either. Root Checker shows root.

Cheers
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
I do believe /system restore is broken. I never get the phone to boot from /system. So i just keep my /data backed up, and my ROM on my sdcard at all times.

You can try the Fix Contents button.

(just to verify, you are selecting it to mount in TWRP right? It does not auto mount)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EMSpilot:
Yes it won't let me select it after restore.

Guess I might have to start over from scratch :(

TWRP isn't much good if you can't do a restore. I mean it restored the phone but I lost access to root/system.

Cheers

---------- Post added at 04:38 PM ---------- Previous post was at 04:33 PM ----------

Tried fix Contents button. It did now work. :(

Cheers
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] diehard2013:
Folks,

How was the v20 rooted before the g5?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I've restored full backups on the H918, so our partition table shouldn't be an issue for TWRP. Unless something is different with the unlocked model.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EMSpilot:
Well it's not working properly on the US996.

Cheers
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bobbarker2:
Didn't you buy the v20 with the debug firmware? I could be wrong. But if so, could that have something to do with the failure? I wouldn't think so since the partitions probably wouldn't be different but who knows...

And what exactly failed?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] redshorty4:
US996 has access to fastboot flashing.

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash system system.img

You can erase too

fastboot erase boot/system/recovery/cache

I would have to say it's very difficult to screw up the US996 when you can flash any image to any partition even if boot/system/recovery get erased or hosed.

Your TWRP backups, assuming they backed up properly, can be flashed in fastboot. Just rename your boot and system backups to .img and fastboot flash them.

I just wish I had stock images for each partition. I hope [MENTION=5672995]jcadduono[/MENTION] is able to get assistance with it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Lmax579:
When I got to twrp I allowed modification, now I can't boot into twrp
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EMSpilot:
Dirtycow

I pushed dirty cow again and got it working. I don't understand why TWRP didn't restore it. I did a full backup of all partitions and a full restore of all partitions. This is on a US996 not the debug phone.

Cheers
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Is it recommended to flash the latest SuperSU that was released today?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] monsieurtalbot:
I'll have my new US996 in a couple days - I plan on doing just that. Actually got it cheaper than my first one.

I have one that I already screwed up and wanna return to amazon - so I'm going to do that - I just want it booting again. lol :eek:

P.s. I tried flashing recovery via fastboot and that's a no go - If you've had any success with this on this phone - i'd love some insight... (nvm)

UPDATE - I also managed to fastboot TWRP back to my bootloader unlocked US996.

SO - I'm back where I started kind of - and I have a second one on the way anyway.

I'll be sure to pull those stock backups regardless. Maybe my girlfriend is getting an awesome phone for christmas or something.

UPDATE #2 - managed to restore my backup and get back into my phone.

The US996 seems to be very flexible. I fastboot flashed my TWRP recovery - did a factory reset and it booted into TWRP. - from there I did a restore of my backup and I was good to go.

I will make a stock backup from the unmodified second one I ordered... And then i'll return one of them. All I need now is a working deodexed rom. Just the system img. I see the tmobile one is available - but the link is dead... I wonder if the US996 will boot it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
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] :
Good luck guys, please report back your results with the US996. Coming from four year of using nexus this is over my head and the drm is starting to make my regret buying this phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] monsieurtalbot:
I'm coming from a note 3 and I noticed the DRM as well - but what exactly are you not able to do?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XooLoo:
So my US996 is here. Haven't rooted it yet. Still purely stock. Not even ota update (in case there's one to begin with). If someone provides me with the instructions, I'd like to get a stock backup of whatever is needed to give me (and others in the same boat) peace of mind to root, etc just in case I screw something up later.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Umbrella Corp:
jcadduono said it would be best to contact him on the twrp irc channel, he would provide instructions.

Here is the irc channel:

https://webchat.freenode.net/?channels=twrp
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XooLoo:
OK I'm there now. Totally clueless what the heck to do there! lol Last time I was in a chat room like this was in late 90s! Do I just call him? I know I'm sounding like a total dumb a$$, but I just don't know what's what there :silly:

I'm currently getting this: "#twrp Cannot join channel (+r) - you need to be identified with services"
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Umbrella Corp:
If you registered, check your email.

If you have not, follow this guide to do so,

https://freenode.net/kb/answer/registration
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] besharpone:
"Encryption unsuccessful"

Ok, after following the instructions and I reboot the system, I get a message saying, "Encryption Unsuccessful. The password you entered is correct, but unfortunately, your data is corrupt. To resume using your phone, you need to perform a factory reset. When you set up your phone after the reset, you'll have an opportunity to restore any data that was backed up to your Google Account."

Then, when I select "Reset phone", it takes me to TWRP momentarily before the phone goes through the boot process again and I get the same message.

I obviously missed some step along the way.

I will appreciate any help.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XooLoo:
OK I'm in. Thanks for the info. So now what? Lol I just posted my question there... Do I just have hang around that place to see if someone eventually shows up?! Feels lonely in there :rolleyes: :silly:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Umbrella Corp:
It is kind of lonely right now, if you can just leave the window open and someone will eventually help.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] besharpone:
I have been able to find the proper thread, but those how have fix their problem do not explain how to get the phone in the mode where my PC can communicate with it. It is in the default charging mode, it appears.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] monsieurtalbot:
Yes. The OP's signature has his IRC channel.

He needs those partitions DD'd so we have something stock to go back to. =)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
https://build.nethunter.com/misc/us996/v10d/

have fun

thanks to [MENTION=4690529]XooLoo[/MENTION] for working with me to make these

i literally uploaded every non-user-modified partition for you guys except recovery, which ****will**** get flashed if you restore system.bin and boot.img (recovery replacement script on boot)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] monsieurtalbot:
Fantastic.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XooLoo:
Glad I could be of any help.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
How do we dump our own? For tinfoil reasons :cyclops: