[OnePlus 5T  ROMs, Kernels, Recoveries, & Other Dev] khaos227:
Introduction:

Affinity Kernel is a custom kernel based on the latest Stable Linux 4.4 release from kernel.org.

This kernel is developed with performance and great battery life in mind offering some goodies cherry-picked from other popular kernels such as Flash Kernel, ElementalX, blu_spark, Boeffla Kernel, Sultan Kernel and Franco Kernel.

The kernel is always up to date with mainline linux kernel and is regulary updated with the latest fixes.

The goal is to provide a butter smooth experience, simmilar to what you get with the latest Pixel devices.

Affinity Kernel is based on the official kernel source released by OnePlus.

/*
* Your warranty is not void (Thank you OnePlus!).
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Features:

Upstreamed to the latest Linux Stable 4.4.x

Upstreamed to the latest CAF tag LA.UM.6.4.r1-11500-8x98.0 & LA.UM.7.4.r1-04800-8x98.0

Tunable with Kernel Adiutor and others

Additional CPU gorvernors

Sound Control

Adreno Idler by @arter97

Full WireGuard implementation

Sweep2Sleep gesture

Fast charging on USB

FS fsync toggle (enabled by default)

Additional IO schedulers (Maple, FIOPS, SIO, ZEN)

Qualcomm MDSS v2 (sRGB + KCAL)

dm(avb)-verity disabled

Faster app cold-launch

IO Tuning

Optimized with oFast and O3

Westwood TCP algorithm as default

Full Treble compatibility with Treble related fixes

Individual Input Boost frequency for each cluster

Disabled the BCL battery driver

Backlight Dimmer by @flar2

Boeffla Wakelock blocker v1.1.0

CDROM emulation

init.d support

ARM target optimizations

Passes SafetyNet check

Crypto Routines optimizations

High Brightness mode

Adreno driver improvements

EAS

Dynamic SchedTune Boost v3

KLAPSE Driver

Decreased swappiness

Installation:

Before you install the kernel, make sure you have

a backup of boot partition in case something goes wrong!

If you are coming from stock kernel:

Reboot into TWRP

Flash the Affinity Kernel.zip

Reboot

If you are coming from another custom kernel:

Reboot into TWRP

Dirty flash your rom or restore boot backup if you have any

Reboot recovery

Flash the Affinity Kernel.zip

Reboot

Updating:

Just flash the latest Affinity Kernel build over the previous one :)

Downloads:

{Mod edit}

On ROMs like Dirty Unicorns, WLAN won't work because the wlan module is required

to load on device initcall rather than late initcall like other ROMs do. There's a workaround for it but

it breaks WLAN on all ROMs that have the module built inline or the CAF way

{Mod edit}

Thanks to:

@joshuous for his EAS commits and Dynamic Sched Boost

@osm0sis for his AnyKernel2 installer

@nathanchance for his android-linux-stable project and helping me

@Lord Boeffla for Boeffla Wakelock Blocker and LED control

@Sultanxda for his fixes and other stuff

@eng.stk for his tweaks

@flar2 for his Sweep2Sleep gesture driver

@tanish2k09 for KLAPSE Driver

And all those folks contributing to Linux Kernel :)

XDA:DevDB Information

Affinity Kernel, Kernel for the OnePlus 5T

Contributors

LinuxUser0227

Source Code: https://github.com/hejsekvojtech/Affinity-OnePlus5

Kernel Special Features: Fast, Battery friendly, Stable, Up to date

Version Information

Status: Stable

Created 2019-02-20

Last Updated 2020-04-28