FORUMS

[Kernel][04.01.2020][Android 9] Kirisakura 1.0.2 for Asus Rog Phone 2 aka Yoda

4,386 posts
Thanks Meter: 13,748
 
By Freak07, Senior Member on 1st January 2020, 10:16 PM
Post Reply Email Thread
Kirisakura-Kernel for the Asus Rog Phone 2

Hello everyone,

I proudly present Kirisakura-Kernel made for the Asus Rog Phone 2 aka Yoda!
Please note this is an early version of my Kernel. I´ll plan on bringing in many more changes as Android 10 drops for the Rog Phone 2. As of this time the kernel is made for Android Pie/9. There´s no kernel source available for the Android 10 Beta.

This is an enhanced version of the stock kernel. No crazy changes, just upstream changes to various subsystems for now and a few things I personally like to have.

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!

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 Pie
- compiled with Clang 10.0.0 and built with -O3 speed optimizations
- 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!
- Sweep to sleep functionality
- Anykernel zip is based on the all new Anykernel3 release from @osm0sis

EAS related features:
- EAS implementation patched up to latest CAF state
- disable autogroups and use cgroups for more efficient task placement!
- improved schedutil governor
- updates from kernel/common

CPU related features:
- Power saving workingqueues enabled by default
have a read here: https://lwn.net/Articles/731052/
this complements EAS in general
- 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)

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

Memory related features:
- Speculative Page Faults (1. 2) (CAF default)
- Fix various memory leaks in different subsystems
- enabled per process reclaim (CAF default)
- allow ZRAM to use higher swappiness values than 100

Security related features:
- built with self built clang 10


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:
- disable auditing for lower overhead


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, or TWRP (haven´t tested TWRP myself as I don´t need it)

4. Reboot and profit.


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

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

Changelog:
1.0.0 Initial Release
1.0.2 https://forum.xda-developers.com/sho...1&postcount=33

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 Rog Phone 2
@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
@kdrag0n for his help too
@topjohnwu for magisk!
@osm0sis for anykernel!

XDA:DevDB Information
Kirisakura Kernel, Kernel for the ASUS ROG Phone II

Contributors
Freak07
Source Code: https://github.com/freak07/Kirisakur...master_release

Kernel Special Features:

Version Information
Status: Stable

Created 2020-01-01
Last Updated 2020-01-04
The Following 38 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
1st January 2020, 10:17 PM |#2  
Freak07's Avatar
OP Senior Member
Thanks Meter: 13,748
 
More
F.A.Q:

Question: Is root preserved when flashing this kernel?
Answer: Yes the Anykernel Zip will detect root and keep it.

Question: How do I return back to stock or another kernel.
Answer: Extract boot.img from matching firmware you are on and flash the extracted boot.img via fastboot.

Question: How to report bugs properly?
Answer: Have a look at post #3 in this thread. The linked guide is a pretty good starting point.
Before reporting any bug make sure you´re not using any mods, magisk modules, scripts or other modifications that alter various functions like sound mods, data traffic etc.
Try to describe the issue as detailed as possible! Give your exact setup, like rom, magisk version, kernel version.
Is the issue reproducible? Does it happen frequently?
Provide logs, otherwise debugging is a lot harder. If you can already reproduce the issue and provide logs it greatly limits the amount of time I have to spent until I figure out how to reproduce it.

If the device force reboots/randomly reboots (that means you see the bootloader unlocked screen!) provide a ramoops file.
Easiest way is immediately after booting up, with a root explorer navigate to sys/fs/pstore. Copy the contents to your internal storage, zip it up and send it to me.

If the issue happens while the device is running provide a dmesg plus a logcat that you take while/shortly after the issue happens. This will log what´s running in the current session. Try to be as detailed as possible what´s happening when the issue appears. It will also help me in reading the log!
The Following 17 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
1st January 2020, 10:18 PM |#3  
Freak07's Avatar
OP Senior Member
Thanks Meter: 13,748
 
More
Useful Resources

How to report bugs:

It is incredibly useful if bug reports are done in a proper way. That saves everyones time and will ultimately lead to a faster bugfix (hopefully).
The following guide from @nathanchance is a very good guideline on how to properly report a bug!

https://github.com/nathanchance/Andr..._Reporting.txt
The Following 14 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
1st January 2020, 10:18 PM |#4  
Freak07's Avatar
OP Senior Member
Thanks Meter: 13,748
 
More
and one more for me
The Following 7 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
1st January 2020, 10:46 PM |#5  
Senior Member
Thanks Meter: 31
 
More
Wow!!! Awesome! Plans for kcal in the future?
The Following User Says Thank You to VZTech For This Useful Post: [ View ] Gift VZTech Ad-Free
1st January 2020, 11:00 PM |#6  
Senior Member
Flag Mumbai
Thanks Meter: 44
 
More
Thank you so much for giving me a reason to unlock the bootloader. Finally am happy to see development for the device and that too from a well known developer 👍🏼👍🏼 cheers mate and a very happy new year.
1st January 2020, 11:49 PM |#7  
Junior Member
Thanks Meter: 1
 
More
Can I flash Android 10 beta fota file to my cn version phone using this recovery?
2nd January 2020, 01:49 AM |#8  
Junior Member
Thanks Meter: 1
 
More
I love your work bro keep this devlopment continue

All rog2 user support your hardwork ,

And more developer will come after seeing your hardwork
2nd January 2020, 03:37 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by a5he

Can I flash Android 10 beta fota file to my cn version phone using this recovery?

please help..now my device stuck and keep looping in bootloader mode after trying to flash this kernel on Android 10 beta fota..and i cant reboot into twrp recovery and system..
2nd January 2020, 06:28 AM |#10  
Freak07's Avatar
OP Senior Member
Thanks Meter: 13,748
 
More
Quote:
Originally Posted by sakamaki izayoi

please help..now my device stuck and keep looping in bootloader mode after trying to flash this kernel on Android 10 beta fota..and i cant reboot into twrp recovery and system..

flash the boot.img extracted from the android 10 beta firmware via fastboot.

Kernel is made for Android Pie as stated in the OP.
The Following 3 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
2nd January 2020, 07:46 AM |#11  
mohammed510's Avatar
Senior Member
Flag Dubai
Thanks Meter: 171
 
More
Welcome bro and thanks for the first rog 2 custom kernel.. 😊
After flashing in twrp it says i should flash companion magisk module. Is there one yet?
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