[LG V40 ROMs, Kernels, Recoveries, & Other Developm] EmanuelCN:
DISCLAIMER: I AM NOT RESPONSIBLE IF YOUR PHONE BRICKS! YOU ARE FLASHING THIS KERNEL AND ITS YOUR CHOICE TO DO IT OR NOT TO DO IT AND YOU'RE THE ONE DOING IT. I JUST WANT TO HELP OTHERS OUT.

REQUIREMENTS: UNLOCKED BOOTLOADER AND ROOT.

IMPORTANT: THIS KERNEL IS MEANT TO WORK ONLY ON STOCK ROM, IT WONT WORK ON CUSTOM ROMS, CUSTOM ROMS ALREADY PROVIDE WITH THE ROM CUSTOM KERNEL AS ALMOST ALL CUSTOM ROMS ALREADY USE MY KERNEL, THIS IS A MODIFIED VERSION OF THE CUSTOM ROM KERNEL AVAILABLE IN DOTOS BUT FOR STOCK ROM. IT CAN WORK ON ANY LG G7 THINQ MODEL.

How to flash:

1. Download Smartpack Kernel Manager (free) from playstore or any other kernel manager that supports flashing zips such as Franco kernel manager, Ex kernel manager etc;

2. Go to Flash section in the kernel manager, in smartpack press on the 3 lines in the top left corner, scroll down and tap on SmartPack;

3. Press on the button that looks like a lightning, select the zip and wait for it to flash;

4. Reboot;

5. Enjoy.

Features:

- Compiled with Proton Clang 13.0;

- Upstreamed ZRAM compression and decompression algorithms, now ZRAM should be almost as fast as RAM;

- Sultan's Custom Input Boost;

- Sultan's Devfreq Boost;

- F2FS support.

- Rapid GC for F2FS thanks to Arter97;

- Modified CpuSets;

- Quad dac driver backported from LG V50 ThinQ;

- Simple lmk from sultan;

- 4.9.235.

- LA.UM.8.3.r1-08100-sdm845.0 CAF Tag, Why 8100 only and not newer ? Because it performs the best, i've tested even Android 11 tags, it performs worse, this tag is more efficient for battery life while maintaining same performance if not better;

- RCU backported from 4.14 kernel;

- Binder backported from 5.4 kernel;

- Srandom driver by josenk;

- Cpu idle, lmp levels and pm qos improvements, should reduce idle drain.

- Sultan's Pid Map improvements. (Helps a lot in gaming performance, especially in genshin impact);

- A lot of KGSL improvements thanks to Sultan. (KGSL - GPU driver in the kernel);

- Cache improvements;

- Scheduler Improvements;

- CONFIG_HZ = 250;

- 128kb Readahead. Why ? Because thats the default value in linux and pixels as well;

- Updated Energy Model from freqbench result , this will lead to less power consumption;

- Removed inefficient frequencies;

- Added efficient frequencies in schedutil;

- Improvements in schedutil;

- Added support for steam & nintendo swich controllers;

- Many other improvements.

Download Link: Google Drive

Kernel Source: https://github.com/EmanuelCN/android_kernel_lge_sdm845/tree/stock

Useful Guides:

How to unlock bootloader

How to root:

Firstly you have to unlock bootloader.

1. Install magisk manager

2. Boot into 9008 mode

3. Backup your boot_a image using Qfil (Read data)

4. Copy it to your phone

5. Rename it to boot_a.img

6. Go in magisk manager —-> install —-> Select and patch an image —-> select the image.

7. Copy the patched boot image file to your PC (its located in downloads folder in your phone)

8. Flash it with fastboot/qfil ( fastboot flash boot_a < drag and drop over the cmd the image > // select boot_a and load image in qfil)

NOTE: IF IT TELLS YOU THAT YOU ARE NOT ROOTED THEN DO THE SAME PROCESS BUT WITH BOOT_B.

Special Thanks:

- SGCMarkus;

- J0sh1x;

- Thenotonly;

- LlamaMonster;

- ErickG233;

- Sultan (kernel toast);

- Arter97;

- Many other great developers.