[KERNEL][EAS][O2][UBER] Chihayafuru Kernel v0.90 Honor 8 for Android 8.0+ - Honor 8 ROMs, Kernels, Recoveries, & Other Develop

Chihayafuru might feel like an awkward name for a kernel, but the meaning is pure and beautiful. Inspired from an Anime series, the name means "do towards good direction powerfully" like a "thousand swift swords". That's exactly what this kernel is.
This kernel has been made with love by cherry-picking commits from most of the work already done by other developers and introducing other slight changes which ensure your device gets the love it deserves. From performance to battery saving options, you're in full control of your device and the plethora of configurations available allow you to tweak it to your needs.
Presenting CF Kernel (ver 0.90) for Huawei Honor 8​
Compatibility Notes:
This kernel is tested to work with stock EMUI 8, Treble 8.x and 9.x ROMs. Compatibility with other ROMs is not guaranteed, However, this doesn't mean I won't support them. If you face a bug or issue, please report it here and I'll happily take a look at it.
GPL Notice:
This kernel conforms to GPL license requirements. Thus all the source code is freely available here without any charge: https://github.com/hackslashX/android_kernel_hisi_hi3650
Recommended Apps:
To tweak most of the settings in the kernel, I recommend using EX Kernel Manager: https://forum.xda-developers.com/general/paid-software/app-ex-kernel-manager-t3560850, Kernel Adituor: https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor&hl=en and FK Kernel Manager: https://play.google.com/store/apps/details?id=com.franco.kernel&hl=en
Early Release Notice:
The kernel is still young and not yet mature. However, with time and your support, we can help make this project rock solid stable for Honor 8. Even though my initial testing has proved good, things might break on your end. Don't fret when that happens, take some logs and send it to me so that I can take a look at them and attempt for a fix.
Features:
Compiled with UberTC 4.9 toolchain with Cortex A53 and O2 optimizations
Upstreamed to v4.4.198
Added blu_active and enabled sched CPU governors (sched, blu_schedutil)
Enabled Scene Aware, Performance, and Powersave GPU governors
Enabled HiSilicon GPUFreq Hotplug and Frequency Hopping feature
Disabled useless drivers and features
Say no to Huawei D.U.B.A.I analytics and root scan feature
Disabled Huawei OASES and Livepatching feature
Disabled Swap and zRAM for much smoother operations
Mali GPU tweaks for improved performance
Added zen, FIOPS IO Schedulers
Added westwood and other advanced TCP algorithms
Fingerprint boost driver for quick recognition
Added CPU boost driver to reduce input lag
Reduced allowed wakelocks and better timer frequency
Boeffla Wakelock Blocker to kill unecessary wakelocks that interrupt your device sleep
Dynamic Sched Tune CPU support
Fast USB Charging support
Option to toggle FSync
Option to toggle SELinux to Permissive or Enforcing
Wireguard VPN support
Improvements to the sound module and vibration driver
... and more which I didn't note down or forgot xD
Installation:
Installing the kernel is pretty easy. Reboot your device to fastboot and execute the following command:
Code:
fastboot flash kernel <kernel-name.img>
Downloads:
Please check the Downloads tab for all downloads (till versions v0.45).
For v0.60 and later, please download from Google Drive: https://drive.google.com/open?id=1fHd7Y9XulrhzHou4013o3K_Ew3AZx2nq
XDA:DevDB Information
Chihayafuru Kernel v0.90 Honor 8 for Android 8.0+, Kernel for the Honor 8
Contributors
hackslash
Source Code: https://github.com/hackslashX/android_kernel_hisi_hi3650
Kernel Special Features:
Version Information
Status: Stable
Created 2018-09-08
Last Updated 2019-11-05

Thank you for your work
And i hope someone running android pie gsi can test this and see if it fix the overheating problem

Thanks a lot <3

Trying it .. will let you know, if I hit any issues

Does it affect the root after flashing this kernel?

$lim $hady said:
Does it affect the root after flashing this kernel?
Click to expand...
Click to collapse
No root is not affected after flashing this kernel.
The kernel image only modifies the 'kernel' partition and leaves the 'ramdisk' one as it is.

hackslash said:
No root is not affected after flashing this kernel.
The kernel image only modifies the 'kernel' partition and leaves the 'ramdisk' one as it is.
Click to expand...
Click to collapse
Thanks will flash it now..

Thank you bro' i flashed on my FRD-L09 Oreo ( stock + root ) and it's work

enzospain said:
Thank you bro' i flashed on my FRD-L09 Oreo ( stock + root ) and it's work
Click to expand...
Click to collapse
Good to know

delete

PremiumBlaze said:
Thank you hack slash for your support for having the honor 8 finally have a custom kernel, it works very well for me
I Flash the custom kernel using twrp for my honor 8, it went very well,
Performance is nice, I notice some speed improvements in games and also battery Improvment.
Im waiting for Undervolt now and the battery would be awesome!!!
Click to expand...
Click to collapse
Thanks for your review.
For gaming you can also set GPU governor to Performance for a more better experience.
I've noted down your request. I'll do my best to deliver.

I never flashed custom kernel before. Is there any chance of permanent brick? If something goes wrong, can't I just flash stock kernel and get it working again?
Also, do I need to wipe data after flashing kernel to see the changes?

SirDarknight said:
I never flashed custom kernel before. Is there any chance of permanent brick? If something goes wrong, can't I just flash stock kernel and get it working again?
Also, do I need to wipe data after flashing kernel to see the changes?
Click to expand...
Click to collapse
There's no chance of permanent brick. Restoring is as easy as flashing the stock kernel via fastboot.
You don't need to perform a data wipe. However, you should allow the kernel to 'settle' i.e. use it for 2-3 charge/discharge cycles to see the effect.

@hackslash .. Installed it yesterday, seems to be working fine.. Jus wanted to check, I m running LoS B5, any specific recommendations on the Governor setting for battery?

I'm using openkirin RR b2. Recent Openkirin on H8 seems to have the problem to barely go into deepsleep or not anymore at all after a while. So I suffer from a quick battery drain. The support channel suggested to try out a custom kernel. I wonder if you know that this kernel will solved the problem?
How about future openkirin or kernel updates? Will I have to go back to stock first or can I just flash new openkirin while still being on this kernel?

Thanks for your hard work! I recently flashed it and it works like a charm!
UPDATE 1: I redownloaded the EMUI 8 package and now it contains everything, including the stock kernel.
UPDATE 2: Short-term experiences: The fingerprint scanner's performance is drastically improved and now it is just as fast and accurate as on EMUI, the camera performance is now closer to EMUI, but there's a little room for improvement, the fast charging is faster than on EMUI, the phone doesn't want to overheat anymore on my custom ROM and overall the phone is now a little bit faster. I'm testing it with the Kirin-GSI AOSP Android 9.0 Pie ROM, not with an OpenKirin ROM, but it is really stable just like on EMUI and OpenKirin ROMs. And I have a suggestion for bugfixes for Honor 8s (eights) running this AOSP Android Pie ROM: Please fix the broken hotspot function in kernel level on Honor 8s (eights) running this custom firmware, implement the EMUI camera app into the kernel and make the camera performance identical to EMUI's. The Kirin-GSI project is now abandoned because the dev bought a new phone which is not a Huawei phone, so he wouldn't fix the problems anymore. It's really annoying that I can't share my unlimited cellular data to friends or to my PS4 when I'm on vacation.

Damn. Now my touchscreen is no longer working. :crying:

Sujanth said:
Damn. Now my touchscreen is no longer working. :crying:
Click to expand...
Click to collapse
Have you managed to back up or download the stock kernel image? You can flash it back.
---------- Post added at 05:56 PM ---------- Previous post was at 05:55 PM ----------
Sujanth said:
Damn. Now my touchscreen is no longer working. :crying:
Click to expand...
Click to collapse
Have you used fastboot or TWRP? If you used TWRP, you need to flash back the stock recovery and the stock kernel, then you can try again flashing CF via fastboot. Flashing with fastboot makes different results than flashing with TWRP.

Sujanth said:
Damn. Now my touchscreen is no longer working. :crying:
Click to expand...
Click to collapse
Noted. I know what's causing the issue. I disabled several touchscreen drivers since not all of them are needed for Honor 8. Flash stock kernel for your device and please send me the file:
Code:
/sys/devices/platform/huawei_touch/uevent

ThePS4Gamer said:
Thanks for your hard work! I recently flashed it and it works like a charm!
UPDATE 1: I redownloaded the EMUI 8 package and now it contains everything, including the stock kernel.
UPDATE 2: Short-term experiences: The fingerprint scanner's performance is drastically improved and now it is just as fast and accurate as on EMUI, the camera performance is now closer to EMUI, but there's a little room for improvement, the fast charging is faster than on EMUI, the phone doesn't want to overheat anymore on my custom ROM and overall the phone is now a little bit faster. I'm testing it with the Kirin-GSI AOSP Android 9.0 Pie ROM, not with an OpenKirin ROM, but it is really stable just like on EMUI and OpenKirin ROMs. And I have a suggestion for bugfixes for Honor 8s (eights) running this AOSP Android Pie ROM: Please fix the broken hotspot function in kernel level on Honor 8s (eights) running this custom firmware, implement the EMUI camera app into the kernel and make the camera performance identical to EMUI's. The Kirin-GSI project is now abandoned because the dev bought a new phone which is not a Huawei phone, so he wouldn't fix the problems anymore. It's really annoying that I can't share my unlimited cellular data to friends or to my PS4 when I'm on vacation.
Click to expand...
Click to collapse
Thanks for taking the time to review the kernel.
Let's get some facts straight. First, camera performance has nothing to do with the kernel and 'camera app' can't be implemented inside the kernel. That's not how things work. Camera processing and everything is handled by Android and so your ROM developer can help you with that. Taking about hotspot, I'm not sure why it doesn't works with Pie. Again, I believe it's a ROM bug and has got nothing to do with kernel. I would wait for Pie releases by OpenKirin team and see if that bug exists there too and 'really' requires a kernel hack to fix it.

Related

gpl | abyss kernel 2.00 | B170/B180/NCS/fRomFuture

Hi Huawei P9 people!
This is my modified kernel with some kernel optimizations and some compiler optimizations.
The goal of abyss-caf is to compromise stability and improved performance.
I will not be overhauling this project with changes that are not logical to add.
This kernel should work on all stock based roms; there is a separate version for NCS rom.
How does one achieve this?
- build kernel with an optimized toolchain
- use compiler optimization flags (experimental)
- remove redundant code
- improve existing code with more efficient code
- reduce/increase speed of timers (depends on what type of function)
- etc. (most are not easy to explain)
This kernel is built with Linaro GCC 4.9.4 that is optimized for ARM64 devices.
Is there actually a performance improvement?
With all the changes added up, there should be. Whether or not one notices the difference is another thing.
Personally, I do feel the performance difference. It is easier to notice the difference with lower level specs.
For those interested in how the kernel optimizations will benefit/work, please look at my github source and read the commit messages.
For those interested in how the compiler optimizations/hacks will benefit/work, please look at this article.
Downloads:
BasketBuild
AFH
Source:
GitHub
I do not mind if there's some non-development/off-topic discussion here, just no discussion about other works that is nowhere near related to mine.
Also, please refrain from comparing works here; it really kills the spirit of development. Go do that in some other thread.
XDA:DevDB Information
abyss kernel for stock and stock based roms, Kernel for the Huawei P9
Contributors
kwoktopus, paulobrien, arter97, flar2, Christopher83, Cl3Kener, frap129
Source Code: https://github.com/kwoktopus/abyss_kernel_eva
Kernel Special Features: MAJOR KEY
Version Information
Status: Testing
Created 2016-08-24
Last Updated 2016-10-08
Main Patches and Features:
- Abyss Optimizations (compiler)
- optimized square root algorithm (3x faster)
- added BFQ io scheduler (now default)
- backported random from Linux 4.2+ (better entropy, better performance)
- utilize power efficient workqueues all over the kernel
- port quickwakeup driver for hisi from moto
- optimized lib patches
- optimized arm64 lib patches
- disabled gentle_fair_sleepers for better UX
- enhanced multicore decision making
How to install:
Flash the proper kernel zip in TWRP.
New to phone development?
If you are new to these forums or development in general,
please consult other members before trying this out.
There is no shame in asking for help politely and respectfully,
as long as you don't quote the whole OP or think slower than a sloth.
Frequently Asked Questions:
Is this a custom kernel?
I was asked this question once, and it posed as a real good question. I do not consider abyss to be a "custom kernel" per se, but more so as a modified kernel. The patches and features that go into this kernel do not make it customizable. What they do is improve what has already been implemented. It is like swapping a car's engine for a better one rather than just adding LED flooring lights and fancy car mats.
Can you add [this] and [that] feature to abyss?
Something I pride myself with this kernel is that it does not have a bunch of random, useless features or patches mashed into it. Everything put into this kernel is thought out well and tested. I see a lot of works being made popular because it has [this] and [that] feature when really, it's nothing revolutionary. As a matter of fact, most things added to any kernel will not make it 5x better than any other kernel. Most of the time, simple is better; and in this case it definitely is!
Awesome, will stay tune about new releases, will try the kernel later.
Just for clarify, kernel works in any P9 or just for L09 or L19?
jeremymolina said:
Awesome, will stay tune about new releases, will try the kernel later.
Just for clarify, kernel works in any P9 or just for L09 or L19?
Click to expand...
Click to collapse
There's no reason that it wouldn't work, but there's always that slight chance. Pretty sure you'll be fine
Finally! May God bless you!
---------- Post added at 08:13 AM ---------- Previous post was at 08:07 AM ----------
I have a question though.
Will it conflict with the L Speed app I'm currently using?
And to finish off my day (the start of many of yours), here is my 2nd release for y'all.
Code:
- optimized square root algorithm (3x faster)
- added BFQ io scheduler (now default)
- backported random from Linux 4.2+ (better entropy, better performance)
- utilize power efficient workqueues all over the kernel
- port quickwakeup driver for hisi from moto
- optimized lib patches
- optimized arm64 lib patches
- disabled gentle_fair_sleepers for better UX
- enhanced multicore decision making
abyss-caf-eva-nightly-20160824.zip
darthkir said:
Finally! May God bless you!
Click to expand...
Click to collapse
God has blessed me alright :victory:
darthkir said:
Will it conflict with the L Speed app I'm currently using?
Click to expand...
Click to collapse
Not sure why it would, what tweaks do you have turned on? It should be good to go, I highly doubt anything can go wrong with any sort of non-kernel related tweaks.
this is great news! You have my thanks
For anyone on NCS rom, the kernel will not boot for you. Please test this build out. I will be looking into using an AnyKernel 2.0 flash method for TWRP users so that we don't run into conflicts like these in the future.
abyss-caf-eva-ncs-20160824.zip
Not only my rom, its for all recommended if root is installed.
This is ****ing awesome kwoktopus, so excited to try your work (tomorrow). Finally some more new development for the great P9.
Thanks kwoktopus !
Can i flash your kernel on fRomFuture ROM ?
Salamender said:
Thanks kwoktopus !
Can i flash your kernel on fRomFuture ROM ?
Click to expand...
Click to collapse
Not exactly sure. If fRomFuture has ramdisk modifications then probably not, I'll have to make a separate version for it. If you would like to try, download both versions of the kernel and try.
kwoktopus said:
Not exactly sure. If fRomFuture has ramdisk modifications then probably not, I'll have to make a separate version for it. If you would like to try, download both versions of the kernel and try.
Click to expand...
Click to collapse
Neither working on fRomFuture, tried with TWRP flash image method, when i get home ill try with fastboot also.
edint3000 said:
Neither working on fRomFuture, tried with TWRP flash image method, when i get home ill try with fastboot also.
Click to expand...
Click to collapse
If it doesn't work even through fastboot, try flashing my test versions.I will upload it with changes for fRomFuture that may work. Stay posted
edit: i am running low on bandwidth from all the source downloading lately, can someone upload the boot.img from the latest fRomFuture build
Uh...probably super obvious, but do you need unlocked BL and/or root in order to flash the kernel? Ta.
kwoktopus said:
If it doesn't work even through fastboot, try flashing my test versions.I will upload it with changes for fRomFuture that may work. Stay posted
edit: i am running low on bandwidth from all the source downloading lately, can someone upload the boot.img from the latest fRomFuture build
Click to expand...
Click to collapse
Here it is
edint3000 said:
Here it is
Click to expand...
Click to collapse
Try flashing the kernel attached, see if it works
Hi.
I've tried the kernel clean on the NCS ROM 1.2.
Unfortunately, the camera failed to launch and I noticed jerkiness in response.

[Kernel] Project T Kernel for ZTE Axon 7 Mini

Hi guys,
I know that this forum is not widely used by ZTE Axon 7 Mini owners, but I still want to share my work the kernel used by the stock firmware.
Most of the parts were of course already based on the work of others, so I will give credits at the end of this thread of course.
Pre-requisites:
Unlocked bootloader
TWRP flashed
Knowledge you do this all at your own risk! I tested this kernel with my EU model, so I don't know if this will work on the US models, too.
Features:
- Based on latest kernel source shared by ZTE (ZTE B2017G Nougat(7.1.1) Kernel(3.10.84))
- Built with GCC 4.9 toolchain
- UC to 499MHz for BIG and 403 MHz for LITTLE (thanks to @flar2)
- OC to 1651 for BIG (again @flar2)
- Additional governors: yankactive, blu-active, impulse
- Additional IO schedulers: Sioplus, Zen, FIOPS. Tweaked Row is set as default
- Additional TCP congestion algorithms with westwood being the default one
- Approx. 30% faster due to CRC calculation and auditing disabling
- Sweep2Sleep on the navigation bar
- frandom RNG
- Sound Control by @flar2
- ZRAM using LZ4 optimized for ARM by default
- Optimized power management driver by @Yank555
- Native exFAT support without needing fuse @dorimanx)
- KCAL
- Vibration control
- uses higher power CPUs to boot (got roughly 3s faster boot time)
- Dynamic Fsync
- Gentle Fair sleepers can be toggled via sysfs and Kernel Adiutor
- Smaller tweaks
To do:
- Switch toolchain
- Remove "dirty" from the kernel name Apparently I need to push all changes to github before compiling(or recompiling the same kernel as soon as I pushed everything)
- Set the phone to accept the lower frequencies without having to set this up in Kernel adiutor
- Alter interactive governor to use full frequency range
- Add D2TS for screen and fingerprint sensor, S2W
- Wakelock reductions
- Maybe BLX, KCAL (even though I don't get the point to implement it) I was curious and did it now, looks nice
- LED and vibration control
- Switch hotplugging mechanism to Lazyplug, hotplugging is not that energy efficient anymore
See the attached picture regarding the CPU stats when using yankactive for example
Credits go to:
@Lord Boeffla @flar2 @dorimanx @Yank555
Unfortunately I didn't give proper credits on my github, I want everyone to know, that none of the features were designed and written by myself, just adapted to work on our phones!
Download here:
https://drive.google.com/drive/folders/0B0mn6OUqIDzBZG1DM1Y4dmxUV2c
Flash in TWRP, root and every other ramdisk modification will be preserved (Anykernel2 by osmosis)
Github:
https://github.com/TheSSJ/tulip_kernel
Changelog
V1.1: Initial version for public release!
V1.2: KCAL support
V1.3: Changed boot CPUs to higher power ones, added dynamic Fsync, added Quick Wakeup driver
V1.4: Gentle Fair Sleepers can be toggled now, ROW scheduler tweaked
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
TheSSJ said:
V1.1: Initial version for public release!
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
Click to expand...
Click to collapse
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Askael said:
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Click to expand...
Click to collapse
I wouldn't exclude this, but as I am running on stock, I can't confirm or deny...
You could make a backup of your boot and flash it and see what happens, worst thing is that you need to reboot to recovery and restore your backup
TheSSJ said:
V1.1: Initial version for public release!
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
Click to expand...
Click to collapse
TheSSJ said:
I wouldn't exclude this, but as I am running on stock, I can't confirm or deny...
You could make a backup of your boot and flash it and see what happens, worst thing is that you need to reboot to recovery and restore your backup
Click to expand...
Click to collapse
Thank you for replay, what governor you use?
You will need to try and see.
It uses anykernel which is good. But aokp and lineage are on android 7.1.2 while stock is on android 7.1.1. There was at least one kernel api change that may cause problems. But I'm not sure.
I'm assuming this package has the wlan module also...?
Askael said:
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Click to expand...
Click to collapse
@ssj @tdm
Guys, try flash kernel, AOKP, don't work.
W8 kernel version from customs
tdm said:
I'm assuming this package has the wlan module also...?
Click to expand...
Click to collapse
You mean the prima wifi stuff I have seen in you github? Honestly I didn't feel the need...does it improve the wifi experience or is it just for making it compatible with LineageOS?
No, I mean the kernel module for wifi, /system/lib/modules/pronto/pronto_wlan.ko. If that doesn't match your kernel, it won't load and you won't have wifi.
Note stock has a handful of other kernel modules, but I don't think any of them are needed Most look like they are for testing.
TheSSJ said:
You mean the prima wifi stuff I have seen in you github? Honestly I didn't feel the need...does it improve the wifi experience or is it just for making it compatible with LineageOS?
Click to expand...
Click to collapse
tdm said:
No, I mean the kernel module for wifi, /system/lib/modules/pronto/pronto_wlan.ko. If that doesn't match your kernel, it won't load and you won't have wifi.
Note stock has a handful of other kernel modules, but I don't think any of them are needed Most look like they are for testing.
Click to expand...
Click to collapse
Oh, ok...pronto driver is built into the kernel though, all other modules are really for debugging and testing as far as I could gather, so they are not included (and the phone works fine)
@Askael: As for a custom kernel for Lineage/AOKP etc: as I won't have these OS's on my phone I use as my daily driver, I can of course create one, but it is always published as untested, so there is no point IMHO.
TheSSJ said:
Oh, ok...pronto driver is built into the kernel though, all other modules are really for debugging and testing as far as I could gather, so they are not included (and the phone works fine)
@Askael: As for a custom kernel for Lineage/AOKP etc: as I won't have these OS's on my phone I use as my daily driver, I can of course create one, but it is always published as untested, so there is no point IMHO.
Click to expand...
Click to collapse
But we can test this. But if you not want - don't worry! :good:
Askael said:
But we can test this. But if you not want - don't worry! :good:
Click to expand...
Click to collapse
Will think about it
Version 1.2 is out, now with KCAL screen control support!
I'm building a kernel with many of these features for the LineageOS ROM. Want me to make a thread, and then you can link it for people interested in using it in your OP? Source is here: https://github.com/djkazic/sombrax_kernel
kevincai96 said:
I'm building a kernel with many of these features for the LineageOS ROM. Want me to make a thread, and then you can link it for people interested in using it in your OP? Source is here: https://github.com/djkazic/sombrax_kernel
Click to expand...
Click to collapse
Hi,
Feel free to open a new thread it is important to push this phone amd its potential as good as possible!
Development will go on, i still have some items to implement :good:
@TheSSJ
Hi! Any news about update?
@TheSSJ
Good to see you in Axon mini from zenfone 2
Askael said:
@TheSSJ
Hi! Any news about update?
Click to expand...
Click to collapse
You mean a custom kernel for CM builds or an update for this stock kernel?
For the CM based one I didn't start, although applying the modifications I applied to my kernel should be working
Druboo666 said:
@TheSSJ
Good to see you in Axon mini from zenfone 2
Click to expand...
Click to collapse
I was spotted It's a great phone, let's get the most out of it
TheSSJ said:
You mean a custom kernel for CM builds or an update for this stock kernel?
For the CM based one I didn't start, although applying the modifications I applied to my kernel should be working
I was spotted It's a great phone, let's get the most out of it
Click to expand...
Click to collapse
For this stok kernel
I was spotted It's a great phone, let's get the most out of it
Click to expand...
Click to collapse
i am using Axon 7 and yeah its a great phone i must miss you in axon 7
Updated version uploaded and available on G-Drive, boot time increased by 3s (you take what you can get )
/EDIT: Next version out, small enhancements and adding the possibility to enable/disable gentle fair sleepers

[KERNEL][DISCONTINUED][LOS] Typhon

Features
Based on Codeaurora's msm-3.18 kernel branch LA.UM.5.5.r1-06700-8x96.0
Support for the camera laser autofocus
Lightweight (minimal amount of logging, tracing and debugging functions)
Compiled with Linaro GCC 6.4 using flags specific for Kryo
Userspace display color calibration (Kcal)
Under-the-hood performance patches
Caveats/To-Dos
Focusing on getting the NFC working (the kernel supports PN547, however, the blobs/configs provided by Lineage are for PN548)
Add F2FS support
Compatibility
Tested on LineageOS (2018-01-23), using the 20s bootloader/modem firmware
Downloads
https://forum.xda-developers.com/devdb/project/?id=24609#downloads
XDA:DevDB Information
Typhon Kernel, ROM for the LG G5
Contributors
waau
Source Code: https://github.com/waau/platform_kernel_typhon_q
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
ROM Firmware Required: 21S
Version Information
Status: Testing
Created 2018-01-26
Last Updated 2018-02-21
Changelog
M1
Initial release.
M2
Added (untested) support for the H830 & RS988 variants
installscript: Removed the partition fstrim step
ramdisk: Some memory bandwidth tweaks thanks to oxavelar @ the V20
Misc updates
M3
Ported the camera driver from stock, there are issues with the Lineage Snap camera see https://jira.lineageos.org/browse/BUGBASH-1076.
M4
Reverted to CAF's initial 3.18.31 kernel tree due to upstream changes causing crashes
Imported LMK changes from Motorola (avg time to find a task to kill from 1004us to 43us)
Misc driver improvements (bt should work better during streaming intensive workloads)
The IPC/Binder has been updated (is Oreo booting now?)
Relaxed the polling rates in some parts of the kernel
Crypto libs update
Booting takes 40 seconds or so.
This should be a stable build for all the supported variants, I'll improve the overall performance after taking a break and revisiting the Lineage kernel for the charging problem. M5 will be a mostly feature-oriented update including battery saving changes.
Artificial benchmarks seem much better now.
https://browser.geekbench.com/v4/cpu/6766622
M5 RC1
Merged EXT4 encryption from Lineage
Attempt to reduce the power consumption (artificial benchmarks will probably take a hit in some areas, the UX should not be affected)
Imported memory bandwidth improvements from Motorola
Re-enabled the ramoops console
Other misc merges
Let the phone settle for a while after the first boot.
The ramoops console has been re-enabled, in case there are any kernel panics, attach the dump and I'll take a look at it (/sys/fs/pstore/console-ramoops) The rest of the features will come in the final version. I'll also try to get the NFC working.
M6
Redone some parts of the memory management system (compaction, slab, ksm, cma, zram), also pagecaches are now dropped when the screen turns off
Dropped the serial console, kernel initialization should be faster
Driver adjustments (targeting memory leaks)
Memory bandwidth improvements from Sony
Enabled NTFS support (for OTG, untested)
Enabled KSM
Cleaned up the ramdisk, media.camera.ts.monotonic will need to be set manually (read: https://jira.lineageos.org/browse/BUGBASH-1076)
This is probably the last build since I'm giving away my G5 this month, if anyone wants to continue the kernel you are welcome to fork it, the new source is here.
https://github.com/waau/platform_kernel_typhon_q
Mirror for the kernel zip https://github.com/waau/platform_kernel_typhon_q/releases/tag/M6
Wait this is actually great. Quick charge on LOS 14.1 is back?
Kye2000 said:
Wait this is actually great. Quick charge on LOS 14.1 is back?
Click to expand...
Click to collapse
Ported from stock since it was too much of a hassle to fix it on the Lineage kernel, probably these merges broke it
https://review.lineageos.org/#/c/181342/
https://review.lineageos.org/#/c/181479/
waau said:
Ported from stock since it was too much of a hassle to fix it on the Lineage kernel, probably these merges broke it
Something amazing has begun. Thank you. :highfive:
Click to expand...
Click to collapse
Yup. Quick charge works on a fresh RRN install. Thank you very much.
EDIT: From an initial impression, the screen burn-in seems to be reduced a bit. Still very noticeable, though.
totalnoob34 said:
Yup. Quick charge works on a fresh RRN install. Thank you very much.
EDIT: From an initial impression, the screen burn-in seems to be reduced a bit. Still very noticeable, though.
Click to expand...
Click to collapse
I didn't reduce the panel voltage in the build posted here, only the one posted in the LOS thread has the panel voltage reduced. Probably going to reintroduce it later.
waau said:
I didn't reduce the panel voltage in the build posted here, only the one posted in the LOS thread has the panel voltage reduced. Probably going to reintroduce it later.
Click to expand...
Click to collapse
That's placebo effect right there. Is anything else different? I can test it, if you want.
totalnoob34 said:
That's placebo effect right there. Is anything else different? I can test it, if you want.
Click to expand...
Click to collapse
Nothing significant, besides reverting the reduced panel voltage stuff and dumping exFAT. Sure gonna attach it to this post after it's compiled.
Edit: Panel UV Build
This is fantastic! I'm itching to move back to LineageOS from Fulmics. Any chance we might see a fix for LiveDisplay or is that not related to the kernel?
halomademeapc said:
This is fantastic! I'm itching to move back to LineageOS from Fulmics. Any chance we might see a fox for LiveDisplay or is that not related to the kernel?
Click to expand...
Click to collapse
I will take a look at it.
waau said:
Nothing significant, besides reverting the reduced panel voltage stuff and dumping exFAT. Sure gonna attach it to this post after it's compiled.
Edit: Panel UV Build
Click to expand...
Click to collapse
Installed. I'll post back on how it goes.
For laser focus:
https://github.com/waau/platform_ke...ers/media/platform/msm/camera_v2/sensor/proxy
check: vl53l010 files.
Maybe it help to check LG G3 LOS kernel source because Laser focus is working.
I'm happy to report that the kernel works on an existing install of RR too, no need to clean flash :victory:
I was still on the 20a bootloader/modem so I flashed 20s first, just in case ... here are the steps I took:
Reboot to recovery
Nandroid
Flash 20s bootloader + modem
Wipe dalvik/cache
Reboot to system ... all good
Reboot to recovery again
Flash qc-typhon-h850-m1.zip
Wipe Dalvik/cache
Reboot to system
I was (well still am) on RR-N-v5.8.5-20171203-h850-Final and everything seems to work without an issue
Thanks for giving us back "normal" charging @waau :good: :highfive:
walter79 said:
For laser focus:
https://github.com/waau/platform_ke...ers/media/platform/msm/camera_v2/sensor/proxy
check: vl53l010 files.
Maybe it help to check LG G3 LOS kernel source because Laser focus is working.
Click to expand...
Click to collapse
Thanks, although I will try to port the camera drivers from stock and hope that the Lineage HAL cooperates.
waau said:
Thanks, although I will try to port the camera drivers from stock and hope that the Lineage HAL cooperates.
Click to expand...
Click to collapse
Would u be willing to recreate this kernel for the rs988? We only have 2 ROMs to choose from PA and rr and both have the slow charging issue
goast said:
Would u be willing to recreate this kernel for the rs988? We only have 2 ROMs to choose from PA and rr and both have the slow charging issue
Click to expand...
Click to collapse
I will add support for the RS998 and H830 tomorrow.
waau said:
I will add support for the RS998 and H830 tomorrow.
Click to expand...
Click to collapse
Thank u and I will be flashing tomorrow too lol
How can I help?
Hello, I have no development experience and am technically limited, but this project really gives me hope for the future of the G5. Is there anyway I can support you or be of assistence? Thank you so much for taking this on!
Hiya!
Would you be able to add CPU and GPU overclocking as well? I found this post from an old kernel developer who isn't updating theirs anymore, so the work is pretty much done I think.
https://forum.xda-developers.com/lg-g5/development/stock-kernel-t3540157/post72361249#post72361249
I would just use theirs and not bother you, but their kernel breaks bluetooth support for some odd reason, and I need that to use.
If you could add in overclocking I would be SUPER appreciative...
thanks!

[kernel][discovery][pie] AKLU kernel [50.1 firmware based]

Praise God! The AKLU kernel is in progress!
WARNING: This is for phones that are still using the 50.1 firmware base! Not for phones that have upgraded to the 50.2 firmware!
Hey guys! I finally got far enough along with a kernel mod to release it here. There are still more features to be implemented, and I hope to work on it more in the coming weeks.
Currently supported ROMs: MAY work with others, but not supported by me.
- Resurrection Remix (Pie)
WARNING: I fully test this on my phone, and it seems perfectly stable to me, but I cannot be held responsible for whatever happens to your phone. Flash at your own risk.... Please make a backup in TWRP of your boot partition before you flash this.
Features:
- Added Governors: Darkness, Nightmare, Preservative
- Added I/O schedulers: FIFO
- Added Kcal color control
In progress features:
- Wake gestures (DT2W, S2W) - These are implemented, and show up in Kernel Adiutor, but do not work presently. WIP.
- Fauxsound - These show up in /sys/kernel/sound_control, but the app to control them does not work on Android 9. Still testing, WIP.
On the bucket list (TODO) :
- Voltage control for over/under volting
- GPU overclock option
- CPU overclock option
Installation instructions:
- Copy this kernel image to your sdcard
- Reboot into bootloader
- fastboot flash ./<latest_twrp>
- In TWRP, perform a backup of the BOOT partition
- Choose install -> install image -> select this kernel image -> swipe to flash it
- If you want to be rooted (highly recommended for this kernel), you will now need to flash magisk or su, etc.
- Reboot to system and enjoy!
Downloads:
http://www.mediafire.com/folder/t11haleth4hl7/Pie_kernels
Information:
Source code: https://gitlab.com/alaskalinuxuser/android_kernel_sony_sdm660
Created: 20190917
Last Updated: 20190917
Kernel notes....
Just a few notes about the kernel features.
- Kcal color control.
Please see the attached pictures of Kcal in action! This does not affect screen shots. Screen shots from the phone will look normal, but this changes the way the colors display on the physical screen. Pretty cool and allows you to tinker with what many call "true black", and you can adjust your colors as needed. Kernel Adiutor supports controlling this feature if it is present in your kernel. You can also go black and white with the gray scale mode.
Governors:
- Darkness
It's based on nightmare but more simple and fast, basic configs but very complex structure. It is an updated version of the nightmare gov, so far it is quite stable in tests
Click to expand...
Click to collapse
- Nightmare
A PegasusQ modified, less aggressive and more stable. A good compromise between performance and battery. In addition to the SoD is a prevention because it usually does not hotplug.
Click to expand...
Click to collapse
- Preservative
This is based on the idea that the CPU will consume a lot of power when it changes frequency. It is based on the conservative governor. The idea is that it will stay at the step specified (702MHz selected by the creator Bedalus) unless needed. You will notice it will hover around 702 a lot, and not go above too much, and only to min freq when NOTHING is happening at all. This is most beneficial when you are doing something like reading; the screen is static or playing light games that won't need boosting any more
Click to expand...
Click to collapse
I/O scheduler:
-FIFO
First in First Out Scheduler. As the name says, it implements a simple priority method based on processing the requests as they come in.
Click to expand...
Click to collapse
Any exciting news here brother?
appleknight said:
Any exciting news here brother?
Click to expand...
Click to collapse
Great question! I actually just posted in the RR thread how I was able to build Android 9.0 and flash it sucessfully on my 50.2 firmware XA2 Ultra. It is kernel version 4.9, and this 50.1 kernel is only 4.4, so I'll be working on that. You can head over to this post for more details and teaser shots.....
https://forum.xda-developers.com/showpost.php?p=80423077&postcount=69
Amazing
AlaskaLinuxUser said:
Great question! I actually just posted in the RR thread how I was able to build Android 9.0 and flash it sucessfully on my 50.2 firmware XA2 Ultra. It is kernel version 4.9, and this 50.1 kernel is only 4.4, so I'll be working on that. You can head over to this post for more details and teaser shots.....
https://forum.xda-developers.com/showpost.php?p=80423077&postcount=69
Click to expand...
Click to collapse
Your doing great work. I did notice however with lineage I'll have full bars but remix I'll have one bar or no bars and still have lte
lonewolfbtown said:
Your doing great work. I did notice however with lineage I'll have full bars but remix I'll have one bar or no bars and still have lte
Click to expand...
Click to collapse
Interesting.... Right now I am messing around with the XOSD 4.14 kernel for our phone, and the outcome of that may change which direction I go with this.

Englezos Kernel [OSS] - 0.13 [26 July 2021]

Englezos Kernel - MI 9T/K20 Pro​
Englezos Kernel for the MI 9T/K20 Pro (raphael,in) is a minimal kernel focused on improving overall UX with performance and battery tuning. Support any AOSP OSS based rom both Android 10 & Android 11, no MIUI support.
Features:
Latest CAF msm-4.14 (Specific Qualcomm Optimized kernel base) with latest android-4.14-stable merged
Latest wifi and audio drivers tags
Power efficient workqueues and idle power consumption is reduced to the absolute minimum
Optimized CPU frequencies and EAS energy model for improved performance and battery life (idle also)
Selectively cleaned Xiaomi's drivers for reduced debugging and performance improvement
Dropped unnecessary boosting
Devfreq boost driver
SimpleLMK driver for better and improved memory utilization
Passes SafetyNet bootloader unlock check
LZ4 compression for ZRAM enabled by default
WireGuard VPN tunnel support
vDSO 32 patches to improve 32-bit performance
Modules support disabled for lighter kernel
Excluded a lot of debugging symbols for kernel size reduction
Root will be preserved even after flashing the kernel! (i.e. No Need to Reflash Magisk after flashing kernel).
Many other miscellaneous improvements not listed here, check the source
Installation instructions:
Flash the .zip file through your installed recovery or FKM.
Changelogs/Downloads:
Download from Github Releases
Reporting issues:
Before reporting an issue please check that it only occurs when having this kernel installed. Otherwise it may be an issue with the ROM.
Make sure you provide logs and or a descriptive information with your reports, else you will be ignored.
Be aware that battery issues are very likely related to your personal settings. Don't blame me for your modifications.
Thanks to:
nathanchance: for android-linux-stable
osm0sis: for his amazing anykernel3 script
kerneltoast
kdrag0n
All others who have their commits or contributions picked.
XDA:DevDB Information
Englezos Kernel, Kernel for the Redmi K20 Pro
Contributors
Englezos
Source Code: https://github.com/penglezos/kernel_xiaomi_raphael
Version Information
Status: Stable
Current Stable Version: 0.13
Created 2020-04-06
Last Updated 2021-07-26
Reserved
thank you for sharing your work
Is F2FS upstreamed from mainline ?
Nice i'm gonna check It out
Nice to see your kernel for this device.
Release 0.2 April 09
A hot-fix release fixing random reboots, sorry for any inconvenience. Download link at first post.
Englezos said:
A hot-fix release fixing random reboots, sorry for any inconvenience. Download link at first post.
Click to expand...
Click to collapse
thanks for the update!
no bug and smooth. great battery. clean source base correct upstreams.. thumb up.
thank for your work..
currently trying the latest kernel
I use K20 Pro. Download Englezos-raphael-0.2-MI9FOD.zip or Englezos-raphael-0.2.zip ?
Thanks
z1022 said:
I use K20 Pro. Download Englezos-raphael-0.2-MI9FOD.zip or Englezos-raphael-0.2.zip ?
Thanks
Click to expand...
Click to collapse
Depends on which ROM you're using. The ROM will either use mi9fod or LOS (normal) fod.
Sent from my Mi 9T Pro using XDA Labs
Any plans for miui in the future?
gwenmillett said:
Any plans for miui in the future?
Click to expand...
Click to collapse
No
can u change vibration more lighter haptic ?
kernel is good
This might be a little too aligned with power saving. I came from Candy kernel, and this kernel in comparison doesn't even register touches at times. It's also quite sluggish.
I like the idea though.
Turbine1991 said:
This might be a little too aligned with power saving. I came from Candy kernel, and this kernel in comparison doesn't even register touches at times. It's also quite sluggish.
I like the idea though.
Click to expand...
Click to collapse
Assuming you are coming from Candy kernel you are using MIUI? Also I need logs and more information as you can see.
How do I know which one to use for Lineage 17.1? Mi9FOD or the other?
justin.knoefel said:
How do I know which one to use for Lineage 17.1? Mi9FOD or the other?
Click to expand...
Click to collapse
The other
I want to thank the developer, I am using the kernel with the pixel experience +, everything is fine and the battery direction is very good, it is simple to get to 10 hours of screen, I am happy!

Categories

Resources