[LG V20 Guides, News, & Discussion] Tilde88:
Hello! Here is a flashable ROM for the LG v20! This is STOCK, rooted, and deODEXd

(This ROM here is Stock ODEXd, and rooted for those who want that instead.)

This ROM can be used to restore your phone in the event of bootloops, crashing, accidentally wiping /system, broke your kernel, deleted a system app, or whatever... We finally have a way to fix our phone OS! So I hope this turns on the spark on you modders out there.

This zip will NOT wipe your data. It will wipe /system. It is not necessary (currently) to wipe /data for this, since we are all on the same exact base.

This ROM comes pre-rooted, comes with the insecure kernel (no mods done to kernel, just disabled the security bit). The kernel comes with no-verity, and no force encrypt. So if your /data was not already encrypted, you can flash without worry of encryption. If you do not wipe /data, it is highly recommended to at least wipe /cache and Dalvik cache.

Major thanks to [MENTION=1299419]JesusFreke[/MENTION] for smali+baksmali, also for debugging it to work with Nougat

Major thanks to [MENTION=5787964]SuperR.[/MENTION] for the kitchen :))

Major thanks to [MENTION=631273]Chainfire[/MENTION] for creating SuperSU

Major thanks to [MENTION=5672995]jcadduono[/MENTION] for the root exploit, AND for the TWRP image(s), AND for mentioning someone should do it. Also, he supplied the stock System.img. /RealMVP

Also, a HUGE thanks to [MENTION=4819732]nyfl2004[/MENTION]. He very kindly fixed my updater-script, and repacked the ROM.

Below, you will find a download link, and instructions which contain ONLY the system.img. This IMG is flashable in TWRP. It is 100% stock, and it will simply convert (overwrite) your existing /system partition to a deODEXd partition.

Open WinRAR and check that the following items are 100% to this

Extract the RAR archive, and then right click the system_new.img --> Properties. Ensure that the SIZE field is identical to the SIZE from the .RAR file in the picture here, and in your file as well. Copy the file to your phone.

Please make sure you are on TWRP RC8 as provided by [MENTION=5672995]jcadduono[/MENTION]

do "adb reboot recovery" and Install > Install image > then find the .img file and flash. There is NO need to format data OR system. Simply flash and reboot. Might need to reboot again if you get stuck on the TMobile splash screen at first. ROM is already deodexed and ZipAligned. Also, the default Debloat (as provided by the kitchen) has been applied. :)

Basically flash this IMG over your current ROM to deODEX it. ↓

https://mega.nz/#!WANykaDb!mcx6Wm5NeNOw4aTeHyn5jcr2IQsywuHWSHegnZTqjZY ←LINK

IF YOU CAN BOOT TO TWRP, YOU CAN FIX YOUR PHONE! Instructions below

These instructions are only for people who are getting bootloops and have no way of using their phone. If you can get to TWRP, you can get your phone back up and running.

Almost always it's a corrupt /system, or perhaps you were/are encrypted.

Verify which version of TWRP you are on? If not on RC8, please flash that version.

Before starting, in TWRP, go to Settings --> and ensure that the box for "Use rm-rf...." is UNCHECKED

For the encryption, the only way to get around that is to Format Data. This will erase all your apps, and files (pictures etc). To do this (it will wipe all your things, and this is only to decrypt your data, so if you don't need to do this, don't) , go to TWRP --> Wipe --> Format Data --> follow on-screen instructions to erase your data.

Then do Wipe --> and swipe to do the Factory Reset. Now, go back to Wipe --> Advanced Wipe. Checkmark Dalvik, System, Data, Internal Storage, and Cache, and wipe those items (swipe to wipe).

Now, in TWRP, go to Mount, and make sure that System, Data, and Cache are all CHECKED. "Mount system as read-only" is UNCHECKED. Press the Back button. Go back into Mount and ensure System is still checked, and go back to the TWRP main menu again.

Now go to Advanced --> File Manager. Ensure that the system folder is empty. Press the back button. Inside of Advanced, click Fix Contents, and swipe.

Go back to the Wipe --> Advanced Wipe, and redo the format of all the aforementioned directories.

Flash the Stock ROM (deODEXd would be better IMO, but whichever). Just to be safe, also flash the no-verity.zip from the recowvery thread.

Then again, in TWRP, go to Mount, and make sure that System, Data, and Cache are all CHECKED. "Mount system as read-only" is UNCHECKED. Press the Back button. Go back into Mount and ensure System is still checked, and go back to the TWRP main menu again.

Now go to Advanced --> File Manager. Ensure that the system folder is NOT empty.

Back out and hit Reboot --> Boot to system.

A lot of these operations are redundant, but if you can still access TWRP, you should be able to fix the issue. The only way that you will have problems, is if you did a DD command and wrote something to a wrong path.

Others that can no longer access TWRP do have a still unfixable problem... But you should be good to go.

After doing all the steps, you should be able to boot.

It will first take you to the LG logo for a few seconds, and then it will reboot itself. You will see the BOOTLOADER NOT SECURE thing, and then the LG logo again. After a few seconds the TMO splashscreen will appear and do its chime sound. Give it a good 10 minutes, at which point it should take you to the Android OS page where you will have a progress bar. Once that progress bar finishes, your phone will be live. Please let me know what happens.

Debloat (Removed). Nothing yet