[TWRP] [ROM] [KERNEL] [SAWSHARK] Oreo OWDE.180926.001.A1 [OCT/15/2019] - Huawei Watch 2

I compiled a custom kernel for Huawei Watch 2 LTE. I thought I would share this with the xda community here.
TWRP Download: https://github.com/travismills82/tw...i_sawshark/blob/android-9.0/twrp_sawshark.tar (updated 10/20/19)
Rom Download
OWDE.180926.001.A1: https://drive.google.com/open?id=1cWGcDi3jQifTv2olGMWiSJaPcP2nKncs
Kernel Download
sawshark-travis-kernel: https://drive.google.com/open?id=1rz9ChKOl_gTgiFtheO2So-Jp2GLPGLXY (updated 10/22/19 V1.3)
Stock Kernel Download
OWDE.180215.017_LEO-DLXX-stock-kernel: https://www.androidfilehost.com/?fid=674106145207485168
Features:
Added fsync on/off support
Lowered Zram to give watch more breathing room in ram
Enable DEVFREQ_GOV_MSM_ADRENO_TZ GPU gov
Enable cifs/smb support
proc: Remove verifiedbootstate flag from /proc/cmdline (safetynet green)
Gpu can now raise to 300mhz
Added 400mhz,1.09ghz,1.26ghz step
LZ4 Zram compression enabled
All 4 cores enabled
Kernel Upstreamed
sawshark:/ # cat /proc/version
Linux version 3.18.30 ([email protected]) (gcc version 4.9 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Oct 15 08:47:52 PDT 2019
Kernel Sources: What's New https://github.com/travismills82/android_kernel_huawei_sawshark
HINT: I suggest powersave gov so it stays on the lowest frequency as much as possible. Also you can use Magisk 16.4 to root if you choose.
Useful links
Kernel Auditor Wear: https://www.androidfilehost.com/?fid=674106145207486838
Magisk 20.0: https://github.com/topjohnwu/Magisk/releases/download/v20.0/Magisk-v20.0.zip

Awesome! Any plans for the BT model?

I'm sorry for being ignorant but that is benefit of this kernel?

Working on getting core control correct, I updated the gpu to use 300mhz frequency and enabled all 4 cores. When I am done testing and I am happy with the results I will release a new kernel. Oh I also unlocked 400mhz 1.26ghz step. For me I can use quadcore and get the same battery life as dual core.
I will look at lowering voltage to save even more battery this week when/if I get time. I hope you guys speak up and let me know what you want out of this smartwatch.
The Below screenshot is my normal usage with AOD enabled on 4 core kernel. I'm sure without AOD enabled it can last a lot longer.
Regards,
Travis Mills (Travis82)

travis82 said:
Working on getting core control correct, I updated the gpu to use 300mhz frequency and enabled all 4 cores. When I am done testing and I am happy with the results I will release a new kernel. Oh I also unlocked 400mhz 1.26ghz step. For me I can use quadcore and get the same battery life as dual core.
I will look at lowering voltage to save even more battery this week when/if I get time. I hope you guys speak up and let me know what you want out of this smartwatch.
The Below screenshot is my normal usage with AOD enabled on 4 core kernel. I'm sure without AOD enabled it can last a lot longer.
Regards,
Travis Mills (Travis82)
Click to expand...
Click to collapse
Battery life has been great so far. I can get 4 days on a single charge.
I mainly use the phone for workout tracking and minimal messaging on Telegram app.
I do not use AOD and only used Bluetooth for pairing/configuring accounts and mainly use Wi-Fi as needed.
Let me know if you need someone to test your updated kernel once you update.

@travis82
How to enable/disable fsync?

Kernel updated to catch up to google source 60+ changes. So it's as up to date as it can get without me upstreaming it.
Main changes I saw were screen updates for brightness and updated wifi drivers and Bluetooth configs.
Im also testing quick charge I added it to the twrp image already you can download it from the appropriate thread.

will his work om bt model?

I would love to see this on the Sawfish.

travis82 said:
Kernel updated to catch up to google source 60+ changes. So it's as up to date as it can get without me upstreaming it.
Main changes I saw were screen updates for brightness and updated wifi drivers and Bluetooth configs.
Im also testing quick charge I added it to the twrp image already you can download it from the appropriate thread.
Click to expand...
Click to collapse
So can i just flash the kernel or must the whole rom and kernel be flashed together?

Grumps said:
So can i just flash the kernel or must the whole rom and kernel be flashed together?
Click to expand...
Click to collapse
kernel only is just fine also.

After install this zip from twrp my whatch 2 4g is unable to make sound, unable to use mic, and google assistant cant connect to google. An other strange think is that if i use google play music from whatc, the app say me that the watch can't play music becouse it has no hardware speakers . All the rest works perfect. Some help?what is wrong?

Raziel_Sicily said:
After install this zip from twrp my whatch 2 4g is unable to make sound, unable to use mic, and google assistant cant connect to google. An other strange think is that if i use google play music from whatc, the app say me that the watch can't play music becouse it has no hardware speakers . All the rest works perfect. Some help?what is wrong?
Click to expand...
Click to collapse
please help, i have the smartwach unusable in this condiction. i had discovery one more think, in the fast boot menu i notioce that the baseband version is "N/A"looks like the whatch has lost the baseband driver so that no connection to google assistant and no speaker and no microphone is usable by the os, please someone can dump his baseband so that i can flash it on my whatch?

@travis82 There is a new system update. Could you make a new rom?

zmxn said:
@travis82 There is a new system update. Could you make a new rom?
Click to expand...
Click to collapse
I honestly was planing to make a new rom with android 9 not a oreo security update that is useless if you update the kernel.

travis82 said:
I honestly was planing to make a new rom with android 9 not a oreo security update that is useless if you update the kernel.
Click to expand...
Click to collapse
That would be awesome, are you going to use DP2 or you will wait for the official H update and make the ROM?

Oh, probably official P. Also if anyone has factory restore images for Oreo that would be helpful. We cant go back to N anymore because of the newer bootloader.
Also the ones who applied the new system update can you install my twrp and kernel to see if its all good?

I have already tried the update several times without success. At the end the device starts with a red exclamation mark and reboots.
Has anyone been able to perform the update successfully?

travis82 said:
I honestly was planing to make a new rom with android 9 not a oreo security update that is useless if you update the kernel.
Click to expand...
Click to collapse
Hi, are you planning to make a rom with the android 9 update for the BT version too? Would Be greatly appreciated....

Help, Pls. I downloaded rom and stock kenel file but how to load it into smartwatch?
travis82 said:
I compiled a custom kernel for Huawei Watch 2 LTE. I thought I would share this with the xda community here.
TWRP Download: https://forum.xda-developers.com/wa...p-3-2-1-0-twrp-recovery-huawei-watch-t3786233
Rom Download
OWDE.180215.017: https://www.androidfilehost.com/?fid=962339331458990487
Kernel Download
sawshark-travis-kernel: https://www.androidfilehost.com/?fid=11410963190603881739 (updated 12/24/18 V1.1)
Stock Kernel Download
OWDE.180215.017_LEO-DLXX-stock-kernel: https://www.androidfilehost.com/?fid=674106145207485168
Features:
Added fsync on/off support
Lowered Zram to give watch more breathing room in ram
Enable DEVFREQ_GOV_MSM_ADRENO_TZ GPU gov
Enable cifs/smb support
proc: Remove verifiedbootstate flag from /proc/cmdline (safetynet green)
Gpu can now raise to 300mhz
Added 400mhz,1.09ghz,1.26ghz step
LZ4 Zram compression enabled
All 4 cores enabled
sawshark:/ # cat /proc/version
Linux version 3.18.24 ([email protected]) (gcc version 4.9 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Mon Dec 24 12:32:41 PST 2018
Kernel Sources: What's New https://github.com/travismills82/android_kernel_huawei_sawshark
HINT: I suggest powersave gov so it stays on the lowest frequency as much as possible. Also you can use Magisk 16.4 to root if you choose.
Useful links
Kernel Auditor Wear: https://www.androidfilehost.com/?fid=674106145207486838
Magisk 16.4: https://github.com/topjohnwu/Magisk/releases/download/v16.4/Magisk-v16.4.zip
Click to expand...
Click to collapse
Help, Pls. I downloaded rom and stock kenel file but how to load it into smartwatch?

Related

[KERNEL] BitO-K12 / KU: Kernel for Nvidia Shield Tablet [Stock / Custom / N]

This kernel aims to be an alternative (and experimental) to Stock or custom ROMs (CM, Bliss,...) default ones, applying tweaks (kernel source configuration) and patches (if them apply) to improve general responsive, performance and functionality.
*Remember, test at your own risk.
BitO-KU
Base "pure" kernel with latest Nvidia code + Linux upstream (v3.10.108)
More info here.
Main Features for K12:
SafetyNet bypass (TESTING)
Latest Linux 3.10.108 code fully merged
Latest F2FS code backported from Linux 4.10
Multi Core and SMT optimizations enabled
Extra IO Schedulers (CFQ - default)
Extra Governos (Interactive - default)
Extra TCP Congestion algorithms (Cubic - default)
L2TP VPN enabled
ZRAM with LZ4 enabled (you can disable)
NTFS RW enabled
UTF8 as default code table
Module support disabled
CPUQuiet (CPU dynamic hotplug)
Main Features for KX10:
All K10-001 features + ...
OC for CPU and GPU (thx to @laufersteppenwolf )
Other optimizations:
Debug info stripped down
Branch jump optimizations
Clean cache
Front swap
Memcopy operations optimized for ARM A15
ZCache enabled
Cryptographic operations
Downloads:
BitO-KU
BitO-K12
BitO-KX10
Installation
Install ZIP via custom recovery
Install F2FS injector ZIP if you need proper F2FS support.
Notes
Don't forget flash DTB if necessary
If you need to update blobs, you can easily flash this zip (OTA 4.2), thx to @Steel01
Info about F2FS, and experimental TWRP to support it here.
I would be glad to get some feedback about battery life, performance, etc... All suggestions welcome :good:
Thnx:
@Steel01
@Bogdacutu
@faux123
@twistedumbrella
@berryman13
@Unjustified Dev
@SuperPichu
@corvus
Tegra Devs and every developer and tester behind and supporting this big community.
Big thx to everybody for helping to get a new device​
List of donnors for a new Shield Tablet:
@xanthrax : $25
@gasgiver : $10
@primaleph : $25
@marvi0 : $10
@strann0 : $10
@DR_HAX34 : $15
-----------------------------
TOTAL: $95
XDA:DevDB Information
BitO-K, Kernel for the Nvidia Shield Tablet
Contributors
BitOBSessiOn
Source Code: https://github.com/BitOBsessiOn/android_kernel_nvidia_shieldtablet
Kernel Special Features: Latest Nvidia sources, stable, fast, responsive, smooth
Version Information
Status: Stable
Current Stable Version: K10-006
Stable Release Date: 2017-06-25
Current Beta Version: K12
Beta Release Date: 2018-05-28
Created 2015-04-01
Last Updated 2018-05-29
Could be worth mentioning the .IMG file can also be flashed using Flashify without having to connect to computer at all.
pretty and nice
Running almost perfect in CM12
Waiting for OC I know you can do it,I use run the shaky156 OC 2.499 kernel for almost 1 months with no problems and I switched to CM12
Thanks and keep the nice work
kickassdave said:
Could be worth mentioning the .IMG file can also be flashed using Flashify without having to connect to computer at all.
Click to expand...
Click to collapse
Thnx, OP updated.
kickassdave said:
Could be worth mentioning the .IMG file can also be flashed using Flashify without having to connect to computer at all.
Click to expand...
Click to collapse
BitOBSessiOn said:
Thnx, OP updated.
Click to expand...
Click to collapse
And right after flashing CM12 in TWRP
That's what I did anyways.
Anybody can give me feedback about battery on CM 12 / 12.1 when device screen off (deep sleep), please?
Thnx!
BitOBSessiOn said:
Anybody can give me feedback about battery on CM 12 / 12.1 when device screen off (deep sleep), please?
Thnx!
Click to expand...
Click to collapse
The - latest wifi ROM- version you uploaded in the CM12 thread also includes your kernel as presented here?
Is it possible to include colour profiles in the kernel? Love it on my nexus 5! Looking forward to seeing this move forward
Also is there a rest of world lte version in the works? Thanks
silasje1 said:
The - latest wifi ROM- version you uploaded in the CM12 thread also includes your kernel as presented here?
Click to expand...
Click to collapse
Yes, I always compile CM 12.x with my kernel version. The 12.1 is totally experimental.
ishamm said:
Is it possible to include colour profiles in the kernel? Love it on my nexus 5! Looking forward to seeing this move forward
Also is there a rest of world lte version in the works? Thanks
Click to expand...
Click to collapse
Take note for colour profiles but I don't know how complex it can be... I'll be studied, sure.
About LTE RoW (wx_un_do) vs LTE US (wx_na_do) they are totally compatible as @Steel01 and me have seen. I have LTE RoW model and actually use wx_na_do compilation. In the future, perhaps, we will create a specific branch.
BitOBSessiOn said:
Yes, I always compile CM 12.x with my kernel version. The 12.1 is totally experimental.
Click to expand...
Click to collapse
I will be away a few days so a lot of sleep time for the tablet Will report
Here's some cpu state time info for u. 51mhz is deep sleep right?
With CPU Spy you get how long the device is in deep sleep: http://forum.xda-developers.com/showthread.php?t=1011497
Cpu spy capture for u. I've been running it like I stole it all day.
I don't have installed CPU Spy but BBS reports that it sleeps like a baby.
Got a spare apk for bbs by chance?
Download Better Battery Stats XDA edition here http://forum.xda-developers.com/showpost.php?p=15869886&postcount=2
Just wanted to let u know the mic issue was a gapps thing, the minimal edition has problems, went back to pagapps (the final 03/15 one) and if I flash this kernel on steels cm12 it works perfect. No sound fc either. The ONLY issue I found is moving to SD. Still says no room even after the folder mount patch. Battery is great btw, thanks much for the work
Is it possible to add double tap to wake / sleep? ☺
Sent from my SHIELD Tablet
badly and +
drewski_1 said:
Is it possible to add double tap to wake / sleep?
Sent from my SHIELD Tablet
Click to expand...
Click to collapse
SD fix
OC CPU and GPU

[KERNEL][E68XX][EAS] DevElite Kernel Three, Bigger and Better

DevElite Kernel
Three, Bigger and Better
Features and Changelogs:
Code:
Three:
PDesireAudio 11.0 included
Included Maple I/O Scheduler and set as default
Replaced sched governor with own pdesiresched governor
Adreno Idler included
Replaced msm_performance with Lazyplug
Fastcharge driver included
Some CVE Security Patches
Many many new patches for percpu, cpufreq and irq_work
Miscellaneous patches and improvements
Two:
E6853 Problems fixed
SafetyNet patched
Improved Memory Performance by up to 15%
KCAL Color Control added
Little Scheduler improvement
More Optimized for big.LITTLE
Compiled with Linaro GCC 7.1.1
pstore ramoops fixed
Misc Patches and Improvements
One:
Energy Aware Scheduling (EAS)
Zen Scheduler added and set as default
Westwood TCP congesition Algorithm added and set as default
sched Governor included and set as default (I would not change it either)
KSM disabled by default
PDesireAudio 10.1 Audio Enhancements included
Adaptive Low Memory Killer enabled by default
Blocking some wakelocks to improve battery
TWRP included
(Not too much features yet because EAS took a long time to implement)
-------------------------------------------------
What does make that Kernel special?
This is literally the first kernel with Energy Aware Scheduling for Sony Xperia.
It took weeks to make anything working but the work was worth at the end
-------------------------------------------------
Requirements:
You just need these things:
A Xperia Z5 Premium
TWRP Recovery
-------------------------------------------------
How to install my Kernel?
It's truly easy:
Download the Zip on Download section (Second Post)
Reboot into Recovery
Flash the downloaded Zip
It will do by itself all what you need
-------------------------------------------------
Source Code/Repositories?
Take a look here:
https://github.com/PDesire/XperiaSatsukiEliteKernel
-------------------------------------------------
FAQ:
Why does my CPU behave so kinda weird?
Well EAS is different than what we normally know (HMP), if you think the CPU behavior is abnormal, it is just because EAS does handle tasks differently
My device got hard bricked, do you fix it for me?
It's a Kernel so you have to be responsible for any damages!
But it should not damage your phone.
-------------------------------------------------
Credits:
Honestly the Biggest Credits goes to Team DevElite for their wonderful help
Special thanks to:
@RyTekk
@zacharias.maladroit
@_LLJY
If i forgot someone please tell me and I will add
​
XDA:DevDB Information
DevElite Kernel, Kernel for the Sony Xperia Z5 Premium
Contributors
PDesire
Source Code: https://github.com/PDesire/XperiaSatsukiEliteKernel
Kernel Special Features:
Version Information
Status: Stable
Created 2017-06-13
Last Updated 2017-07-22
Downloads:
Kernel:
New:
Three:
Single Sim: https://goo.gl/pR5qni
Dual Sim: https://goo.gl/JLzmLJ
Two:
Single Sim: https://goo.gl/UH7ztq
Dual Sim: https://goo.gl/xM1jz1
One:
Single Sim: https://goo.gl/vQc6l4
!!!!Seems something is broken, just boot.img inside zip works, not the script!!!
Dual Sim: https://goo.gl/wMeaXV
-------------------------------------------
Old:
No old Releases yet
​
bootloop! crash in bootanimation , have z5p e6853 stock firmware
anjelz2012 said:
bootloop! crash in bootanimation , have z5p e6853 stock firmware
Click to expand...
Click to collapse
Wait what ? Okay weird. Will take a look on it. Which android FW you use ?
Your PDesire
PDesire said:
Wait what ? Okay weird. Will take a look on it. Which android FW you use ?
Your PDesire
Click to expand...
Click to collapse
32.3.A.2.33
Booted just fine on my E6883, will test for sometime, & let you know of how it behaves. Thanks again for your much hard work of not letting our Z5 Premium die!!
Okay, it definitely runs cooler, I rebooted several times already, & its not as hot at stock would be. But I think that's cause of all the big cores being turn off, that's the behaviour I noticed after the phone booted.
Also, is it normal that two big cores always remain active? In stock, only one does. You should maybe educate a little more on what to expect with this kernel.
Okay, after a bit of a settling, its back to one big core always active like stock behaviour.
And by the way, SafetyNet doesn't pass with Magisk, I use Magisk v12 with Magisk root. Hope in the future something can be done here.
I know it's just the first release & I might be bugging you with the requests, but I noticed the boot time is a bit longer than the usual stock. And if at all this is possible, could you reduce the backlight during boot like in Zach's SunKernel?
And would I be losing the Energy Aware Scheduling if I switch to Interactive governor for both Big & Little cores?
I don't really understand the hot plugging of this kernel, sometimes all big cores are active, sometimes 3, 2, stock like 1, sometimes none. I mean, wouldn't it drain battery to constantly switch big cores on & off. It doesn't overheat, it stays cool as said though.
anjelz2012 said:
32.3.A.2.33
Click to expand...
Click to collapse
Could you send me your init.qcom.post_boot.sh file maybe located at /system/etc?
Thanks
Your PDesire
Christian Fleming said:
Booted just fine on my E6883, will test for sometime, & let you know of how it behaves. Thanks again for your much hard work of not letting our Z5 Premium die!!
Okay, it definitely runs cooler, I rebooted several times already, & its not as hot at stock would be. But I think that's cause of all the big cores being turn off, that's the behaviour I noticed after the phone booted.
Also, is it normal that two big cores always remain active? In stock, only one does. You should maybe educate a little more on what to expect with this kernel.
Okay, after a bit of a settling, its back to one big core always active like stock behaviour.
And by the way, SafetyNet doesn't pass with Magisk, I use Magisk v12 with Magisk root. Hope in the future something can be done here.
I know it's just the first release & I might be bugging you with the requests, but I noticed the boot time is a bit longer than the usual stock. And if at all this is possible, could you reduce the backlight during boot like in Zach's SunKernel?
And would I be losing the Energy Aware Scheduling if I switch to Interactive governor for both Big & Little cores?
Click to expand...
Click to collapse
SafetyNet I will patch soon. Right now the bootstate is on orange which I need to patch soon
About the boot time: that's because... Well EAS and performance governor (which is used on boot) aren't best friends sometimes
The Brightness dimm on boot is no problem :good:
You don't lose EAS if you use it... Just interactive is optimized for HMP, so some laggs can exist
Your PDesire
@PDesire thanks for the great work
Only one question, do drm related stuff work with this kernel?
Edit: just tried installing and it booted without any problem! X-reality seems to work correctly!
Daniel_GB said:
@PDesire thanks for the great work
Only one question, do drm related stuff work with this kernel?
Click to expand...
Click to collapse
OHH yes it does
Your PDesire
will you made a custome rom in future?
How can I root while using this kernel?
PDesire said:
Could you send me your init.qcom.post_boot.sh file maybe located at /system/etc?
Thanks
Your PDesire
Click to expand...
Click to collapse
https://mega.nz/#!2BIwUKzK!VfUGkgMLrDjP8X7Rl_41VQNXxM460YBzx-Gn1TfpBEg
FiDra said:
How can I root while using this kernel?
Click to expand...
Click to collapse
Magisk
Your PDesire
pandan80 said:
will you made a custome rom in future?
Click to expand...
Click to collapse
Why that question?
Your PDesire
What you can already expect on next version:
-glibc memcopy and string for 15% more memory performance
-SafetyNet bypass
-Little Scheduler improvements
A little question now guys:
Do you need one of these things urgently:
KCAL
Sound Control
More governors
If there's a huge request for them I will try to add
Your PDesire
PDesire said:
What you can already expect on next version:
-glibc memcopy and string for 15% more memory performance
-SafetyNet bypass
-Little Scheduler improvements
A little question now guys:
Do you need one of these things urgently:
KCAL
Sound Control
More governors
If there's a huge request for them I will try to add
Your PDesire
Click to expand...
Click to collapse
hi gj
please first added kcal
PDesire said:
What you can already expect on next version:
-glibc memcopy and string for 15% more memory performance
-SafetyNet bypass
-Little Scheduler improvements
A little question now guys:
Do you need one of these things urgently:
KCAL
Sound Control
More governors
If there's a huge request for them I will try to add
Your PDesire
Click to expand...
Click to collapse
Those are interesting feature to have along side EAS!
More governors are always welcome.
thanks for the great work! using for an hour and everything seems OK!
Rooted with Magisk12
Lineage?
Can i use this on lineage or is this a stock only?

[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][EAS][O2][UBER] Chihayafuru Kernel v0.90 Honor 8 for Android 8.0+

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.

[KERNEL][P9][8.0+] ECOKernel 2020 [EOL]

ECO Kernel - Where not done yet
Compatibility Notes:
This kernel is tested to work with EMUI 8 and OpenKirin 8.x ROMs. All other GSI builds aren't guaranteed to boot.
GPL Notice:
This kernel is used and licensed under GPLv2 and visible on my git: https://github.com/dcionline/eco_kernel_hi3650_eva
Recommended Apps:
To tweak most of the settings in the kernel, I recommend using EX Kernel Manager: https://forum.xda-developers.com/gen...nager-t3560850 and Kernel Adituor: https://play.google.com/store/apps/d...ladiutor&hl=en
Features:
Compiled with UberTC 4.9 / Linaro 4.9 / GCC 4.9 toolchain with Cortex A53 and O2 optimizations
Upstreamed to v4.4.130 (where not done yet)
Added blu_active governor and more
Enabled sched CPU governor
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
... 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 available here: UBER - Linaro - Stock
Latest stable Version: 04.05.20 build with Linaro
Latest working upstream applied: 4.4.206
testing channel: under review 4.4.207
dev channel: 4.4.208 debug
XDA:DevDB Information
[KERNEL][P9][8.0+] ECOKernel 2020, Kernel for the Huawei P9
Contributors
dkionline
Source Code: https://github.com/dcionline/eco_kernel_hi3650_eva
Kernel Special Features:
Version Information
Status: EOL
Created 2018-10-21
Last Updated 2021-07-03
The folder is empty :/
PS: What is the difference between UBER / Linaro / Stock? Is there any?
Charnooh said:
The folder is empty :/
PS: What is the difference between UBER / Linaro / Stock? Is there any?
Click to expand...
Click to collapse
Push on UBER my friend!!
Kernel is there....
Regards!!
Who
Charnooh said:
The folder is empty :/
PS: What is the difference between UBER / Linaro / Stock? Is there any?
Click to expand...
Click to collapse
I will push it until tomorrow.
Stock u should know, sources from Huawei/Google.
UBER + Linaro are modified toolchains to give the kernel a better touch in working state on the phone. Im aware, that there are newer versions up to GCC8.x, but not working on EMUI8 yet.
I've just installed the kernel (UBER) on my P9 running OpenKirin Lineage OS. Everything seems to be good so far. I was wondering if you had done any benchmarks regarding stock kernel battery life vs ECO kernel battery life? Also, can enabling fast charging damage the battery?
Ankush.P said:
I've just installed the kernel (UBER) on my P9 running OpenKirin Lineage OS. Everything seems to be good so far. I was wondering if you had done any benchmarks regarding stock kernel battery life vs ECO kernel battery life? Also, can enabling fast charging damage the battery?
Click to expand...
Click to collapse
I didnt tested any benchmarks. It depends mostly on Governor.
Fast Charging should work, but never used.
dkionline said:
I didnt tested any benchmarks. It depends mostly on Governor.
Fast Charging should work, but never used.
Click to expand...
Click to collapse
I tried the fast charging, and I *think* it charged faster, but maybe I imagined it ?. I'll know for sure the next time I do a full charge. Do you have an idea for what additional features you want to put into the next update?
What about deep sleep on OK ROMs? Does it work properly with this kernel?
Is there any way you could add a feature to change the vibration intensity? It's very low on Lineage OS, almost can't feel it.
Antix2835 said:
What about deep sleep on OK ROMs? Does it work properly with this kernel?
Click to expand...
Click to collapse
Mostly encountered issues are by Google Play Services. On Stock Deepsleep has no issues. On OK ROMs i didnt tested it yet.
Ankush.P said:
Is there any way you could add a feature to change the vibration intensity? It's very low on Lineage OS, almost can't feel it.
Click to expand...
Click to collapse
We had some talk about that, but dont know how it ended, think it didnt what we wanted to.
Everything good so far, i did antutu test ~145k.
Is it ok also for EVA-AL10c00b535 (or only for b528)?
dkionline said:
Features:
Compiled with UberTC 4.9 / Linaro 4.9 / GCC 4.9 toolchain with Cortex A53 and O2 optimizations
Upstreamed to v4.4.130 (where not done yet)
Added blu_active governor and more
Enabled sched CPU governor
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
Click to expand...
Click to collapse
Thats pretty good ! :good:
I will test and report with EVA-b535 (btw: which seems to be a good Firmware)
zgfg said:
Is it ok also for EVA-AL10c00b535 (or only for b528)?
Click to expand...
Click to collapse
It needs a small edit for newer patch.
dkionline said:
It needs a small edit for newer patch.
Click to expand...
Click to collapse
My friend @dkionline!!!
Could this kernel for DL00 8.0.0.535 be permissive?
Thanks in advance!!
Rergards!!
im interested in this but im new to kernel stuff. im currently in rros for p9. what are the disadvatages if i install this? can i still normally update my rros rom if i install this?
iammitee said:
im interested in this but im new to kernel stuff. im currently in rros for p9. what are the disadvatages if i install this? can i still normally update my rros rom if i install this?
Click to expand...
Click to collapse
Generally, this is Kernel while Open Kirin ROMs flash System partition
zgfg said:
Generally, this is Kernel while Open Kirin ROMs flash System partition
Click to expand...
Click to collapse
so there are no issues on rom updates even with a modified kernel?
can i restore the old kernel if ever this turns out weird for me?
iammitee said:
so there are no issues on rom updates even with a modified kernel?
can i restore the old kernel if ever this turns out weird for me?
Click to expand...
Click to collapse
I don't know if they are compatible, just saying they are independent
Why not, you can always flash stock kernel back

Categories

Resources