[PIE][Kernel][28.11.2020][4.9.246] Kirisakura_NEXT 1.2.0 for HTC U12+ aka Imagine

Search This thread

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,746
19,210
Flashing via EXKM will NOT work, if you’re on the latest magisk canary! (currently 19305!)

19302 is still working fine with EXKM, as is stable 19.3. Big changes in magisk are coming. we will have to wait for flar2 to find a new way of flashing zips.
 
  • Like
Reactions: donmarkoni

p50kombi

Senior Member
Dec 20, 2005
3,969
2,150
Samsung Galaxy Note 10+
Shall we tweet this puppy also? ;)

Running like a charm...
 

Attachments

  • Screenshot_20190703-104928.png
    Screenshot_20190703-104928.png
    118.1 KB · Views: 603

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,746
19,210
hello guys and girls,

So here is the next big update.
It´s probably the last and final update for Oreo. The kernel is in pretty good shape.
We now use a magisk module in addition to the kernel. This allows us to use our own wlan driver instead of force loading the prebuilt one from HTC.
Together with @p50kombi a very tricky kernel panic was debugged, related to ipv6 and force loading the prebuilt WLAN module.
This is now solved. Big thanks to @p50kombi for all the testing, perseverance and the willingness to debug this!
Because I need to use the stock CAF Wlan Driver source (HTC does not publish the source code for their WLAN driver) miracast functionality is now broken.
I´m not sure if I can do something about it, maybe in the proper Pie Kernel, once the source finally dropped.

As a surprise I hacked together a kernel based on the Oreo sources, that can boot and work almost without issues on PIE roms :)
So that means you should be able to use your favorite cleanslate features from @tbalden now on Pie too.
It´s sad to see no source code released for Pie yet, but at least we have this now.

The only issue for now, is that the dialog to choose the type of connection upon connection to a PC is not popping up automatically.
But you can set this in developer options easily.

Make sure to flash the proper module in magisk manager before flashing the kernel!

Latest upstream is included. More changes in the changelog and on github :)





have fun everyone!


Please report back how this kernel works for you! :)

Changelog:


- Linux-Stable Upstream updated to 4.9.184
- updates from kernel/common
- use our own wlan driver


Installation:
please take a look at the OP!
Magisk root is getting detected and automatically kept at install!
Works on bases 1.15, 1.21 , 1.25, 1.30 and 1.5x, 1.62, 1.68 and 2.45
Touchscreen patched to work for permanently flashed TWRP
Don´t forget to install the latest cleanslate-config apps! Maybe consider supporting @tbalden by purchasing his apps on playstore.
Works also on the full viper rom!

OREO:
Download:

Kernel:
https://www.androidfilehost.com/?fid=6006931924117925729
Module:
https://www.androidfilehost.com/?fid=6006931924117925730



PIE:
Download:

Kernel:
https://www.androidfilehost.com/?fid=6006931924117925733
Module:
https://www.androidfilehost.com/?fid=6006931924117925734



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

Have a nice day all and enjoy your phone :)
 
Last edited:

Jump1ng

Senior Member
Nov 23, 2011
589
189
UK
Nexus 7 (2013)
OnePlus 9 Pro
hello guys and girls,

So here is the next big update....

The only issue for now, is that the dialog to choose the type of connection upon connection to a PC is not popping up automatically.
But you can set this in developer options easily.

Just flashed the new kernel, and I got the pop up screen to select what I want to do when pluggin in the USB cable so not sure if it only is broken for some phones.

Hopefully we will get PIE in the rest of the world soon as my phone has started to acting a bit weird lately so hoping a new FW will fix that.
 

rfgamaral

Senior Member
Nov 19, 2009
884
134
Porto
@Freak07


I'm thinking of using this with a GSI ROM, do you see any possible incompatibility with that? Magisk doesn't work properly with GSI so I wasn't thinking of installing it, however, your latest big update gave me a feeling that Magisk is required to properly use this kernel. Is that a correct assumption on my part or does your kernel work fine if I don't install/flash Magisk? Should I go for the CleanSlate kernel instead if I'm using a GSI ROM?
 
Last edited:

bigAL99

Senior Member
Dec 9, 2007
166
29
Croydon
Installed this morning on Pie using ADB sideload and temp TWRP.

Only issue I have is that Viper won't load for luv nor money now which is a little annoying as i can't go back to stock kernel as yet. But keep up the great work.
Installed Viper a couple of different ways with AML module and finally all good.:good:
 
Last edited:

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,746
19,210
Installed this morning on Pie using ADB sideload and temp TWRP.

Only issue I have is that Viper won't load for luv nor money now which is a little annoying as i can't go back to stock kernel as yet. But keep up the great work.
Installed Viper a couple of different ways with AML module and finally all good.:good:
Latest kernel won’t work properly without magisk. wifi will be broken, as you need to flash the magisk module for the wifi driver.

I’m not familiar with GSIs and if they are rootable at all on the u12+. If root can be achieved and you’re a bit familiar with android you can extract the wifi module (.ko file) from the magisk module and replace the GSI wifi module :cowboy:

Should be in vendor/lib/modules, the same path the .ko file is in the module.
 
  • Like
Reactions: shivasrage

bigAL99

Senior Member
Dec 9, 2007
166
29
Croydon
Latest kernel won’t work properly without magisk. wifi will be broken, as you need to flash the magisk module for the wifi driver.

I’m not familiar with GSIs and if they are rootable at all on the u12+. If root can be achieved and you’re a bit familiar with android you can extract the wifi module (.ko file) from the magisk module and replace the GSI wifi module :cowboy:

Should be in vendor/lib/modules, the same path the .ko file is in the module.

Hi, the kernel installed without problem, I had magisk working and installed the module first as instructed and Wi-FI is working fine.

I have even got Viper working as well now after a few goes at installing it.

Only thing that is a little anoying is that I cannot get temp TWRP to load on my home PC but loads fine on my work PC. Very strange that is, I'm using same lead and have tried every usb port at home without luck. Out of desperation I tried on my work PC and it loads straight away. :confused:



many thanks for your work.
 

guidogsbn

Senior Member
Feb 7, 2010
1,712
1,178
68
Bonn, Germany
As there is no fitting twrp for pie on htc u12+ which version should I temporary flash to install the kernel ("3. Flash the kernel.zip in TWRP")?
I already installed the pie magisk module for wifi.
Does anybody have a link to stock kernel [2.55.401.1] to revert back to stock if necessary?
 

p50kombi

Senior Member
Dec 20, 2005
3,969
2,150
Samsung Galaxy Note 10+
As there is no fitting twrp for pie on htc u12+ which version should I temporary flash to install the kernel ("3. Flash the kernel.zip in TWRP")?
I already installed the pie magisk module for wifi.
Does anybody have a link to stock kernel [2.55.401.1] to revert back to stock if necessary?

you need to flash the module using magisk, then you can flash the kernel zip using exkm flasher (in ex kernel manager, go to tools, then press flasher and pick the zip)

there's a link in the leedroid thread to the stock boot ;)
 
  • Like
Reactions: guidogsbn

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,746
19,210
Update to 10.7.0

hello guys and girls,

Long time no update I know :) The update is only for Pie, see the previous release if you decide to stay on Oreo.
I was busy working on the kernel, but never go around to release the kernel.

So it is pretty much upstreamed to latest linux-stable (at least at the time of compilation) and has many fixes from kernel/common merged.

I added LDAC support along with adaptive bitrate and heavily updated the audio driver.

A huge thanks to @p50kombi for all the testing and keeping up with me. He encouraged me to look into the LDAC issue.
So thanks to him!


Pie Kernel issue:
The only issue for now, is that the dialog to choose the type of connection upon connection to a PC is not popping up automatically.
But you can set this in developer options easily.

Make sure to flash the proper module in magisk manager before flashing the kernel!

Latest upstream is included. More changes in the changelog and on github :)





have fun everyone!


Please report back how this kernel works for you! :)

Changelog:


- Linux-Stable Upstream updated from 4.9.184 to 4.9.201 :)
- updates from kernel/common
- heavily updated audio driver
- add adaptive bitrate to the audio driver and enable LDAC properly
- improve bluetooth driver
- improve EAS-Scheduler with latest CAF upstream patches
- more other changes check my github :)


Installation:
please take a look at the OP!
Magisk root is getting detected and automatically kept at install!
Works on Android Pie!
Touchscreen patched to work for permanently flashed TWRP
Don´t forget to install the latest cleanslate-config apps! Maybe consider supporting @tbalden by purchasing his apps on playstore.



PIE:
Download:

Kernel:
https://www.androidfilehost.com/?fid=4349826312261647827
Module:
https://www.androidfilehost.com/?fid=4349826312261647828



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

Have a nice day all and enjoy your phone :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    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-source/energy-aware-scheduling



    Main Features:
    - Based on latest kernel sources from HTC for the HTC U12+ (2.45)
    - Upstreamed to latest 4.9.246
    - CAF-Upstream merged
    - 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/divi...les-fuse-replacement-will-reduce-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/showpost.php?p=77002100&postcount=32
    0.5 https://forum.xda-developers.com/showpost.php?p=77092842&postcount=46
    1.0 https://forum.xda-developers.com/showpost.php?p=77131607&postcount=61
    1.1 https://forum.xda-developers.com/showpost.php?p=77187557&postcount=82
    1.3 https://forum.xda-developers.com/showpost.php?p=77228675&postcount=85
    1.4 https://forum.xda-developers.com/showpost.php?p=77234128&postcount=88
    1.7 https://forum.xda-developers.com/showpost.php?p=77255692&postcount=90
    2.0.3 https://forum.xda-developers.com/showpost.php?p=77515446&postcount=115
    2.1.1 https://forum.xda-developers.com/showpost.php?p=77585106&postcount=136
    2.2.0 https://forum.xda-developers.com/showpost.php?p=77663581&postcount=167
    2.2.3 https://forum.xda-developers.com/showpost.php?p=77757758&postcount=181
    2.3.4 https://forum.xda-developers.com/showpost.php?p=77856442&postcount=195
    3.0.2 https://forum.xda-developers.com/showpost.php?p=78204561&postcount=244
    4.1.1 https://forum.xda-developers.com/showpost.php?p=78315932&postcount=261
    5.0.0 https://forum.xda-developers.com/showpost.php?p=78767277&postcount=301
    5.2.1 https://forum.xda-developers.com/showpost.php?p=78856374&postcount=321
    7.0.0 https://forum.xda-developers.com/showpost.php?p=79353529&postcount=337
    9.1.0 https://forum.xda-developers.com/showpost.php?p=79696218&postcount=355
    10.0.0/1 https://forum.xda-developers.com/showpost.php?p=79973617&postcount=364

    Pie and forward (please not this release is a hacked base OREO-base to work on Android Pie):
    10.7.0 https://forum.xda-developers.com/showpost.php?p=81035393&postcount=378

    Pie:
    1.2.0_NEXT https://forum.xda-developers.com/showpost.php?p=84014357&postcount=388

    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/Kirisakura_Imagine/commits/master_bluecross_eas

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

    Version Information
    Status: Stable

    Created 2018-06-28
    Last Updated 2020-11-28
    14
    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!

    jfaflx.png


    13
    Update to 10.7.0

    hello guys and girls,

    Long time no update I know :) The update is only for Pie, see the previous release if you decide to stay on Oreo.
    I was busy working on the kernel, but never go around to release the kernel.

    So it is pretty much upstreamed to latest linux-stable (at least at the time of compilation) and has many fixes from kernel/common merged.

    I added LDAC support along with adaptive bitrate and heavily updated the audio driver.

    A huge thanks to @p50kombi for all the testing and keeping up with me. He encouraged me to look into the LDAC issue.
    So thanks to him!


    Pie Kernel issue:
    The only issue for now, is that the dialog to choose the type of connection upon connection to a PC is not popping up automatically.
    But you can set this in developer options easily.

    Make sure to flash the proper module in magisk manager before flashing the kernel!

    Latest upstream is included. More changes in the changelog and on github :)





    have fun everyone!


    Please report back how this kernel works for you! :)

    Changelog:


    - Linux-Stable Upstream updated from 4.9.184 to 4.9.201 :)
    - updates from kernel/common
    - heavily updated audio driver
    - add adaptive bitrate to the audio driver and enable LDAC properly
    - improve bluetooth driver
    - improve EAS-Scheduler with latest CAF upstream patches
    - more other changes check my github :)


    Installation:
    please take a look at the OP!
    Magisk root is getting detected and automatically kept at install!
    Works on Android Pie!
    Touchscreen patched to work for permanently flashed TWRP
    Don´t forget to install the latest cleanslate-config apps! Maybe consider supporting @tbalden by purchasing his apps on playstore.



    PIE:
    Download:

    Kernel:
    https://www.androidfilehost.com/?fid=4349826312261647827
    Module:
    https://www.androidfilehost.com/?fid=4349826312261647828



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

    Have a nice day all and enjoy your phone :)
    12
    hello guys and girls,

    so finally here it is! This kernel has the Pixel 3 smoothness in it as good as it currently gets :) There are many other features included that further help with performance!
    Please enjoy! This was tested extensively again to make sure it´s stable :)


    have fun everyone!


    Changelog:

    Linux Stable:
    - Upstream to 4.9.142

    CAF-Updates
    - merge latest CAF tag
    - updates to camera driver
    - patched up soc driver
    - net changes
    - patches to ufs storage driver

    Other patches
    - Fully Ported Pixel 3 Kernel-Side EAS Integration

    - Mimic rom side pixel EAS integration with various kernel boosts/features!

    - Patch up EAS to latest CAF state/ the same as on my pixel 3 kernel

    - Fix memory leak in EAS

    - Close proc gate vulnerability (install the app on the link and hit check, no need to apply the fix as it´s fixed kernel side!)

    - Add hold functionality to schedtune boost
    The best explanation on this one is found in the commit description itself.
    It basically ensures that tasks that need to be boosted stay boosted. Before it accidentally could happens that some RT (Real Time) tasks get deboosted before they are finished, which could lead to the case that the CPU frequency could not be raised again when it needed to be raised in order to ensure the task gets completed as fast as possible.
    I enabled this boost for all task classes not only RT tasks. It did not have a negative impact on battery life at all. In some situations the phone feels even more snappy. Please test that for yourself!

    - Introduce Speculative Page faults
    This was added to the SD845 kernel Base also by CAF. You can read more about it here.
    As can be seen on this page a CAF developer tested it on the 4.9 kernel (which the HTC U12+ also uses) and reported
    Code:
    "We ported the SPF (Speculative Page Faults") to kernel 4.9 in android devices.
    For the app launch time, It improves about 15% average. For the apps
    which have hundreds of threads, it will be about 20%.
    Thanks."
    The above response in quotes can be read here.
    I´m not sure if the difference is really 15% but it´s app dependant for sure!


    Please report back how this kernel works for you! :)




    Installation:
    please take a look at the OP!
    Magisk root is getting detected and automatically kept at install!
    Works on bases 1.15, 1.21 , 1.25 and also 1.30
    Touchscreen patched to work for permanently flashed TWRP
    Don´t forget to install the latest cleanslate-config apps!
    Works also on the full viper rom!

    Download:
    https://www.androidfilehost.com/?fid=11410963190603864202


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

    Have a nice day all and enjoy your phone :)
    12
    hello guys and girls,

    Here´s the big update.
    This release provides many improvements.
    Further update EAS implementation to mimic my pixel 3 xl kernel. Thereby improve efficiency of the Scheduler itself, update schedutil, use only cgroups instead of autogroups.
    Enhance GPU profiling to make user experience even smoother.
    Disable auditing to make the kernel a bit lighter.
    Improve Deep sleep by allowing to enforce the deepest idle state selection
    Add sound control to tune microphone gain
    Tune various boosts to EAS to greatly enhance user experience, smoothness and especially reduce app opening times!
    Linux-stable upstream updated from 4.9.142 to 4.9.152
    Include exfat no fuse driver. This allows to use external micro sdcards which are formatted as exfat to be used when a GSI Rom is used!


    have fun everyone!


    Please report back how this kernel works for you! :)




    Installation:
    please take a look at the OP!
    Magisk root is getting detected and automatically kept at install!
    Works on bases 1.15, 1.21 , 1.25 and also 1.30
    Touchscreen patched to work for permanently flashed TWRP
    Don´t forget to install the latest cleanslate-config apps!
    Works also on the full viper rom!

    Download:
    https://www.androidfilehost.com/?fid=11410963190603908838


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

    Have a nice day all and enjoy your phone :)