[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] xNombre:
Introduction

Compatibility

It is LOS forked repo so any LOS-based ROM should be compatible (not MIUI compatible).

Do not use it with any custom ROM or additional modifications as I'm not supporting them (and will not).

Of course, you can try flashing, if it works - enjoy.

Downloads

You can use 'Download' tab in the top or download from AFH . :D

Installation:

- download kernel zip and necessarily check MD5!

- boot into recovery

- flash the zip (always flash on clean ROM!!)

- (optionally you can wipe cache/dalvik)

- reboot to the system and taste the madnesss

Soda-Upstream - stock kernel upstreamed with official repos as much as it is possible.

Features of Soda-Upstream:

- Almost fully updated to v3.18.87

- Compiled with fresh Google's prebuild GCC 4.9

- A lot of official fixes and optimizations

- Updated crypto parts

- Updated lib parts (lots of performance improvements)

- Updated cpuidle

- Updated devfreq

- Updated Android drivers

- Updated pseudo file systems & JBD2

- Updated fs (up to 10% faster I/o)

- Updated arm64 deps

- Updated parts in net

- Miscellaneous scrpits update

- Stock frequency on 32gb model

- Own fix for mitigation task not initialized (testing)

- Other minor updates

Soda Kernel - upstreamed kernel compiled with fresh GCC, arch dependent flags, awesome tweaks and without any useless crap!

Features of Soda:

- All from Soda-Upstream

- Compiled with UBER TC 5.x (can't go higher due to s***ty drivers)

- Added arch optimization flags

- Changes in config

- Enabled by default net governor Westwood

- New IO scheds: ZEN, FIFO, FIOPS, Maple

- New CPU govs: ElementalX, ZZmove, Blu_Active

- Adreno Idler

- Adreno boost

- Disabled CRC

- Mi5 Lite has standard CPU frequency

- Added Frandom

- Backlight Dimmer

- Kcal v2

- Compiled with -O2

- Passing SafetyNet: GREEN

- Optimized functions

- Charge Control

- Boeffla Wakelock Blocker with predefined stuff

- Disabled FG wakelocks: update_sram, update_temp, memaccess, soc_work

- Default noatime mount flag

- Sound Control

- FingerPrint boost (it's not taking a lot of battery, but makes a difference at screen wakeup)

- Higher Slimbus frequencies to provide better sound quality (and truly it's working)

- Gentle Fair Sleepers, Arch Capacity interface

- Dynamic Sync Control 2.0

- USB OTG

- Alucard Hotplug

- IntelliThermal

- PowerSuspend

- Updated CPU boost

- Memory Compaction mechanism

Before you exit:

Don't get dishearten because of 'poor' features list. Main advantage of this kernel is upstream of many parts. Changes in Soda are chosen wisely, I implement thinks that are supposed to benefit. You don't need XYZ, you need Soda :)

Known issues:

Upstream:

None :)

Soda:

- Battery idle drain (investigation in progress)

- Speaker gain is broken

FAQ:

Could you add XYZ feature?

I will not add features I personally think are useless or unneeded. I can only promise I'll take it into consideration. If you're so single-minded about that just fork repo and pull request - I'll pick it gladly.

Could you upstream XYZ?

Ok, upstreaming is nice unless you fall into conflicts or totally new code structure. Don't expect me to update the kernel up to 4.13, haha! I'll keep in mind what you're asking me for, but if you're so desperate about this I'm waiting for pull request :).

Why should I choose yours upstreamed version?

Don't expect it to change your Mi 5 into S7 edge =)

Think about like that - some time ago Google forked Linux kernel at version 3.18.31 and added their changes, then Qualcomm forked it and added their changes, then Xiaomi forked and added their changes. There are a lot of bugs, memory leaks and other bad stuff in here and probably nobody will take care about it... Oooch, except me! My aim is to keep the code as most up-to-date as possible - so without rewriting a half of proprietary drivers.

Does it make any sense?

In my opinion - yes.

Our phone will be more stable, not vulnerable to newest 0-days and hopefully a bit faster and battery friendlier. The key is bug-free optimized code; magical tweaks do not always take the first place in making a kernel better. As of my experience using upstreamed version gives more battery and smoothness!

"My phone freezees help meeee!!!!!!!11oneoneone..."

Description, logcat, kmesg or GTFO.

Could your changes damage my device?

I don't take any responsibility for broken devices, firing from work or nuclear wars. It's a hobby project maintained in my free time. I carefully pick up changes not to mess up anything and add features that are checked and provided to work correctly. There is a small range of cases when you can loose your phone completely, typically it will just freeze and reboot.

Where is version for MIUI and EAS?

MIUI won't be supported because Xiaomi haven't updated their repo for a long time. Building for MIUI would bring more problems than advantages.

EAS is in testing stage and will be released soon.

Remember to hit like button if you like my work as it motivates me a lot!

Play with it and post your experience please :cool:

Firmware:

Now I'm also providing updated firmware flashables.

You can easily download firmware packages from AFH .

Happy flashing! :)

Telegram:

I created Telegram Group where we talk about everything concerned with Android and kernels. Everyone is welcome!

--- Invite Link ---

Nightlies:

If you want to taste unreleased versions of Soda make sure to join my --- Telegram Channel --- where I post release candidates.

Donation:

I have spent lots of hours on debugging and feature adding. I'm developing this project in my free time but I put my heart and soul into it. I'll be glad to see you appreciate my work!

Buy me a coffee :)

Thanks to:

All LineageOS team [MENTION=947981]Lord Boeffla[/MENTION] (aka andip71) [MENTION=3279788]ZaneZam[/MENTION] [MENTION=455439]bgcngm[/MENTION] [MENTION=5051294]frap129[/MENTION] #engstk [MENTION=4898097]arter97[/MENTION] [MENTION=5996255]jollaman999[/MENTION] @franciscofranco @TheCrazyLex

Special thanks to:

@mlira1 [MENTION=3868866]SkiesOfAzel[/MENTION]

XDA:DevDB Information

The Soda Kernel, Kernel for the Xiaomi Mi 5

Contributors

xNombre

Source Code: https://github.com/xNombre/android_kernel_xiaomi_msm8996

Kernel Special Features:

Version Information

Status: Stable

Created 2017-08-20

Last Updated 2017-12-15