[Huawei Mate 9 ROMs, Kernels, Recoveries, & Other D] Wirmpolter:
Welcome to the Serenity Kernel (Firefly Edition) for the Mate 9

The Serenity kernel is designed to make the most out of the mate 9 by optimizing the balance of both battery life and performance. ​

As there aren't many choices for our devices when it comes to custom kernels or ROM's, I decided to dive into developing a kernel to not only help maximize idle battery drain (while the screen is off) but also to help extend the total SoT for our devices. The goal is to create that "flash it and forget it" type kernel for those that don't want to have to mess around with the settings. However, this kernel will also provide those who want more functionality and control. the ability to do so.

Right now, some kernel settings like I/O schedulers need to be set using a kernel manager app.

Disclaimer:

This kernel has been tested and working but this will void your warranty and any modifications you do to your device, you do at your own risk. I will not be held responsible for any damage such broken sdcards, your phone causing world war iii etc...

Features

Unified to work on STOCK Emui 8.1 and Custom 8.1 roms

Compiled with latest Linaro 4.9 Toolchain (A53 optimized)

Upstreamed to 4.4.70 Linux Kernel Version

Added OP fingerprint boost driver

Added Nebula Governor

Added Blu_active driver with kirin support (thanks [MENTION=3873953]eng.stk[/MENTION])

Cpu-boost CAF driver ported for kirin with some added improvements (thanks eng.stk)

Added zen, fiops I/O schedulers

Boeflla Wakelock Blocker

Swap and zRAM disabled

Option to turn fsync on/off

300HZ base timer frequency rasied from 250HZ

Enable advanced TCP congestion algorithms

Westwood set as default TPC algorithm

Enable missing GPU governors

GPU Scene Aware set as default GPU governor

USB fast charging ability (needs kernel manager app to enable/disable)

Tuned entropy

Various build tweaks

Compatible with Kernel Auditor, EXKM and others

More to come....

Requirements:

Unlocked bootloader

Use TWRP to flash the zip, one zip for all builds - Big thanks to [MENTION=4544860]osm0sis[/MENTION]

EMUI 8

How to Install:

Warning Ideally, you should flash this kernel on top of the stock kernel only. If you are already using a custom kernel, you must flash the stock one before flashing Serenity.

First time install

Download the Serenity Kernel ZIP below

Move or copy the ZIP file to external SD card

Boot into recovery (TWRP)

Backup your stock ramdisk and kernel

Flash via TWRP

Reboot and enjoy!

Already on Serenity Kernel

Download Serenity kernel below

Move or copy ZIP file to your external SD card

Boot into recovery (TWRP)

Flash via TWRP

Reboot and enjoy!

Downloads

New version

Download Serenity (Firefly Edition v1.4 HERE

Old versions

Download Serenity (Firefly Edition v1.3 HERE

Download Serenity (Firefly Edition v1.2 HERE

Download Serenity (Firefly Edition v1.1 HERE

Download Serenity (Firefly Edition) v1 HERE

Credits:

Of course, I would have never been able to do this on my own so want to personally take this time to thank those who have given me inspiration, helped me out and from those that I have cherry-picked from.

[MENTION=6003608]ajituchiha[/MENTION] - To all your help thus far in mentoring me to building this kernel

[MENTION=4544860]osm0sis[/MENTION] for the AnyKernel2

[MENTION=6842057]nathanchance[/MENTION] - for your Linux upstreaming help

[MENTION=3873953]eng.stk[/MENTION] - for blu_active

Phhusson

Lord Boeffla - andip71

ZaneZam

flar2

FranciscoFranco

Ak

Blackball

frap129

Meticulus

spezi77

RenderBroken

joshuous

If I forgot anyone that would like to be on the list, please let me know and I will add you. Truly sorry if I did.

XDA:DevDB Information

Serenity, Kernel for the Huawei Mate 9

Contributors

Wirmpolter, wirmpolter

Source Code: https://github.com/wirmpolter/Serenity

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: Firefly V1.4

Stable Release Date: 2018-06-10

Created 2018-05-10

Last Updated 2018-06-10