[Xiaomi Mi 9 SE ROMs, Kernels, Recoveries, & Other ] pengus77:
Ehm... hello everyone :)

Our phone is quite a little powerful beast, but Xiaomi really made a crappy job on optimizing it, right?

After unlocking the bootloader I felt the need to go back to my roots and get my hands dirty to fix the wrongs in the kernel they released. The phone felt slow and heavy, the battery barely lasted a day. I use my phone for my job and I need to be snappy, stable and last way more than a day. So I started tweaking, digging and experimenting and the result is this kernel that I'm releasing today, in an attempt to make our MI9SE a bit better for all those people who actually use this phone... as a phone...

This kernel is GSI / AOSP only.

Don't flash it on Miui based roms unless you are suicidal or want to lose some features, in which case you're free to do as you please and I'm free to ignore your posts, right

? :D

There will be, from time to time, experimental/unstable versions that I release for public testing (usually they're not harmful, but... ehm.... ok you get it) so watch out for the second post if you feel brave and want to be on the bleeding edge. Official kernels are released when the beta testing phase is done and 100% of the feedback is positive.

Don't ask for ETA or you'll be fish slapped... badly! Ignore this warning only in case a nasty bug slips in the release, then you can fish slap me :D

Ok, enough talk, let's get down to business now.

Features

* Compiled in release mode (all debug stripped)

* Removed all auditing

* Disabled modules support to avoid interference from Xiaomi vendor

* Battery friendly, performance aware

* DT2W support. If disabled the display and touchscreen will power down

* 3G modem small optimizations

* K-Lapse 5.0 support (thanks to tanish2k09 for this awesome piece of code)

* Flicker Reduction via heavily modified Exposure Adjustment module from Sony

* Boeffla Wakelock Blocker pre-configured to block most of the bad boys

* BFQ and CFQ I/O Schedulers

* Adreno Idler support (your gpu will thank me)

* Westwood TCP congestion algorithm enabled by default (and a lot more enabled)

* Support for NTFS (read only)

* Support for F2FS

* And loads more... yeah just ask or check my github ;)

Q & A

Q: Battery !!! Why it's so baaaad ! My phone doesn't sleep !!!

A: Well, don't get it badly, it's not really my problem, is it ? 99.999% is an app you have installed that's preventing deep sleep... go ahead and install BetterBatteryStats, check the Partial Wakelocks and se what's killing your phone. Have fun :)

Q: App X crashes ! OMG all my data is gone !!!

A: Read again on top, not my fault, sorry. I try my best to give out a stable kernel, but "**** happens" and i can't control it...

Q: I get tons of bsods, my phone doesn't wake up from sleep, it freezes and omg... it just exploded !!!

A: No dmesg / logcat, no party. And please don't post messages like those in the thread if you're not ready to attach a log to the post.

Q: When will you enable gpu overclock, road runner speed mode or wile e. coyote immortality ?

A: Never... on a second thought... maybe... who knows ? :P

Q: When will you release the new version ? It's a week we're using the old one !!

A: Is it stable ? Then please allow me to fish slap you with a huge trout !

Downloads

All downloads for Kowalski Kernel will be linked in the second post AND in the thread when a new version is released and a changelog will be filed accordingly.

The downloads are labeled as "kowalski-XY-grus" where X can be either "r" for release or "b" for beta. Y is the version number. Eg: kowalski-r1.4-grus is a release, while kowalski-b4-grus is a beta version.

Source will be pushed to my github about 2 or 3 days after a release (or before if I'm not careful), to make sure that no major bugs are introduced in the public repository. You can find the magic code here

This kernel can be compiled with any clang 4.9.x that supports the aarch64-linux-gnu target, so if you want to compile it by yourself you'll have either to build your own toolchain, or use one of the many prebuilt ones (for example from aosp).

Please don't rip-off my work. Please don't kang this kernel. Please don't c&p from my github without proper credit. I'm a nice guy, but i will report you.

Little code of conduct for my threads is necessary: no drama, no OT. Oh and please don't message me on Telegram privately when we have this awesome platform where everyone can benefit from the Q&A.

Thanks

* Okita for the awesome job she made on the base kernel cleanup (this kernel is based on one of her first releases)

* Linus, well, for the linux kernel

* francescod for taking the risks of testing possibly harmful pre-releases

* qualcomm, because codeaurora is awesome!

* osm0sis, the one who allowed us mortals to provide flashable kernels without pain

Oh, I was almost forgetting... on a side note... i'm not really responsible if you decide to test it and your phone melts... right ?

XDA:DevDB Information

Kowalski Kernel, Kernel for the Xiaomi Mi 9 SE

Contributors

pengus77, okitavera, francescod

Source Code: https://github.com/pengus77/kowalski-grus

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: r1.9.3

Stable Release Date: 2019-09-13

Created 2019-07-25

Last Updated 2019-09-13