[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Hello!

Before proceeding. It is absolutely

necessary

for you to be on a stable TWRP build (currently 3.0.2-1). Also, you must have already have had decrypted your ENTIRE phone. If your phone bootloops into TWRP, you probably didn't decrypt, and/or didn't flash no-verity properly, or it

could also be that you are on an old TWRP build.

--WiFi calling is fixed. (thanks [MENTION=5264701]lordodin912[/MENTION] . Turned out to be the defconfig after all. Netfilter/netlink )

--Built with the latest -old v6 Uber Toolchain cross-compiler (ubertc 7 is bugged, and latest v6 doesn't boot after compile)

--Kernel optimization flags added in for Uber (thanks [MENTION=5264701]lordodin912[/MENTION] for the info on this)

--Better 3g/4g connectivity. Which should hopefully lead to less polls to satellites, and hopefully reduce battery consumption (May need to upgrade to latest bootloader and radio).

--ConservativeX governor and a few others added in

--ConservativeX is default

--ROM tweaks to init.qcom.post_boot to do the following : ensure min CPU freq is at 307mhz for all cpus, 133mhz for GPU, modified cpu_boost and other tunables for bettery battery usage, other small tweaks.

--GPU gov set to simple_ondemand by default

--Many TCP congestion algorithms enabled, westwood+ is default, and recommended.

--Small tweak to ZEN_DECISION hotplug

More things fixed/tuned

*testing* AutoSMP hotplug added to kernel. (idk wtf it is though--likely not working)

--Force current charge. Ability to override charging rate. Might set to max rate (1500mAh) by default. This means your cable+charge combo will charge as fast as it can.

6.5 will

not

force wipe, but if you have bugs with wifi calling, texting, or rootswitch freezing, this is an indication you have to do a Factory Reset within recovery.

Wifi calling fixed, sms fixed. No bugs that I can find.

You can turn off WiFi while on a WiFi call also. It will stay connected and switch to 4g. First connection may take up to 10 seconds, but it's just the first time.

Your phone will be very slow for the initial setup. Once you finish setting up your email, and fingerprint and all that, reboot your device.

If you have factory reset, you will need to update Google Assistant, and Google Play Services. Both of those updates can be done from opening Google Assistant. She won't work until these are installed/updated. SafetyNet bypass also requires Google Play Services, so just be sure to have all updates installed from play store.

LG Music is back in. I added back in the LG update center and the weather lockscreen thing, but they doesn't show up. I'll make a separate zip that works later in the future. For now, you can download smartworld and other things from LGs website.

One more thing, once your battery goes down to 10%, your phone will slow down and be as conservative as possible. I don't believe at 10% anyone will be worried about a smooth experience, but rather that their phone can last them enough time (it will!!). The savings is even greater if you enable Battery Saver at 15%.

Here is v6.5--perfected

You don't have to wipe anything.

However, if you get one of the following bugs, you will have to factory reset in recovery:

**Rootswitch disable freezes phone

**SMS dont always send, or won't send with root disabled

**No call connection or sound when calling after disabling wifi

**Literally any other bug

Development for NSS H918 will come to a halt as of 6.5, as I need to make an update for the other carriers. Additionally, IRL will be taking over for a month or two.

========================================================

Sidebar:

Here is the 6.5 kernel. Note : this is not an update for v6.0, this is only a kernel to be used on other ROMs.

v6 info below

(old in from previous update)

v6 NSS ROM has been rebased on the latest build from LG (10j). The kernel for v6 has also been built from source from the 10j sources. If you want the stock source for 10j kernel download it frmo my thread in the dev section. The one release by LG does not work as-is. I had to go through it and fix multiple errors preventing compile.

v6 WILL wipe your phone. All your apps, settings, games, and save states will be erased! This will not wipe your SD card, nor internal storage.

v6 is heavily debloated. ROM size is a mere 1.06 GB.

There is no kernel-only zip for v6, nor will there be.

I am also not releasing a way to flash v6 without wiping. The wipe is intended to clear any corrupted caches and/or other issues.

In v6, everything you need to pass SafetyNet is already included. Just disable root with Rootswitch, and you can play Pokemon Go, use Android Pay, and any other app that uses Google SafetyNet.

This ROM and kernel have been heavily modified for speed, stability, and battery.

I have changed the default CPU governor to Bioshock.

Here are some changes for v6

v6 will wipe your data!

Based off LGs latest build (V10j). Comes with matching kernel from 10j as well.

Kernel optimizations to the cpu. CPU ramps down quicker, is more conservative (probably best if you leave CPU settings as they come).

Cancun and triton disabled. Triton removed entirely.

Core Control Helper disabled.

New governors have been added! The default governor is now Bioshock.

You have a choice from ElementalX, Despair, Darkness, Alucard, Wheatley, blu_active, uhh prob 1 or 2 others. Note that not all governors are optimized for this chipset and may cause high CPU usage. Bioshock and blu_active work great! Note that the Darkness driver is outdated. Alucard24 did update it a few days ago, but for now, I don't recommend the Darkness driver.

V6 WILL WIPE YOUR PHONE EVERY TIME YOU FLASH IT!

This new version is going to WIPE your PHONE! This means that your apps, save states for games, games, and custom settings will be deleted.

You can backup your call logs and text+mms messages. My favorite app is called SMS Backup and Restore (by Carbonite).

If you have games and/or apps that you have to backup, you can use Titanium Backup. DO NOT BACKUP SYSTEM APPS! Basically if the app is not white in the Titanium Backup list, do not back it up. If it is green, or red, do not back it up, and certainly don't restore it on the new ROM!!!

ROM is much smaller now. ZIP is only 1.06GB. Lots more stuff ripped out of it. Shouldn't download new stock updates either. Will post a full debloat list tomorrow. No features were harmed in the making of this ROM.

I personally prefer to just use Google Assistant for pretty much everything, including Weather and Weather notifications. So the LG Weather has been removed.

I have 2 rebloat zips.

The LG only zip restores LG Weather, LE QMemoPlus (quickcapture), LG Music, and LG Update center.

The full rebloat zip restores everything minus carrier spyware, and lookout. I do not recommend flashing the full rebloat zip, and if you must, be sure to open the ZIP and delete anything out of it you do not specifically want to re-add. Don't flash the whole 450MB zip just to get LG Backup or something like that.

Phone likes to sleep, sometimes it goes hours without dropping 1%... It's weird... Idk :D.

Remember, if you don't use NFC, turn it off and save a little extra battery.

Also, phone does not have OK Google....

It only has Google Assistant :cool:. She is really awesome! It does not identify as a Pixel either.

Here is the link to v6. It will wipe your phone any time that you flash it! Note that the .ZIP says (fixed). This is because it already includes the fix for WiFi calling, SMS, and hotspot. I used some of the active members as guinea pigs, sue me :)

So once you flash your phone, just wait... It will take a long time. Once it boots, it will ask for your SIM card. Just wait a minute, and it will come on.

Go through the initial setup, make sure to give Color Control and Rootswitch SU access when prompted (will be really early, if you miss it just open SuperSU app and force grant permission).

Once you finish initial setup with fingerprint and all that stuff let it download whatever Google Play apps it finds, then get to your home screen and reboot the phone to complete setup.

Note, you must manually install Google Play Services. If you hold your Home button, it will activate Google Assistant (same as before with OK Google), and it will get a Services download.

Also, be sure to open Maps, it too will ask you to do a Google Play Services download.

If SafetyNet fails, you do not have Google Play Services, or you forgot to disable root.

SafetyNet passes root check, and unlocked bootloader check.

Here is everything that was ripped out of the ROM

Here is a ZIP to restore some of the removed LG apps on v6 for the 10j build.

This only includes

LG Music app + widget

LG Weather + everything related to it

LG Qmemoplus

LG UpdateCenter

And here is the full rebloat.zip (eww)

/system/app/AndroidPay

/system/app/BookmarkProvider

/system/app/CloudPrint

/system/app/Drive

/system/app/DriveActivator

/system/app/EasterEgg

/system/app/EditorsDocs

/system/app/EditorsSheets

/system/app/EditorsSlides

/system/app/Gmail2

/system/app/GnssAirTest

/system/app/GnssLogCat

/system/app/GnssPosTest

/system/app/GnssTest

/system/app/GoogleCalendarSyncAdapter

/system/app/GooglePrintRecommendationService

/system/app/Hangouts

/system/app/LGAccount

/system/app/LGAirDrive

/system/app/LGBackupLauncher

/system/app/LGDrm

/system/app/LGFOTA

/system/app/LGMusicShare

/system/app/LGSpringCleaning

/system/app/MirrorLinkServer

/system/app/Music2

/system/app/Photos

/system/app/SignatureWallpaper

/system/app/SmartMessagingEngine

/system/app/SmartShare

/system/app/SmartShareProvider

/system/app/talkback

/system/app/Videos

/system/app/YouTube

/system/etc/permissions/com.lge.sizechangable.weather.platform.xml

/system/etc/amzn.mshop.properties

/system/priv-app/AdaptClient

/system/priv-app/CloudHub

/system/priv-app/facebook-installer

/system/priv-app/GoogleFeedback

/system/priv-app/LG360VideoWallpaper

/system/priv-app/LG360Wallpaper

/system/priv-app/LGAirDriveSetting

/system/priv-app/LGApplicationManager

/system/priv-app/LGBackup

/system/priv-app/LGEmail

/system/priv-app/LGExchange

/system/priv-app/LGGestureAnswering

/system/priv-app/LGLDB

/system/priv-app/LGMapUI

/system/priv-app/LGMusic

/system/priv-app/LGMusicController

/system/priv-app/LGMusicWidget

/system/priv-app/LGNLPService

/system/priv-app/LGPartnerBookmarksProvider

/system/priv-app/LGPCSuiteService

/system/priv-app/LGQHelp

/system/priv-app/LGQHelpService

/system/priv-app/LGSignBoardInitialGuide

/system/priv-app/LGSmartSharePush

/system/priv-app/LGSnapPage

/system/priv-app/LGTasksProvider

/system/priv-app/LGTTSPAService

/system/priv-app/LGUpdateCenter

/system/priv-app/LGVoiceCare

/system/priv-app/LGVRPlayer

/system/priv-app/LGWeatherService

/system/priv-app/LGWernickeManager

/system/priv-app/Lookout

/system/priv-app/MyPlacesEngine

/system/priv-app/MyPlacesSettings

/system/priv-app/NameID

/system/priv-app/Tag

/system/priv-app/TMO_MyAccount

/system/vendor/app/facebook-appmanager

/system/vendor/overlay/com.android.providers.partnerbookmarks

/system/vendor/overlay/com.lge.appbox.client

/system/vendor/overlay/com.lge.bnr

/system/vendor/overlay/com.lge.exchange

/system/vendor/overlay/com.lge.friendsmanager

/system/vendor/overlay/com.lge.lgmapui

/system/vendor/overlay/com.lge.lgworld

/system/vendor/overlay/com.lge.lifetracker

/system/vendor/overlay/com.lge.mlt

/system/vendor/overlay/com.lge.mtalk.sf

/system/vendor/overlay/com.lge.qhelp

/system/vendor/overlay/com.lge.qmemoplus

/system/vendor/overlay/com.lge.sizechangable.weather

/system/vendor/overlay/com.lge.sizechangable.weather.platform

/system/vendor/overlay/com.lge.sizechangable.weather.theme.optimus

/system/vendor/overlay/com.lge.smartsharepush

/system/vendor/overlay/com.lge.updatecenter

/system/vendor/overlay/com.lge.wernicke.nlp

Below is just old info from previous ROMs.

Before proceeding. It is absolutely

necessary

for you to be on a stable TWRP build (currently 3.0.2-1). Also, you must have already have had decrypted your ENTIRE phone. If your phone bootloops into TWRP, you probably didn't decrypt, and/or didn't flash no-verity properly, or it could also be that you are on an old TWRP build.

Here we have the base NRD90M ROM from LG.

I have added a few mods to it.

FEATURES

**This ROM is deODEXd

**Has init.d support

**Modified build.prop for better performance and hardware utility

**Removed bloatware (including that HORRID Lookout)

**Force encrypt disabled

**New kernel built-in.

**Based off 3.18.31 from [MENTION=5672995]jcadduono[/MENTION] source (thanks so much)!

**Added in the blu_active governor and set as default (via post_boot)

**No-op scheduler is default, and recommended

**Updated build.prop for better Hotspot support.

**More build.prop tweaks

**init.d support baked into the kernel

**Battery life should be noticeably improved, with no loss of performance (maybe even a bit faster).

**No need to wipe anything. System and caches are automatically wiped.

**Updated to SuperSU 2.78 SR4

**Updated boot and shutdown animation to the Android 7 default (thanks [MENTION=309990]freeza[/MENTION] )

**More bloat removed

** Now includes more performance tweaks.

**Full Busybox support included!

**Built-in DNS Ad-blocking

**Fixed updater-script and binary

**Removed Sony Bravia/Xperia Engine

**Zen_Decision HotPlug enabled by default. (This will improve battery life, especially when your screen is off)

**TCP Congestion controller set to Westwood+ (improved download speeds)

**KCAL Color Control! Plus the Color Control app! Thanks to [MENTION=4316709]savoca[/MENTION] for KCAL and the app! Thanks to [MENTION=309990]freeza[/MENTION] for the updated KCAL.c source file

**IO Stats for scheduler turned off

**IO Read ahead set to 2048kb

**Added init.d scripts to optimize your phone, and keep it fast over time.

**VPN is fixed!

**Gallery locked files are fixed!

**Bluetooth and FM should be fixed!

**No hotspot or ADB debug issues!

**More things I can't remember.

Kernel built on the Linaro 6.1.1 x86_x64 toolchain

Latest: v5.5

If you are already on v5.1,here is the 5.5 update. This is intended only for people already on v5.1. It will not wipe anything, and your phone will not need to do its initial setup.

Here are the changes for v5.5:

The main changes here are even more battery saving

**some voltage control preparations (still not active)

**added a DNS resolver module to maybe help some people with hotspot.

**Bluetooth and FM should work even better than before (hopefully not worse lol) **added assertive display which should help draw less power with screen on (not sure if it is actually working, but meh it's in there)

** C-states are made aware in the kernel, so sleeping should be more effective, while waking up should be more snappy.

More things. Do it!

Can confirm Pokemon GO and Android Pay work perfectly. Just need to hide root.

Use the app attached.

Checkmark where it says "Stop all su daemons"

Reboot

Open RootSwitch again, and the checkmark should still be there, click disable root, and test with an app called SafetyNet Helper Sample from Play Store. When root is disabled, SafetyNet test will pass with a full green screen.

When you are done playing, you can enable root again. The game checks every so often, so root needs to be disabled to play for X amount of time.

Here are the changes for v5.1:

The only change in v5.1 that it has my updated kernel. It had previously been giving bugs to random people in bluetooth. Also, FM radio was broken. I am happy to announce that as of 5.1, all functions are in full working order, and there should be nothing else wrong in the ROM.

Here are the changes for v5:

**ViPER4Android is preinstalled

**Kernel updates to latest sources (no changes other than updates)

**Rebased ROM to a full system dump. Major thanks to [MENTION=320479]NotATreoFan[/MENTION] ! His intuition was quite helpful. This should fix issues with WiFi calling, and other odd bugs that have been creeping about.

**Included Titanium Backup pre-installed. I highly recommend getting the license, this program rocks, and never has ads. With a license you can do batch functions, and theres more features.

**Included Kernel Adiutor to prepare future kernel updates (CPU/GPU under+over clocking later on). You can also use this to tweak I/O settings, governor, screen color). Everything should run pretty good as it is, but what I do, is set read_head in I/O to 2048, and disable I/O Stats. I also set it on boot. I do not recommend modifying any CPU or GPU frequencies since there are no changes in the kernel to allow for that.

**Fully debloated. Thanks again to NATF for pointing out the files that were installing the last bit of carrier-based bloat (amazon, facebook stub installer, etc).

**Updated to latest Super SU

**Other things here and there to try and fix bugs.

**Oh, the FM module from the original ROM was also restored. This, in conjunction with the files retrieved from NATF's full dump, should fix FM!

**If you have issues on your phone, and are trying to fix them, I recommend you do a clean install.

**However, if your phone is fine and you have had no issues, you can go ahead and just dirty flash.

No need to wipe anything. The only people who had to or need to wipe, are those on my v2.0 ROM. If you are on any version below or higher (including 2.1) you do not need to wipe anything. If you are on stock ROM, ODEXd or deODEXd, or any other NRD90M ROM, you don't need to wipe, the ZIP will take care of everything for you. /data will not be wiped, so all your old apps and settings will be there. Internal storage is of course untouched.

For anyone interested in my color options, they are:

My new settings are:

All 3 colors at 256

Saturation 64

Value 127

Contrast 129

Know that I love deep, rich, vibrant colors. Also, changing colors will not change effects on pictures taken! This is post-processing. Your phone's screen is what changes, not the files that you create.

Note: Adding saturation (vibrance) will always give some sort of color banding -especially since KCAL is post-processing. You can minimize color banding by ever-so-slightly reducing gamma (read as "Value" in the Color Control app), and by ever-so-slightly fine-tuning Contrast. The value changes would be minimal, and the color banding will only be reduced ever-so-slightly, but this is just how it is. Nonetheless, the device looks friggin amazing with the color options set.

Thanks [MENTION=3901724]zhuhang[/MENTION] for V4A!

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 inspiring me to learn to do it. Also, he supplied the stock System.img, boot.img, and sources for a custom kernel!/RealMVP

Viper4Android is included! To enable, run the app, and configure how you please!

More to come (as I learn to do it)

Please make any requests. If it is not too difficult, I will learn how to, and add it to the MODDED ROM!

REBLOAT

If you want to add in things I removed, flash this. It will include all apps that were removed. You can open the ZIP and simply delete anything inside the system folder that you don't want before you flash it.

Debloat list

Removed from /system/

system/app/CloudPrint*

system/app/Drive*

system/app/DriveActivator*

system/app/EditorsDocs*

system/app/Gmail2*

system/app/Hangouts*

system/app/Music2*

system/app/talkback*

system/app/Videos*

system/app/YouTube*

system/etc/recovery-resource.dat*

system/priv-app/LGEmail*

system/priv-app/LGTasksProvider*

system/recovery-from-boot.p*

system/app/AndroidPay*

system/priv-app/facebook-installer*

system/priv-app/GoogleFeedback*

system/app/LGAccount*

system/app/LGAirDrive*

system/priv-app/LGAirDriveSetting*

system/priv-app/LGBackup*

system/app/LGBackupLauncher*

system/priv-app/LGExchange*

system/app/LGFOTA*

system/app/LGMusicShare*

system/priv-app/LGPartnerBookmarksProvider*

system/app/LGSpringCleaning*

system/priv-app/Lookout*

system/priv-app/TMO_MyAccount*

system/priv-app/LGApplicationManager*

system/vendor/overlay/com.lge.friendsmanager*

system/vendor/app/facebook-appmanager*

system/priv-app/LGPCSuiteService*

system/priv-app/PromoHelper*

system/priv-app/LGQHelp*

system/priv-app/LGQHelpService*

system/priv-app/NameID*

system/priv-app/LGUpdateCenter*

system/vendor/overlay/com.lge.updatecenter*

system/vendor/overlay/com.android.providers.partnerbookmarks*

system/vendor/overlay/com.lge.appbox.client*

system/vendor/overlay/com.lge.exchange*

system/vendor/overlay/com.lge.updatecenter*

system/vendor/overlay/com.lge.bnr*

system/etc/amzn.mshop.properties

system/vendor/overlay/com.lge.lgworld*

system/vendor/overlay/com.lge.mlt*

system/vendor/overlay/com.lge.lifetracker*

Source for kernel is at https://github.com/Tilde88/nss

Thanks to [MENTION=5672995]jcadduono[/MENTION] for the amazing original source he made for us ( you can find it here : https://github.com/jcadduono/android_kernel_lge_msm8996/tree/android-7.0-security