[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Twisted Prime:
This kernel supports MIUI and custom ROMS based on Pie only​

Main features:

- Based on the latest Pie source from LineageOS, Kernel is compatible with custom ROMs

- Upstreamed to Linux 4.9.202

- Upstreamed to CAF LA.UM.7.3.r1-08200-sdm845.0

- Spectrum profiles

- Compiled with GCC 9.2

- Flash and forget

User features:

All these features can be used via EXKM app

- Vibration Control

- KCAL (Colour control)

- Klapse

- Sound Control

- Minimum Brightness Control

- MAC Randomization

- USB Fast Charge

- Flicker free mod (DC dimming)

CPU features:

- CPU Governors: Schedutil

- Schedutil updated with patches from newer Linux versions

- CPU idle improvements by kerneltoast

- CPU input boost

- RCU boost

- Power Saving Work Queues

GPU features:

- 770 MHz and 820 MHz overclocked GPU steps available (optional) (Use at your own risk)

- ULPS enabled for display panel

File system & memory related features:

- NTFS, exFAT, sdFAT and F2FS file systems supported

- IO Schedulers: CFQ, ZEN, Maple, NOOP, Anxiety, Deadline

- F2FS updated from Pixel 3

- RapidGC for better F2FS performance

- Dynamic F-sync

- CRC disabled for better storage performance

Network features:

- TCP algorithms: Westwood, Reno, BBR, Cubic

- Westwood set as default TCP algorithm

- Wireguard VPN Support

- TTL

Under the hood features:

- Xbox and Dualshock controllers supported with drivers updated to the latest

- Safetynet Flags Removed

- Pixel 3 Energy Model

- Audit disabled for less overhead

- Faster app openings

- Disabled Gentle Fair Sleepers for smoother UI

- 32 bit VDSO

- Unused Drivers And Logging removed for a lighter kernel

Known bugs:

- DC dimming not supported, disable it in MIUI settings

Requirements:

Magisk for recommended kernel settings to set

First Time Installation (clean flash):

1.) Download the Kernel from second post

2.) Have Stock kernel and ramdisk installed

3.) Flash Magisk (optional)

3.) Flash the kernel in recovery

Upgrading the kernel:

1.) Download the kernel from the second post

2.) Dirty flash the kernel (this means flashing the kernel without wiping anything)

Restore stock boot partition guide:

This guide will show you how to restore your ROMS stock kernel and ramdisk without losing any data. It will also uninstall Magisk which can be flashed again. Follow this guide if coming from another custom kernel or if something is not working like spectrum or the config file in twisted kernel.

Method 1:

1) Dirty flash your current ROM. This means installing the ROM without wiping anything.

2) Flash Magisk if desired.

3) You are now ready to flash a custom kernel.

Method 2:

1) Extract boot.img from your currently installed ROMs zip file.

2) Go to the install page in TWRP > Flash image > Select the boot.img you extracted and flash it to the boot partition.

3) Reflash Magisk if desired.

4) You have now restored your stock kernel and ramdisk and can now flash a custom kernel.

Hit thanks or donate to support my work

Donators:

Ricardo

Hellboy4

PM if you want your XDA profile linked on this list :)

XDA:DevDB Information

Twisted Kernel, Kernel for the Xiaomi Mi 8

Telegram https://t.me/twistedkernel

Contributors

Twisted Prime for doing all this

YTG for testing and support

milouk for build fixes and scripts

blackened mod team for scripts

bgcngm, abhishek987 for maintaining LOS kernel

Akhil Narang for the latest touchscreen drivers

nathanchance for maintaining linux stable repo

osm0sis for anykernel installer

SultanXDA for Simple LMK, CPU input boost and Devfreq boost

kdrag0n for many optimisations

tytydraco for anxiety IO scheduler and DSBoost

flar2 for vibration control and sound control

Joshuous for Dynamic stune boost

tanish2k09 for Klapse

Arter97 for RapidGC and many improvements

Raphielscape, argraur for work on Kat kernel

frap129 for Spectrum

fransiscofranco for Fsync control

Lord boeffla for Boeffla wakelock blocker

Everyone whom I cherry-picked from

Source Code: https://github.com/TwistedKernel/Twisted-845-P

Version Information

Status: Stable

Current Stable Version: V7.6

Created 2019-02-21

Last Updated 2019-11-21