[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Kirisakura-Kernel for the Pixel 3 and Pixel 3 XL

Hello everyone,

To keep it short: Here is Kirisakura - Kernel for the Pixel 3 aka Blueline and the Pixel 3 XL aka Crosshatch, together Bluecross.

I would appreciate if everybody that flashes the kernel, reads at least once through this opening post and the following ones.

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 project aims to keep most of the subsystems updated, way ahead of the stock kernel, thereby improving security and performance, while keeping stability as the focus during testing! This includes Linux-Stable, CAF-Upstream and kernel/common.

If reading about upstream in the paragraph above got you curious,have a read about Linux-Stable and why it is important here. The stable-process is not the same for every subsystem, but the general idea, rule of thumb and benefits are applicable for other subsystems as well.

Quick explanation of CAF-Upstream. CAF is short for Codeaurora-Forums. This is the place where development from Qualcomm for their SoCs happens. This includes the Snapdragon 845 that´s built into Pixel 3 and Pixel 3 XL.

The kernel-bases available on the Codeaurora-Forums, are basically the foundations OEMs use, to build their own kernel additions on top for devices featuring Qualcomm SoCs.

The Qualcomm developers push regular updates to the bases of the different SoCs, a bit similar to how Linux-Upstream works. OEMs usually stop updating the initial base after the phone is released.

This kernel focuses amongst the other features to provide the latest CAF-Updates merged in a regular manner, to provide updates, improvements and enhancements for SoC specific drivers and subsystems! This might take a while, because a lot of device specific testing is done on my end to ensure stability.

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-source/energy-aware-scheduling

Main Features:

- Based on latest kernel sources from Google, Kernel is made for Android 12 (Android S)!

- Linux-Stable-Upstream included to latest 4.9.317

- compiled with prebuilt Clang 13.0.1 from Google and built with -O3 optimizations

- ZRAM patched up to latest kernel/common state and use ZSTD LZ4 as default compression algorithm to improve memory managment (more info see this post regarding the earlier switch to ZSTD) and this post regarding the switch back to LZ4

- fixes the magisk freezes caused by f2fs-stable

- Safety Net patches are included -> Kernel passes Safety Net

- Wake Gestures from @flar2 included

- Flashing the kernel will keep root!

- Tested to work on custom ROMs

- Flashable via EXKM and FKM on a rooted system!

- AnyKernel3 powered by @osm0sis (big thanks!)

EAS related features:

- EAS implementation patched up to latest CAF state

- Schedutil is patched up with kernel/common and CAF patches to improve performance and efficiency!

- Memory Leaks inside EAS are fixed

- disable autogroups and use cgroups for more efficient task placement!

- Enable sched_min_task_util_for_boost_colocation feature from CAF

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 (WLAN, MM, audio, charger, power, thermal, glink etc) to user power efficient workingqueues. This should work well in conjunction with EAS

- improved Schedutil governor

- Add hold functionality to schedtune CPU boost

- WQ_HIGHPRI for the IO and crypt workqueues (replaces googles approach with a better upstream one)

- cpufreq/times vastly improved

File System related features:

- Include rapid GC by @arter97 ( best thing is to read the commit description linked here. I compared GC on stock google f2fs, upstreamed f2fs and f2fs with rapid GC. Rapid GC is the most effective, followed by upstreamed f2fs.)

- 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. )

Usability related features:

- High Brightness Mode for increasing backlight level related to brightness accessible via EXKM app

- High Brightness Mode for just boosting display to max level accessible via EXKM app

- Vibration Intensity adjustable via EXKM app

- Backlight dimmer functionality included (adjustable via EXKM App)

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)

- Enabled NAP power saving state of Adreno 630

- improve GPU profiling for improved rendering performance (1,2 , 3 )

- Update GPU driver to latest CAF state

Network related features:

- Wireguard Support (Details)

Memory related features:

- Enable Userspace LMK/freak07/Kirisakura_bluecross/commit/aac453635549699c13a84ea1456d5b0e574ef855"]2[/URL])

- Patch up kernel LMK backend (PSI) with kernel common upstream

- ZRAM patched up to latest kernel/common state and ZSTD LZ4 as default algorithm. (information can be found in this post regarding the switch to ZSTD, which is now reverted) and this post regarding the switch back to LZ4

- possibility to use lzo-rle as default ZRAM compression algorithm (more information here and there )

- possibility to use zstd as default ZRAM compression algorithm!

- Speculative Page Faults (1. 2)

- Fix various memory leaks in different subsystems

- Reap memory of a task that receives sigkill

- various other changes from mainline

Sound related features:

- Adjust microphone gain via sound control in EXKM

- Adjust speaker gain via sound control in EXKM

Security related features:

- CFI and LTO both kept intact and are used to keep additional security Google implemented for us!

- Shadow Call Stack

- built with latest clang found on google repo

Misc Features:

IO-Schedulers:

- cfq

- maple

- deadline

- noop

- tripndroid

- fiops

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)

- please read this for further info

Other features:

- enable some additional Sony and XBox controllers

- add support for steam and nintendo switch controller

- patches to loop device, xfrm and usb gagdet

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

- add support so you can enable faster charging for non pixel wireless charging stands (use at your own risk, disabled by default, how to enable here)

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

How to flash the Kernel:

1. Download the kernel.zip to your device. Make sure your device is rooted properly, with the magisk version suiting your current firmware version.

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

2. Flash the kernel.zip via either a kernel manager app capable of flashing kernels or TWRP if available. Make sure whatever method/app you decide to use, supports your current Android Firmware. Apps/Recoveries need to be possibly updated for firmware updates!

It´s your job to ensure compatability.

Flashing the kernel will preserve root.

3. Reboot and profit! Before reporting any issues make sure to read the Release-Post of Bluecross_Q_Release_1.0.0!

DOWNLOAD:

Download is located in these respective folders:

Android 9:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

Android 10/11:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

Android 12:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

Important: Read after Download

Please take a look at the second post after flashing the kernel!

Changelog:

Android 9 / Pie Kernels

1.0.0 Initial Release

1.5.0 https://xdaforums.com/showpost.php?p=78151322&postcount=81

1.5.1 https://xdaforums.com/showpost.php?p=78154423&postcount=112

1.7.0 https://xdaforums.com/showpost.php?p=78196945&postcount=190

1.7.1 https://xdaforums.com/showpost.php?p=78220526&postcount=227

1.7.2 https://xdaforums.com/showpost.php?p=78221906&postcount=228

1.8.0 https://xdaforums.com/showpost.php?p=78249473&postcount=267

1.8.1 https://xdaforums.com/showpost.php?p=78280355&postcount=285

1.8.2 https://xdaforums.com/showpost.php?p=78316038&postcount=345

1.8.3 https://xdaforums.com/showpost.php?p=78330435&postcount=389

1.8.4 https://xdaforums.com/showpost.php?p=78364541&postcount=451

1.8.5 https://xdaforums.com/showpost.php?p=78377334&postcount=481

1.8.6 https://xdaforums.com/showpost.php?p=78396058&postcount=538

1.8.7 https://xdaforums.com/showpost.php?p=78420137&postcount=591

1.8.8 https://xdaforums.com/showpost.php?p=78449511&postcount=621

1.8.9 https://xdaforums.com/showpost.php?p=78496196&postcount=654

1.9.0 https://xdaforums.com/showpost.php?p=78564181&postcount=701

1.9.1 https://xdaforums.com/showpost.php?p=78637123&postcount=758

1.9.2 https://xdaforums.com/showpost.php?p=78672005&postcount=775

Milestone 2.0.0 https://xdaforums.com/showpost.php?p=78689028&postcount=782

2.0.2 https://xdaforums.com/showpost.php?p=78761004&postcount=853

2.0.3 https://xdaforums.com/showpost.php?p=78767857&postcount=867

2.0.4 https://xdaforums.com/showpost.php?p=78805387&postcount=896

2.0.5 https://xdaforums.com/showpost.php?p=78838240&postcount=928

2.0.6 https://xdaforums.com/showpost.php?p=78840488&postcount=936

2.0.7 https://xdaforums.com/showpost.php?p=78851682&postcount=953

2.0.8 https://xdaforums.com/showpost.php?p=78898745&postcount=981

2.0.9 https://xdaforums.com/showpost.php?p=78913421&postcount=991

2.0.10 https://xdaforums.com/showpost.php?p=78950068&postcount=1007

2.0.11 https://xdaforums.com/showpost.php?p=78975193&postcount=1025

2.0.12 https://xdaforums.com/showpost.php?p=79009799&postcount=1041

2.0.13 https://xdaforums.com/showpost.php?p=79043694&postcount=1067

2.0.14 https://xdaforums.com/showpost.php?p=79050238&postcount=1103

2.1.0 https://xdaforums.com/showpost.php?p=79136483&postcount=1182

2.1.1 https://xdaforums.com/showpost.php?p=79159209&postcount=1221

2.1.2 https://xdaforums.com/showpost.php?p=79190516&postcount=1261

2.1.3 https://xdaforums.com/showpost.php?p=79214430&postcount=1279

2.2.0 https://xdaforums.com/showpost.php?p=79291045&postcount=1372

2.2.1 https://xdaforums.com/showpost.php?p=79332619&postcount=1452

2.2.2 https://xdaforums.com/showpost.php?p=79425173&postcount=1531

2.3.0 https://xdaforums.com/showpost.php?p=79463560&postcount=1569

2.4.0 + 2.4.1 https://xdaforums.com/showpost.php?p=79505198&postcount=1623

3.0.0 https://xdaforums.com/showpost.php?p=79533358&postcount=1641

3.1.0 https://xdaforums.com/showpost.php?p=79570912&postcount=1685

3.1.1 https://xdaforums.com/showpost.php?p=79575209&postcount=1698

3.1.2 https://xdaforums.com/showpost.php?p=79578541&postcount=1722

3.1.3 https://xdaforums.com/showpost.php?p=79612212&postcount=1743

3.2.0 https://xdaforums.com/showpost.php?p=79658098&postcount=1774

3.3.0 https://xdaforums.com/showpost.php?p=79696166&postcount=1807

3.3.1 https://xdaforums.com/showpost.php?p=79736674&postcount=1829

3.3.4 https://xdaforums.com/showpost.php?p=79791144&postcount=1857

3.4.0 https://xdaforums.com/showpost.php?p=79919877&postcount=1929

3.4.5 https://xdaforums.com/showpost.php?p=80023518&postcount=2064

Legacy Downloads for Pie Kernels: https://www.androidfilehost.com/?w=files&flid=285183

Android 10/ Q Kernels

1.0.0 https://xdaforums.com/showpost.php?p=80269185&postcount=2132

1.1.3 https://xdaforums.com/showpost.php?p=80324259&postcount=2199

1.2.0 https://xdaforums.com/showpost.php?p=80533347&postcount=2291

1.2.2 https://xdaforums.com/showpost.php?p=80809357&postcount=2325

1.3.0 https://xdaforums.com/showpost.php?p=81115229&postcount=2451

1.4.0 https://xdaforums.com/showpost.php?p=81418351&postcount=2519

1.4.1 https://xdaforums.com/showpost.php?p=81421719&postcount=2529

1.5.0 https://xdaforums.com/showpost.php?p=81684289&postcount=2582

1.5.1 https://xdaforums.com/showpost.php?p=81947785&postcount=2607

1.5.2 https://xdaforums.com/showpost.php?p=82213193&postcount=2635

1.5.3 https://xdaforums.com/showpost.php?p=82484463&postcount=2642

1.5.4 https://xdaforums.com/showpost.php?p=82742517&postcount=2688

1.5.5 https://xdaforums.com/t/kernel-05-0...ixel-3-xl-aka-bluecross.3864563/post-84424203

Android 11

2.0.0_R https://xdaforums.com/showpost.php?p=83554503&postcount=2753

2.1.0_R https://xdaforums.com/showpost.php?p=83649655&postcount=2808

3.0.2_R https://xdaforums.com/showpost.php?p=84007163&postcount=2906

3.0.4_R https://xdaforums.com/t/kernel-05-1...ixel-3-xl-aka-bluecross.3864563/post-84230135

3.0.5_R https://xdaforums.com/t/kernel-05-0...ixel-3-xl-aka-bluecross.3864563/post-84605183

3.0.6_R https://xdaforums.com/t/kernel-10-0...ixel-3-xl-aka-bluecross.3864563/post-84812093

3.0.7_R https://xdaforums.com/t/kernel-10-0...ixel-3-xl-aka-bluecross.3864563/post-84975703

3.0.8_R https://xdaforums.com/t/kernel-08-0...ixel-3-xl-aka-bluecross.3864563/post-85166867

3.0.9_R https://xdaforums.com/t/kernel-11-0...ixel-3-xl-aka-bluecross.3864563/post-85298651

3.1.0_R https://xdaforums.com/t/kernel-08-0...ixel-3-xl-aka-bluecross.3864563/post-85432093

Android 12

4.0.0_S https://xdaforums.com/t/kernel-05-0...ixel-3-xl-aka-bluecross.3864563/post-85808391

4.1.0_S https://xdaforums.com/t/kernel-21-1...ixel-3-xl-aka-bluecross.3864563/post-86249089

5.0.0_S https://xdaforums.com/t/kernel-13-0...ixel-3-xl-aka-bluecross.3864563/post-86413291

5.1.0_S https://xdaforums.com/t/kernel-12-0...ixel-3-xl-aka-bluecross.3864563/post-86541411

5.1.1_S https://xdaforums.com/t/kernel-08-0...ixel-3-xl-aka-bluecross.3864563/post-87007931

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 ak3 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!

@topjohnwu for magisk!

@Sultanxda for all of his work!

Contributors

Freak07

Source Code: https://github.com/freak07/Kirisakura_bluecross/