[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Dev Notice:

Anyone is welcome to pick up on this project with the source code linked below. All I ask is that you rename it to anything but "Melina" (check .zefie/scripts/buildenv.sh for the KERNEL_NAME variable).

You can say "based on Melina Kernel" or whatever, just don't call your release Melina. Also, feel free to PM me if you do release your own updates based on Melina, so I can endorse you on this thread.

Important Note: Aside from US997 releases up to and including rel_p1, all releases are experimental and community tested.

This shouldn't have to be said, but like every other custom kernel or ROM, you flash at your own risk.

You are welcome to help test, provide info, etc on other variants, but please, be sure to have proper backups before testing.

Back up at least boot and system (we place modules in /system/lib/modules).

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

Melina Kernel

Melina is targeted not only for performance but security. If it wasn't for having to leave the bootloader unlocked to use Melina, it could be used in a secure environment, as no security was disabled to enable any functionality (as is usually the case for Lineage). What this means is any security offered by LG Stock is still available, as well as additional security exploit patches that were fixed between kernels v3.18.31 and v3.18.53.

This kernel should be compatible with any appropriate version LG G6 stock-based ROM.

Unknown things may happen if you try to use this with an AOSP ROM, such as Lineage.

WARNING

Release rel_p2 and newer modify system files. The kernel has new enhancements that required updating a library and config. (And maybe more in the future)

All files are detected intelligently to only be updated once when needed. When the file is updated, the file it is overwriting is placed in the same folder, with a .bak extention.

Executables that were backed up also have their executable bit removed (chmod 644) to prevent execution. Because of this, If you flash another kernel or revert back to stock kernel, you may run

into issues if you do not restore the backup files. In the coming days (no ETA) I will make a revert script, but in the meantime, please back up your system partition before flashing Melina Kernel if you plan on using another kernel after Melina.

Current Releases: (latest stable is bold)

Oreo/Pie

rel_p2: US997 H870 H872

rel_p1: US997 H870 H872

Oreo

rel_o2: US997 H870 H872

rel_o1: US997 H870

Nougat

rel_nr2: US997 H870

rel_nr1: US997 H870

rel6: US997 H870

rel5: US997 H870

rel4: US997

rel3: US997 H870

rel2: US997

rel1: US997

Information

rel_p# are for use on LG Oreo and Pie Stock ROMs

rel_o# are for use on LG Oreo Stock ROMs

rel# and rel_nr# are for use on LG Nougat Stock ROMs

Uses osm0sis's AnyKernel system

Developer tested on US997

Changelog for rel_p2:

[fix] WiFi Mac Address may be randomized on Oreo ROMs

[fix] time_daemon may crash with Invalid Opcode (includes updated vDSO compatible time_daemon)

Changelog for rel_p1:

Updated to H871 V30A code

Updated to AnyKernel3 to retain Magisk

F2FS support removed (was mostly unused)

Extremely optimized

Extended CPU optimizations

Excessive debugging removed

Previous Melina optimizations

Many more optimizations and backports from Lineage kernels

compiled with clang compiler (new Android defacto compiler for kernels)

Changelog for rel_o#:

Hopefully improve performance (rel_o2)

Disables LG's anti-custom-recovery script (rel_o2)

Disables forceencrypt (rel_o1)

Fixes in rel_nr2:

exFAT default type may not have been as desired (utf8) due to syntax error in config

Fixes in rel_nr1 vs rel6:

Slow SDCard performance

AOD not working at all (Fulmics) or using high powered-screen (stock)

MTP should be more stable

Sound effect did not play when connecting USB

Features:

Remove forceencrypt (rel_o1)

Added maple iosched, enabled tcp westwood congestion sched (rel_nr2)

New kernel defaults: iosched (now: maple, was: cfq), tcp (now: westwood, was: bic) (Note: These default values may be overridden by the ROM. Be sure to use something like kernel adiutor to verify and set the values as desired.) (rel_nr2)

Removes /sbin/rctd and related service entry in init.lge.rc if detected (rel_nr1 or newer binary)

CVE-2017-0705 and CVE-2017-0706 Broadcom Wifi Security Updates (rel6 or newer binary)

Flash Friendly FS (F2FS) Support (rel4 or newer binary)

Higher performance with lower battery usage (due to dtb and power updates from US997Uv15) (rel2 or newer binary)

Binary releases built with ubertc aarch64-linux-android-6.x

DriveDroid CD-ROM Emulation Support

Open source compatible replacement for Tuxera exFAT driver

zzmove and elementalx governors

Various other improvements

Current Status:

[rel_p1] FM Radio may not play over the speaker on Oreo ROMs

[rel_o1, rel_r2, and rel_p1] DriveDroid does not work (at all)

Developer Info

All Downloads Recent Commits

Sources: Original rel_nr series rel_o series rel_p series

Credits:

osm0sis for AnyKernel2, CrazyGamerGR for CrazyAquaKernel, [MENTION=6382322]nexusownerforlife[/MENTION] for testing on Fulmics, [MENTION=4580019]Killua96[/MENTION] for testing H870 builds

If my releases help you, please leave a thanks. If you are able, please consider a tip (check the small link in my sig).