[KERNEL][Affinity Kernel][OP5/5T][OOS/Custom][4.4.178][6 Apr]

Drop EAS?

  • Yes

    Votes: 6 35.3%
  • No

    Votes: 11 64.7%

  • Total voters
    17
  • Poll closed .
Status
Not open for further replies.
Search This thread

khaos227

Senior Member
Feb 23, 2016
136
645
Tanvald
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.


Code:
/*
 * 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:
  1. Reboot into TWRP
  2. Flash the Affinity Kernel.zip
  3. Reboot

If you are coming from another custom kernel:
  1. Reboot into TWRP
  2. Dirty flash your rom or restore boot backup if you have any
  3. Reboot recovery
  4. Flash the Affinity Kernel.zip
  5. 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 5

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

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

Version Information
Status: Stable
Current Stable Version: r24
Stable Release Date: 2018-09-27

Created 2018-09-27
Last Updated 2019-04-06
 
Last edited by a moderator:

khaos227

Senior Member
Feb 23, 2016
136
645
Tanvald
Affinity Kernel r2 is up! :)

This build includes just some small changes, mainly new IO schedulers and governors

Here's the changelog:
  • Enabled all TCP congestion algorithms (westwood is still default)
  • Enabled full support for Xbox gamepad
  • Added new IO schedulers:
  • SIO
  • ZEN
  • FIOPS
  • Added new governor - blu_active
  • Set Maple IO scheduler as default
  • Use the same input_boost values as Pixel 2

You can get it HERE
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    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.


    Code:
    /*
     * 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:
    1. Reboot into TWRP
    2. Flash the Affinity Kernel.zip
    3. Reboot

    If you are coming from another custom kernel:
    1. Reboot into TWRP
    2. Dirty flash your rom or restore boot backup if you have any
    3. Reboot recovery
    4. Flash the Affinity Kernel.zip
    5. 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 5

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

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

    Version Information
    Status: Stable
    Current Stable Version: r24
    Stable Release Date: 2018-09-27

    Created 2018-09-27
    Last Updated 2019-04-06
    24
    Affinity Kernel r23 is up! :)

    Here's the changelog:
    • Upstreamed to Linux 4.4.177
    • Merged changes from OOS kernel beta branch
    • Fixed PS4 Controller support
    • RCU upstreams
    • Reverted LMK to the msm common kernel state
    • Minor Klapse fix
    • Fixed HBM on OmniROM
    • Deoneplusified devfreq driver
    • More arm64 related optimizations
    • Other stuff
    23
    Affinity Kernel r22 is up! :)

    This build brings compatibility for OmniROM and TreskMod, I've spent hours flashing different ROMs to ensure everything is working as it should be.
    Tested on LineageOS, OmniROM, PixelExperience, DirtyUnicorns, Bootleggers and OOS.
    Some commits that were considered as a bloat were removed or reverted. In favor of custom ROMs I had to remove Boeffla LED control (I doubt any of you used this feature)

    Here's the changelog:
    • Compiled out temperature polling
    • Support for Omni based ROMs
    • Other touchups for init script
    • Fixed WiFi stability issues on custom ROMs
    • Fixed slow loading of the Settings app while WiFi is active
    • Added KLAPSE Driver (Think of it like LiveDisplay for any ROM implemented directly to the kernel)
    • Some sched improvements
    • Decreased swappiness down to 10
    • CPU boost improvements for better battery life
    22
    Affinity Kernel r20 is up! :)

    This is an EAS build, do not expect HMP anymore because it just doesn't make sense to me to maintain those two branches since they both
    have the same feature set except EAS specific stuff and they both deliver pretty much the same battery life.

    Here's the changelog:
    • Upstreamed to Linux 4.4.175
    • EAS-ed the kernel
    • Got rid of Pixel2WiFi mod as suggested by @Pho3nX
    • Added oFast optimalization
    • Slimbus clock bump
    • Removed PM QOS changes made by OnePlus
    • Disabled some debugging stuff
    • Power Efficient Workqueues enabled for some key modules
    • Disabled auditing (it's broken and unstable in Linux stable kernel)
    • Decreased ZRAM swappiness so the system has to rely more on physical RAM which OP5/5T has plenty of
    • Crypto improvements
    • Re-implemented Dynamic SchedTune Boost v3
    22
    Affinity Kernel r13 is up! :)

    Happy New Year 2019! Another update is here!

    Here's the changelog:
    • Upstreamed ZRAM
    • Compress ZRAM with ZSTD by default
    • tcp_westwood improvements
    • Auto toggle OTG based on charging status (Dash or regular)
    • Merged latest OnePlus changes from OOS stable and open beta kernel
    • Adjusted CPU boost values
    • Nuked some OP's changes to QoS drivers
    • Improved load computing
    • Upstreamed LZ4 compression module
    • Merged latest changes for AnyKernel2 and cleaned up the whole thing
    • Another FS improvements
    • Adjusted CPU boost values

New posts