FORUMS
Remove All Ads from XDA

[OREO/PIE][Kernel][27.11.2019][4.9.201] Kirisakura 10.7.0 for HTC U12+ aka Imagine

4,225 posts
Thanks Meter: 12,213
 
By Freak07, Senior Member on 28th June 2018, 05:21 PM
Post Reply Email Thread
Kirisakura-Kernel for HTC U12+

Hello everyone,

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!

This includes upstreaming to latest linux stable for enhanced security and stability. As well as bringing in important new CAF patches, as soon as CAF releases the sources for the SD 845!

Revisiting the stock EAS implementation for further efficiency enhancements is also on my current roadmap for future development. I´m sure there is potential!
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 HTC for the HTC U12+ currently 1.21 and HTC Exodus currently 1.68 (works on all bases up to 2.45)
- Upstreamed to latest 4.9.201
- Merged with CAF
- Pixel 3/XL EAS ported over
- Cleanslate features from @tbalden included! (big thanks to him!)

CPU related features:
- Dynamic schedtune boost from @joshous
- CPU Input boost from @Sultanxda
- Disclaimer: please take a look at post 2 on how to set them up!
- Power saving workingqueues enabled by default (toogleable in EXKM)
have a read here: https://lwn.net/Articles/731052/
this complements EAS in general
- DDR bandwidth boost from @Sultanxda

Graphic related features:
- KCAL to control the display
- Adreno Boost
- Enabled NAP power saving state of Adreno 630

Network related features:
- Wireguard Support

Misc Features:
IO-Schedulers:
- cfq
- bfq
- maple
- deadline
- noop
- tripndroid
- fiops
- zen

TCP Congestion Algorithms:
- advanced algorithms enabled
- includes new bbr and sociopath tcps

Wakelock Blocker:
- advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
- common wakelocks that are safe to be blocked are blocked by default


Feature section for the "non visible" but perceptible improvements:
- mark certain IRQ and kthreads as performance critical
- updated schedutil governor
- updated binder section (responsible for interprocess communication)
- updated sdcardfs (have a read about it here: https://www.xda-developers.com/divin...e-io-overhead/ )
- Speculative Page Faults (1. 2)
- Memory allocation overflow protection (kernel hardening feature)
- proc gate vulnerability fixed



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


How to flash the Kernel:

1. Download the kernel.zip to your device
2. Reboot to TWRP
3. Flash the kernel.zip in TWRP
4. The kernel zip will detect if you´re rooted and keep root in that case!
5. Reboot and Profit


IMPORTANT NOTICES

1. After rooting, the option to enable face unlock from htc may be greyed out.
How to fix:
a. Open Magisk Manager
b. Open the side menu and tap on magisk hide
c. Tick faceunlock to be hidden



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

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


Changelog:
0.1 Initial Release
0.2 https://forum.xda-developers.com/sho...0&postcount=32
0.5 https://forum.xda-developers.com/sho...2&postcount=46
1.0 https://forum.xda-developers.com/sho...7&postcount=61
1.1 https://forum.xda-developers.com/sho...7&postcount=82
1.3 https://forum.xda-developers.com/sho...5&postcount=85
1.4 https://forum.xda-developers.com/sho...8&postcount=88
1.7 https://forum.xda-developers.com/sho...2&postcount=90
2.0.3 https://forum.xda-developers.com/sho...&postcount=115
2.1.1 https://forum.xda-developers.com/sho...&postcount=136
2.2.0 https://forum.xda-developers.com/sho...&postcount=167
2.2.3 https://forum.xda-developers.com/sho...&postcount=181
2.3.4 https://forum.xda-developers.com/sho...&postcount=195
3.0.2 https://forum.xda-developers.com/sho...&postcount=244
4.1.1 https://forum.xda-developers.com/sho...&postcount=261
5.0.0 https://forum.xda-developers.com/sho...&postcount=301
5.2.1 https://forum.xda-developers.com/sho...&postcount=321
7.0.0 https://forum.xda-developers.com/sho...&postcount=337
9.1.0 https://forum.xda-developers.com/sho...&postcount=355
10.0.0/1 https://forum.xda-developers.com/sho...&postcount=364

Pie and forward:
10.7.0 https://forum.xda-developers.com/sho...&postcount=378

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:

@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

XDA:DevDB Information
Kirisakura-Kernel , Kernel for the HTC U12+

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

Kernel Special Features: Linux Upstream, KCAL, CAF, Cleanslate Features, Pixel 3 EAS

Version Information
Status: Stable

Created 2018-06-28
Last Updated 2019-11-27
The Following 26 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
28th June 2018, 05:23 PM |#2  
Freak07's Avatar
OP Senior Member
Thanks Meter: 12,213
 
More
How to set up the kernel


as with release 4.1.1 it’s advised to change no boost settings at all! It’s all flash and forget




This is a short guide on how to set up the kernel. This is currently required because TWRP is not yet ready and therefore I have no ak2 zip to set that all up.





The following is deprecated as with 0.5 Release!


Basically I decided to disable pnpmgr. This is htc’s daemon for controlling the CPU boosts.
I integrated a few other boosts to the kernel that work way better to replace HTC´s mechanism.
The phone is more smooth and more efficient now.

This is not a requirement at all. It´s entirely optional in case you aren´t satisfied with the current state of things!

1. With a root explorer go to /system/vendor/etc and rename pnp.xml to pnp.xml.bak
That will disable pnpmgr on the next reboot.

2. In EXKM navigate to CPU -> Boost Settings

3. Set the values like on the attached screenshot! and toogle the arrows to set it on reboot


4. cpu input boost currently has no interface in EXKM. The predefined values are fine. But if you navigate to Tools -> User Settings, you can call any file and change the values exactly to your liking.
Just hit the + and add the following paths:
sys/module/cpu_input_boost/parameters/input_boost_freq_lp boost freq of the little cluster
sys/module/cpu_input_boost/parameters/input_boost_freq_hp boost freq of the big cluster
sys/module/cpu_input_boost/parameters/input_boost_duration boost freq duration

5. Reboot and profit



The following is advised as with the Release of 0.5!

1. If you previously renamed pnp.xml found in /system/vendor/etc, to pnp.xml.bak, rename it back to pnp.xml!

Now reboot!

2. Here is a screenshot of the optional boost settings I´m currently running. These are a bit more aggressive than stock, provide more smoothness but cost a tiny bit of battery. In the end I still achieve way better battery results on 0.5 than on 0.2 even with additional boosts enabled. That is due to the energy saving commits I mentioned in the changelog of 0.5.
Here is the screenshot!



The Following 13 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
28th June 2018, 05:24 PM |#3  
Freak07's Avatar
OP Senior Member
Thanks Meter: 12,213
 
More
also mine
The Following 2 Users Say Thank You to Freak07 For This Useful Post: [ View ] Gift Freak07 Ad-Free
28th June 2018, 05:24 PM |#4  
Freak07's Avatar
OP Senior Member
Thanks Meter: 12,213
 
More
and mine
28th June 2018, 06:37 PM |#6  
Member
Thanks Meter: 12
 
More
Thank's so much for you work mate....wich app could use to get advanced color control ??...is there able to get more bright on the screen ? because this is dim as u11+, i can't see any difference in brightness...very frustrating
28th June 2018, 06:46 PM |#7  
Freak07's Avatar
OP Senior Member
Thanks Meter: 12,213
 
More
Quote:
Originally Posted by neofrost37

Thank's so much for you work mate....wich app could use to get advanced color control ??...is there able to get more bright on the screen ? because this is dim as u11+, i can't see any difference in brightness...very frustrating

You can control kcal with exkm app.

But you can just control srg, saturation, contrast etc.

With Kcal nothing can be done about the brightness. Sorry for that!
28th June 2018, 08:24 PM |#8  
Freak07's Avatar
OP Senior Member
Thanks Meter: 12,213
 
More
I forgot to add Wireguard as a supported feature. I corrected this in the OP.
29th June 2018, 12:59 AM |#9  
schmeggy929's Avatar
Recognized Themer
Flag New Jersey
Thanks Meter: 1,918
 
Donate to Me
More
Quote:
Originally Posted by neofrost37

Thank's so much for you work mate....wich app could use to get advanced color control ??...is there able to get more bright on the screen ? because this is dim as u11+, i can't see any difference in brightness...very frustrating

There is absolutely nothing wrong with the brightest on this phone. Slightly dimmer than U11. Currently have auto brightness off and set just under half way. In the sun it visible at 3/4 brightness.
29th June 2018, 01:39 AM |#10  
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by schmeggy929

There is absolutely nothing wrong with the brightest on this phone. Slightly dimmer than U11. Currently have auto brightness off and set just under half way. In the sun it visible at 3/4 brightness.

so would you post a picture to compare both phone's with max bright ??....mine is just a little bit more bright than u11+ , maybe i just have bad luck with my 2 last htc's
The Following User Says Thank You to neofrost37 For This Useful Post: [ View ] Gift neofrost37 Ad-Free
29th June 2018, 01:56 AM |#11  
schmeggy929's Avatar
Recognized Themer
Flag New Jersey
Thanks Meter: 1,918
 
Donate to Me
More
Quote:
Originally Posted by neofrost37

so would you post a picture to compare both phone's with max bright ??....mine is just a little bit more bright than u11+ , maybe i just have bad luck with my 2 last htc's

Just did a side by side pic and to me the U12+ seems brighter probably due ether cooler color.
Attached Thumbnails
Click image for larger version

Name:	IMG_20180628_194848.jpg
Views:	2378
Size:	230.9 KB
ID:	4537614  
The Following User Says Thank You to schmeggy929 For This Useful Post: [ View ] Gift schmeggy929 Ad-Free
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