FORUMS

[Kernel][ANDROID 10][25.04.2020][4.14.176] Kirisakura 1.0.3 Asus Zenfone 6 aka Kirin

4,625 posts
Thanks Meter: 15,226
 
By Freak07, Recognized Developer / Recognized Contributor on 16th June 2019, 10:34 AM
Post Reply Email Thread
Kirisakura-Kernel for the Asus Zenfone 6

Hello everyone,

After rising to the most popular Kernel on Pixel 3/XL, here it is for the Asus Zenfone 6!

Kirisakura - Kernel is designed to bring a handful of beneficial features to the device, while ensuring excellent performance and smoothness to get you safely through the day!

Being the first kernel on the Pixel 3/XL forum, which features completely merged CAF, it´s now here one the Asus Zenfone 6 Forums too!
It´s the first kernel on the Asus Zenfone 6 forums to have latest CAF - Source as well as latest linux-stable upstream merged in.
Since Android 10 the next-gen CAF tag for 4.14 kernels is merged too

The kernel is fully rebased to latest available CAF source from the Codeaurora-Forums for the 4.14 msm kernel. (except charging driver for now, don´t have the same means as an OEM for testing Battery longevity, no risks there | as well as display driver, breaks unique functionality with Asus at the moment)
The kernel is also upstreamed to latest linux stable for enhanced security and stability.
Have a read about linux-stable and why it is important here

The EAS implementation is heavily updated with changes from CAF, kernel/common and other improvements.
To have a read about our scheduler, which is called EAS, take a look here:
https://developer.arm.com/open-sourc...are-scheduling



Main Features:
- Based on latest kernel sources from Asus for Android 10
- Next-Gen CAF merged up to tag LV.AU.0.1.0.r2-00400-qtiquingvm.0
- Regular CAF for SD855 merged up to tag LA.UM.8.1.r1-14700-sm8150.0
- Linux-Stable-Upstream included to latest 4.14.176
- compiled with Clang 10.0.6 prebuilt from Google
- ZRAM patched up to latest kernel/common state and use LZ4 as default compression algorithm to improve memory managment
- Safety Net patches are included -> Kernel passes Safety Net
- Flashing the kernel will keep root!
- Anykernel zip is based on the all new Anykernel3 release from @osm0sis
- F2FS updated against F2FS stable
- include vDSO 32 patches to improve 32-bit performance

EAS related features:
- EAS implementation patched up to latest CAF state
- disable autogroups and use cgroups for more efficient task placement!
- disable core_ctl for improved task placement and load balancing
- improved schedutil governor

CPU related features:
- Power saving workingqueues enabled by default (toggleable in EXKM)
have a read here: https://lwn.net/Articles/731052/
this complements EAS in general
- Change various drivers ( MM, audio) to user power efficient workingqueues. This should work well in conjunction with EAS
- cpufreq/times vastly improved

File System related features:
- Set the bio REQ_NOENCRYPT flag (When lower layers such as dm-crypt observe the REQ_NOENCRYPT flag, it helps the I/O stack avoid redundant encryption, improving performance and power utilization. ) (CAF default)

GPU related features:
- KCAL to control the display
- KLAPSE integrated
- KCAL/KLAPSE: changes safety measures -> allow completely disabling two RGB values (this was requested to, for example, only have red values on night dimming)


Network related features:
- Wireguard Support (Details)
- advanced TCP algorithms enabled
- includes new bbr and bbrv2

Memory related features:
- Memory Management patches from mainline kernel
- Speculative Page Faults (1. 2)
- Fix various memory leaks in different subsystems
- Reap memory of a task that receives sigkill
- enabled per process reclaim
- allow ZRAM to use higher swappiness values than 100
- possibility to use lzo-rle as default ZRAM compression algorithm (more information here and there )

Security related features:
- built with self built clang 10

WLAN Driver
- use CAF wlan driver and compile it inline, the only way to ensure working wlan with this kernel
- the kernel cannot even force load prebuild WLAN module as the kernel base is way to far from stock!
- do no longer rely on the pre compiled wlan driver module
- completely removed qcom_rx wakelock in the wlan driver
- removed debugging from wlan driver
- removed logging from wlan driver

Magisk Companion Module
- set kernel settings like I intend them to be


Misc Features:

Wakelock Blocker:
- advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
- please read this for further info

Other features:
- disable logging to make the kernel more lightweight in various places

Feature section for the "non visible" but perceptible improvements:
- updated binder section (responsible for interprocess communication)
- updated sdcardfs ; have a read about it here:


Requirements

- unlocked Bootloader
- USB-Debugging in developer options enabled
- latest adb and fastboot binaries
- working adb and fastboot environment
- magisk root


How to flash the Kernel:

1. Download the latest kernel.zip

1a. Optional: While it may not be necessary all times, you may want to restore stock boot.img, re-root with magisk and optionally install twrp.zip if coming from another kernel. Before reporting issues make sure you do that! Thank you!

2. Make sure to use latest Magisk stable. (not the latest canary!)

3. Flash the kernel.zip via latest EXKM or FKM app. Alternatively via TWRP.

4. Reboot and profit.


DOWNLOAD:
Download is located always in this folder:
https://www.androidfilehost.com/?w=files&flid=295608

Important: Read after Download
Please take a look at the second post after flashing the kernel!

Changelog:

Android 9/Pie
1.0.0 Initial Release
1.3.0 https://forum.xda-developers.com/sho...2&postcount=21
1.5.0 https://forum.xda-developers.com/sho...7&postcount=36
1.6.0 https://forum.xda-developers.com/sho...6&postcount=46
1.8.1 https://forum.xda-developers.com/sho...5&postcount=58
3.0.0 https://forum.xda-developers.com/sho...3&postcount=66

Android 10/Q
1.0.0_Q https://forum.xda-developers.com/sho...3&postcount=73
1.0.3_Q https://forum.xda-developers.com/sho...7&postcount=86

Donations:
Donations are not mandatory but very welcome if you want to support development or just buy me a coffee
If you like my work: http://paypal.me/freak07

Credits:
Asus for the Zenfone 6!
@osm0sis for all his work, including the ak2 installer!
@tbalden for being the best HTC wingman!
@LeeDroid for his awesome roms!
@Captain_Throwback for all the mentoring and guidance!
@Eliminater74 for bringing me into the game and the Inspiration
@nathanchance for his upstream guidance and assistance
@RenderBroken for helping me out
@flar2 for all his work
@joshuous for all the help he provided to me in the past!
@arter97 for giving me advice
@topjohnwu for magisk!
@osm0sis for anykernel!

XDA:DevDB Information
Kirisakura-Kernel, Kernel for the ASUS ZenFone 6 (2019)

Contributors
Freak07
Source Code: https://github.com/freak07/Kirisakura_Kirin

Kernel Special Features:

Version Information
Status: Stable

Created 2019-06-16
Last Updated 2020-04-25
The Following 32 Users Say Thank You to Freak07 For This Useful Post: [ View ]
16th June 2019, 10:36 AM |#2  
Freak07's Avatar
OP Recognized Developer / Recognized Contributor
Thanks Meter: 15,226
 
More
Mine for FAQ
The Following 4 Users Say Thank You to Freak07 For This Useful Post: [ View ]
16th June 2019, 10:37 AM |#3  
Freak07's Avatar
OP Recognized Developer / Recognized Contributor
Thanks Meter: 15,226
 
More
Too
The Following 3 Users Say Thank You to Freak07 For This Useful Post: [ View ]
16th June 2019, 10:37 AM |#4  
Freak07's Avatar
OP Recognized Developer / Recognized Contributor
Thanks Meter: 15,226
 
More
And too
The Following 3 Users Say Thank You to Freak07 For This Useful Post: [ View ]
16th June 2019, 07:12 PM |#5  
Junior Member
Thanks Meter: 2
 
More
Flashed it today and no problems so far.
Everything seems to work as intended
The Following 2 Users Say Thank You to herobrauni For This Useful Post: [ View ] Gift herobrauni Ad-Free
16th June 2019, 07:28 PM |#6  
Senior Member
Flag Paris
Thanks Meter: 214
 
More
Quote:
Originally Posted by Freak07

Mine for FAQ


Which RAM version do you have please?
Is the kernel for both?
16th June 2019, 08:29 PM |#7  
Freak07's Avatar
OP Recognized Developer / Recognized Contributor
Thanks Meter: 15,226
 
More
Quote:
Originally Posted by EMJI79

Which RAM version do you have please?
Is the kernel for both?

The 8GB version. RAM variant shouldn´t matter.
17th June 2019, 09:06 AM |#8  
isthisadagger's Avatar
Senior Member
Thanks Meter: 89
 
More
1. Does it have to be magisk stable or is canary (dev version) ok? I am asking because i need to use canary so my stupid pay app will not detect root.
2. This might sound stupid but what is magisk companion and where do i get it? I can not find it in the magisk modules repository or on xda and neither google.
17th June 2019, 09:16 AM |#9  
Senior Member
London
Thanks Meter: 63
 
More
2. This might sound stupid but what is magisk companion and where do i get it? I can not find it in the magisk modules repository or on xda and neither google.[/QUOTE]

It's in the downloads folder at the end of the afh link in the OP
The Following User Says Thank You to jeremyet For This Useful Post: [ View ] Gift jeremyet Ad-Free
17th June 2019, 09:28 AM |#10  
Freak07's Avatar
OP Recognized Developer / Recognized Contributor
Thanks Meter: 15,226
 
More
Quote:
Originally Posted by isthisadagger

1. Does it have to be magisk stable or is canary (dev version) ok? I am asking because i need to use canary so my stupid pay app will not detect root.
2. This might sound stupid but what is magisk companion and where do i get it? I can not find it in the magisk modules repository or on xda and neither google.


Quote:
Originally Posted by jeremyet

2. This might sound stupid but what is magisk companion and where do i get it? I can not find it in the magisk modules repository or on xda and neither google.

It's in the downloads folder at the end of the afh link in the OP[/QUOTE]


1. you can probably use the canaries of magisk too. But keep in mind, they’re canary builds for a reason. If you’re having issues, flash to magisk stable and see if you can reproduce them.


2. Like @jeremyet said, it’s in the download folder in the OP
The Following User Says Thank You to Freak07 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes