[Kernel][06.10.2022][4.14.299][A12][A13] Kirisakura 9.1.0 for Pixel 4/XL aka FLORAL

Search This thread

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,894
20,118
Update 9.0.0

Hey guys and girls,

Here´s the next update. It includes source merged for stable A13, which is the same as for the last A13 beta.
There are actually a few surprises in the latest A13 source. Google backported f2fs reader-unfair rwsems to 4.14, this was on my to-do list as well, but now I don´t need to spend the time to get this in. This gives f2fs quite a performance boost.
Google merged some CAF fixes/improvements as well.

Getting linux-stable to 4.14.290 was quite a journey. Several commits broke boot or caused other issues. It was not as straightforward as I would have liked. But now we´re back on track on latest again.

I´ll include some info from the previous month in hide tags here as well in case somebody missed it.
In case a user decides not to use the CleanSlate apps, parsing for config files will stop.

Support for TTL spoofing was added as requested earlier. In case you want to make use of this feature you need to insmod the kernel drivers, otherwise the drivers built as modules will do nothing as was also requested.

You can load the modules via a rooted shell:

Code:
insmod /vendor/lib/modules/xt_HL.ko
insmod /vendor/lib/modules/xt_HMARK.ko

check if they´re being loaded with

Code:
lsmod

Make sure to update the CleanSlate configs apps to the latest ones found on the CleanSlate thread here or the beta version in playstore in case you purchased them earlier.

I wish everybody a great day.
Enjoy the device and the kernel, because I certainly do :)

Before troubleshooting and reporting any issues make sure to not use any additional mods, scripts or tweaks. This includes all mods and magisk modules, even the tiniest modification you did.

big thanks to all my testers again:

@Mrcactuseater
@MArtyChubbs @ilal2ielli
@toastyp @Alcolawl
@i5lee8bit


Detailed changelog below.


Changelog:

- Android 13 source merged
- Linux-Stable 4.14.290
- updated anykernel3.zip thanks to @osm0sis
- other changes can be found on github

Magisk Module:
- After flashing the kernel, you will see a module called AK3 Helper Module in Magisk Manager. This will fine tune the power-hal. Do not delete it!


Have fun flashing and enjoy your device with latest linux-stable :)

Why is linux-stable beneficial?

I wish you all a nice day/evening!


Download is below :)

Download:


Kernel:
https://androidfilehost.com/?w=files&flid=301179



How to flash the Kernel:

1. Make sure you are rooted, are using the latest magisk suited for your OS version and a kernel manager capable of flashing a zip is installed. If available you'll can use TWRP as well. Download the kernel.zip to your device.
1a. If you used the SQLITE3 Magisk Module and the GPay Fix Magisk Module in the past (prior to 2.0.0) look at this post: click me

2. Flash kernel zip in via your favorite method. Kernel Managers and Recoveries need to be updated to work with a specific Android Version. It's your job to ensure compatibility! :) Root will be preserved! (Make sure to be on the latest firmware the kernel is made for)

3. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!
Instructions can be found in the OP too!


Have fun, enjoy the kernel and your phone.


If you like my work please consider a donation.
Donations are not mandatory but very welcome.
If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
 

YKS_Gaming

Member
Aug 31, 2018
17
7
patience is a virtue :) but don´t worry, it won´t be long for the update.

I´m afraid that´s either impossible or way beyond my skill on the kernel level alone without any form of documentation or similar. (comparing p6 pro driver to the alleged p7 pro driver) The displays from pixel 4 pro and pixel share basically nothing. Would also require support from the firmware side of things, which puts it out of the scope of a kernel mod.
Ah I see, I was looking forward to that function. I've tried reducing resolution some time ago through windows manager commands but that messes up the rounded corners. Either way keep up the good work!
 
  • Like
Reactions: Freak07

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,894
20,118
Ah I see, I was looking forward to that function. I've tried reducing resolution some time ago through windows manager commands but that messes up the rounded corners. Either way keep up the good work!
Yeah, window manager is the only option you have. That´ll at least render the content at lower resolution.

hmm, it might be possible to adjust the corner radius. I´m not sure if that´s possible on a running device, but it should be possible via the overlays. Maybe there´s a prop command for it, but you have to dig through the source for that.

I´m no rom expert, but it´s defined here:

If should end up in the overlays on product/overlay/, either systemui or framework.

Similar to how this mod is done:
you should be able to adjust the corner radius, so it fits your needs.
 

andrew.kosiak

New member
Dec 23, 2012
4
0
Thank for your work. BUT ... tried twice and failed both times. Pixel4 Android 13 beta4.1 rooted with last Magisk canary 25201. Before flashing, I disabled all Magisk modules and even returned the original host file :) There are no other modifications in my system. After reboot, I tried to flash it in two ways, with FKM (result - bootloop) and with flasher form Pixel6 topics (stuck on google logo) and as I wrote both times it was unsuccessful. Here are the logs, and I really hope that it helps to understanding the problem and you will fix it.

sorry I do not understand how to make an attachment :(
make it like spoiler

WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"

Archive: /data/data/com.franco.kernel/files/KirisakuraFLORAL900.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
creating: modules/
inflating: modules/service.sh
creating: modules/system/
creating: modules/system/vendor/
creating: modules/system/vendor/etc/
inflating: modules/system/vendor/etc/powerhint.json
inflating: modules/system/vendor/etc/fstab.sm8150
creating: modules/system/vendor/lib/
creating: modules/system/vendor/lib/modules/
inflating: modules/system/vendor/lib/modules/xt_HL.ko
inflating: modules/system/vendor/lib/modules/xt_HMARK.ko
creating: ramdisk/
creating: ramdisk/overlay.d/
inflating: ramdisk/overlay.d/init.kirisakura.rc
creating: ramdisk/overlay.d/sbin/
inflating: ramdisk/overlay.d/sbin/init.kirisakura.sh
creating: tools/
inflating: tools/ak3-core.sh
inflating: tools/busybox
inflating: tools/fec
inflating: tools/httools_static
inflating: tools/lptools_static
inflating: tools/magiskboot
inflating: tools/magiskpolicy
inflating: anykernel.sh
inflating: banner
inflating: dtb
inflating: dtbo.img
inflating: Image.lz4
inflating: LICENSE
inflating: README.md
inflating: version
_ ___ _ _
| |/ (_)_ __(_)___ __ _| | ___ _ _ __ __ _
| ' /| | '__| / __|/ _' | |/ / | | | '__/ _' |
| . \| | | | \__ \ (_| | <| |_| | | | (_| |
|_|\_\_|_| |_|___/\__,_|_|\_|\__,_|_| \__,_|

_ __ _
| |/ /___ _ __ _ __ ___| |
| ' // _ \ '__| '_ \ / _ \ |
| . \ __/ | | | | | __/ |
|_|\_\___|_| |_| |_|\___|_|



Kirisakura-Kernel by Freak07 @ xda-developers

Version: 4.14.290-Kirisakura-FLORAL-9.0.0_NEXTGEN_CAF


AnyKernel3 by osm0sis @ xda-developers

AK_BASE_VERSION=20220608

Checking device...
flame

Checking Android version...
13

Checking Android security patch level...
2022-07-05

Installing...
/dev/block/bootdevice/by-name/boot_a
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.115419 seconds, 554.5MB/s
Parsing boot image: [/tmp/anykernel/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
69311 blocks
ash: -f: unknown operand
Loading cpio: [ramdisk-new.cpio]
Loading cpio: [ramdisk-new.cpio]
Extract [.backup/.magisk] to [/tmp/anykernel/split_img/.magisk]

Magisk detected! Patching kernel so reflashing Magisk is not necessary...
Patch @ 028ABF8E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
Loading dtbs from [dtb]
Parsing boot image: [/tmp/anykernel/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [/tmp/anykernel/boot-new.img]
HEADER_VER [2]
KERNEL_SZ [28435783]
RAMDISK_SZ [17135253]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1405991]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [47210503b88ba36cf6a3ef59b88e3383eb1e0eef000000000000000000000000]

/dev/block/bootdevice/by-name/dtbo

Creating kernel helper Magisk module...


Done!

Archive: /data/user/0/com.github.capntrips.kernelflasher/files/Kirisakura-FLORAL_9.0.0.zip
inflating: modules/system/vendor/lib/modules/xt_HMARK.ko
inflating: modules/service.sh
inflating: tools/fec
inflating: tools/httools_static
inflating: modules/system/vendor/etc/powerhint.json
inflating: dtb
inflating: META-INF/com/google/android/updater-script
inflating: META-INF/com/google/android/update-binary
inflating: LICENSE
inflating: modules/system/vendor/lib/modules/xt_HL.ko
inflating: README.md
inflating: modules/system/vendor/etc/fstab.sm8150
inflating: tools/magiskpolicy
inflating: tools/ak3-core.sh
inflating: ramdisk/overlay.d/sbin/init.kirisakura.sh
inflating: ramdisk/overlay.d/init.kirisakura.rc
inflating: tools/magiskboot
inflating: anykernel.sh
inflating: version
inflating: tools/busybox
inflating: tools/lptools_static
inflating: banner
inflating: dtbo.img
inflating: Image.lz4
_ ___ _ _
| |/ (_)_ __(_)___ __ _| | ___ _ _ __ __ _
| ' /| | '__| / __|/ _' | |/ / | | | '__/ _' |
| . \| | | | \__ \ (_| | <| |_| | | | (_| |
|_|\_\_|_| |_|___/\__,_|_|\_|\__,_|_| \__,_|

_ __ _
| |/ /___ _ __ _ __ ___| |
| ' // _ \ '__| '_ \ / _ \ |
| . \ __/ | | | | | __/ |
|_|\_\___|_| |_| |_|\___|_|



Kirisakura-Kernel by Freak07 @ xda-developers

Version: 4.14.290-Kirisakura-FLORAL-9.0.0_NEXTGEN_CAF


AnyKernel3 by osm0sis @ xda-developers

AK_BASE_VERSION=20220608

Checking device...
flame

Checking Android version...
13

Checking Android security patch level...
2022-07-05

Installing...
/dev/block/bootdevice/by-name/boot_a
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.186898 seconds, 342.4MB/s
Parsing boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
69311 blocks
ash: -f: unknown operand
Loading cpio: [ramdisk-new.cpio]
bad cpio header
Loading cpio: [ramdisk-new.cpio]
bad cpio header

Magisk detected! Patching kernel so reflashing Magisk is not necessary...
Patch @ 028ABF8E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
Loading cpio: [ramdisk.cpio]
bad cpio header
cat: can't open '.magisk': No such file or directory
export AKHOME='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
export ANDROID_ART_ROOT='/apex/com.android.art'
export ANDROID_ASSETS='/system/app'
export ANDROID_BOOTLOGO='1'
export ANDROID_DATA='/data'
export ANDROID_I18N_ROOT='/apex/com.android.i18n'
export ANDROID_ROOT='/system'
export ANDROID_SOCKET_usap_pool_primary='22'
export ANDROID_SOCKET_zygote='21'
export ANDROID_STORAGE='/storage'
export ANDROID_TZDATA_ROOT='/apex/com.android.tzdata'
export ASEC_MOUNTPOINT='/mnt/asec'
export BOOTCLASSPATH='/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar:/apex/com.android.adservices/javalib/framework-adservices.jar:/apex/com.android.adservices/javalib/framework-sdksandbox.jar:/apex/com.android.appsearch/javalib/framework-appsearch.jar:/apex/com.android.btservices/javalib/framework-bluetooth.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.ondevicepersonalization/javalib/framework-ondevicepersonalization.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.permission/javalib/framework-permission-s.jar:/apex/com.android.scheduling/javalib/framework-scheduling.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.tethering/javalib/framework-connectivity.jar:/apex/com.android.tethering/javalib/framework-connectivity-t.jar:/apex/com.android.tethering/javalib/framework-tethering.jar:/apex/com.android.uwb/javalib/framework-uwb.jar:/apex/com.android.wifi/javalib/framework-wifi.jar'
export DEX2OATBOOTCLASSPATH='/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar'
export DOWNLOAD_CACHE='/data/cache'
export EXTERNAL_STORAGE='/sdcard'
export HOME='/'
export LOGNAME='root'
export OLDPWD='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
export PATH='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/bin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin'
export PWD='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/split_img'
export SHELL='/system/bin/sh'
export SHLVL='1'
export STANDALONE_SYSTEMSERVER_JARS='/apex/com.android.btservices/javalib/service-bluetooth.jar:/apex/com.android.os.statsd/javalib/service-statsd.jar:/apex/com.android.scheduling/javalib/service-scheduling.jar:/apex/com.android.tethering/javalib/service-connectivity.jar:/apex/com.android.uwb/javalib/service-uwb.jar:/apex/com.android.wifi/javalib/service-wifi.jar'
export SYSTEMSERVERCLASSPATH='/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/apex/com.android.adservices/javalib/service-adservices.jar:/apex/com.android.adservices/javalib/service-sdksandbox.jar:/apex/com.android.appsearch/javalib/service-appsearch.jar:/apex/com.android.art/javalib/service-art.jar:/apex/com.android.media/javalib/service-media-s.jar:/apex/com.android.permission/javalib/service-permission.jar'
export TMPDIR='/data/user/0/com.github.capntrips.kernelflasher/cache'
export USER='root'
export _='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/tools/busybox'
export home='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
Loading dtbs from [dtb]
Remove pattern [,avb]
Remove pattern [,avb]
Parsing boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot-new.img]
HEADER_VER [2]
KERNEL_SZ [28435783]
RAMDISK_SZ [17136915]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1405991]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [9a9b0af2d2110fcdbdcc474bc29d38bde2922aa5000000000000000000000000]

/dev/block/bootdevice/by-name/dtbo_a

Creating kernel helper Magisk module...
Magisk installation not found. Skipped!


Done!
 
Last edited:

YKS_Gaming

Member
Aug 31, 2018
17
7
Thank for your work. BUT ... tried twice and failed both times. Pixel4 Android 13 beta4.1 rooted with last Magisk canary 25201. Before flashing, I disabled all Magisk modules and even returned the original host file :) There are no other modifications in my system. After reboot, I tried to flash it in two ways, with FKM (result - bootloop) and with flasher form Pixel6 topics (stuck on google logo) and as I wrote both times it was unsuccessful. Here are the logs, and I really hope that it helps to understanding the problem and you will fix it.

sorry I do not understand how to make an attachment :(
make it like spoiler

WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"

Archive: /data/data/com.franco.kernel/files/KirisakuraFLORAL900.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
creating: modules/
inflating: modules/service.sh
creating: modules/system/
creating: modules/system/vendor/
creating: modules/system/vendor/etc/
inflating: modules/system/vendor/etc/powerhint.json
inflating: modules/system/vendor/etc/fstab.sm8150
creating: modules/system/vendor/lib/
creating: modules/system/vendor/lib/modules/
inflating: modules/system/vendor/lib/modules/xt_HL.ko
inflating: modules/system/vendor/lib/modules/xt_HMARK.ko
creating: ramdisk/
creating: ramdisk/overlay.d/
inflating: ramdisk/overlay.d/init.kirisakura.rc
creating: ramdisk/overlay.d/sbin/
inflating: ramdisk/overlay.d/sbin/init.kirisakura.sh
creating: tools/
inflating: tools/ak3-core.sh
inflating: tools/busybox
inflating: tools/fec
inflating: tools/httools_static
inflating: tools/lptools_static
inflating: tools/magiskboot
inflating: tools/magiskpolicy
inflating: anykernel.sh
inflating: banner
inflating: dtb
inflating: dtbo.img
inflating: Image.lz4
inflating: LICENSE
inflating: README.md
inflating: version
_ ___ _ _
| |/ (_)_ __(_)___ __ _| | ___ _ _ __ __ _
| ' /| | '__| / __|/ _' | |/ / | | | '__/ _' |
| . \| | | | \__ \ (_| | <| |_| | | | (_| |
|_|\_\_|_| |_|___/\__,_|_|\_|\__,_|_| \__,_|

_ __ _
| |/ /___ _ __ _ __ ___| |
| ' // _ \ '__| '_ \ / _ \ |
| . \ __/ | | | | | __/ |
|_|\_\___|_| |_| |_|\___|_|



Kirisakura-Kernel by Freak07 @ xda-developers

Version: 4.14.290-Kirisakura-FLORAL-9.0.0_NEXTGEN_CAF


AnyKernel3 by osm0sis @ xda-developers

AK_BASE_VERSION=20220608

Checking device...
flame

Checking Android version...
13

Checking Android security patch level...
2022-07-05

Installing...
/dev/block/bootdevice/by-name/boot_a
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.115419 seconds, 554.5MB/s
Parsing boot image: [/tmp/anykernel/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
69311 blocks
ash: -f: unknown operand
Loading cpio: [ramdisk-new.cpio]
Loading cpio: [ramdisk-new.cpio]
Extract [.backup/.magisk] to [/tmp/anykernel/split_img/.magisk]

Magisk detected! Patching kernel so reflashing Magisk is not necessary...
Patch @ 028ABF8E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
Loading dtbs from [dtb]
Parsing boot image: [/tmp/anykernel/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [/tmp/anykernel/boot-new.img]
HEADER_VER [2]
KERNEL_SZ [28435783]
RAMDISK_SZ [17135253]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1405991]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [47210503b88ba36cf6a3ef59b88e3383eb1e0eef000000000000000000000000]

/dev/block/bootdevice/by-name/dtbo

Creating kernel helper Magisk module...


Done!

Archive: /data/user/0/com.github.capntrips.kernelflasher/files/Kirisakura-FLORAL_9.0.0.zip
inflating: modules/system/vendor/lib/modules/xt_HMARK.ko
inflating: modules/service.sh
inflating: tools/fec
inflating: tools/httools_static
inflating: modules/system/vendor/etc/powerhint.json
inflating: dtb
inflating: META-INF/com/google/android/updater-script
inflating: META-INF/com/google/android/update-binary
inflating: LICENSE
inflating: modules/system/vendor/lib/modules/xt_HL.ko
inflating: README.md
inflating: modules/system/vendor/etc/fstab.sm8150
inflating: tools/magiskpolicy
inflating: tools/ak3-core.sh
inflating: ramdisk/overlay.d/sbin/init.kirisakura.sh
inflating: ramdisk/overlay.d/init.kirisakura.rc
inflating: tools/magiskboot
inflating: anykernel.sh
inflating: version
inflating: tools/busybox
inflating: tools/lptools_static
inflating: banner
inflating: dtbo.img
inflating: Image.lz4
_ ___ _ _
| |/ (_)_ __(_)___ __ _| | ___ _ _ __ __ _
| ' /| | '__| / __|/ _' | |/ / | | | '__/ _' |
| . \| | | | \__ \ (_| | <| |_| | | | (_| |
|_|\_\_|_| |_|___/\__,_|_|\_|\__,_|_| \__,_|

_ __ _
| |/ /___ _ __ _ __ ___| |
| ' // _ \ '__| '_ \ / _ \ |
| . \ __/ | | | | | __/ |
|_|\_\___|_| |_| |_|\___|_|



Kirisakura-Kernel by Freak07 @ xda-developers

Version: 4.14.290-Kirisakura-FLORAL-9.0.0_NEXTGEN_CAF


AnyKernel3 by osm0sis @ xda-developers

AK_BASE_VERSION=20220608

Checking device...
flame

Checking Android version...
13

Checking Android security patch level...
2022-07-05

Installing...
/dev/block/bootdevice/by-name/boot_a
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.186898 seconds, 342.4MB/s
Parsing boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
69311 blocks
ash: -f: unknown operand
Loading cpio: [ramdisk-new.cpio]
bad cpio header
Loading cpio: [ramdisk-new.cpio]
bad cpio header

Magisk detected! Patching kernel so reflashing Magisk is not necessary...
Patch @ 028ABF8E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
Loading cpio: [ramdisk.cpio]
bad cpio header
cat: can't open '.magisk': No such file or directory
export AKHOME='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
export ANDROID_ART_ROOT='/apex/com.android.art'
export ANDROID_ASSETS='/system/app'
export ANDROID_BOOTLOGO='1'
export ANDROID_DATA='/data'
export ANDROID_I18N_ROOT='/apex/com.android.i18n'
export ANDROID_ROOT='/system'
export ANDROID_SOCKET_usap_pool_primary='22'
export ANDROID_SOCKET_zygote='21'
export ANDROID_STORAGE='/storage'
export ANDROID_TZDATA_ROOT='/apex/com.android.tzdata'
export ASEC_MOUNTPOINT='/mnt/asec'
export BOOTCLASSPATH='/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar:/apex/com.android.adservices/javalib/framework-adservices.jar:/apex/com.android.adservices/javalib/framework-sdksandbox.jar:/apex/com.android.appsearch/javalib/framework-appsearch.jar:/apex/com.android.btservices/javalib/framework-bluetooth.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.ondevicepersonalization/javalib/framework-ondevicepersonalization.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.permission/javalib/framework-permission-s.jar:/apex/com.android.scheduling/javalib/framework-scheduling.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.tethering/javalib/framework-connectivity.jar:/apex/com.android.tethering/javalib/framework-connectivity-t.jar:/apex/com.android.tethering/javalib/framework-tethering.jar:/apex/com.android.uwb/javalib/framework-uwb.jar:/apex/com.android.wifi/javalib/framework-wifi.jar'
export DEX2OATBOOTCLASSPATH='/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar'
export DOWNLOAD_CACHE='/data/cache'
export EXTERNAL_STORAGE='/sdcard'
export HOME='/'
export LOGNAME='root'
export OLDPWD='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
export PATH='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/bin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin'
export PWD='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/split_img'
export SHELL='/system/bin/sh'
export SHLVL='1'
export STANDALONE_SYSTEMSERVER_JARS='/apex/com.android.btservices/javalib/service-bluetooth.jar:/apex/com.android.os.statsd/javalib/service-statsd.jar:/apex/com.android.scheduling/javalib/service-scheduling.jar:/apex/com.android.tethering/javalib/service-connectivity.jar:/apex/com.android.uwb/javalib/service-uwb.jar:/apex/com.android.wifi/javalib/service-wifi.jar'
export SYSTEMSERVERCLASSPATH='/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/apex/com.android.adservices/javalib/service-adservices.jar:/apex/com.android.adservices/javalib/service-sdksandbox.jar:/apex/com.android.appsearch/javalib/service-appsearch.jar:/apex/com.android.art/javalib/service-art.jar:/apex/com.android.media/javalib/service-media-s.jar:/apex/com.android.permission/javalib/service-permission.jar'
export TMPDIR='/data/user/0/com.github.capntrips.kernelflasher/cache'
export USER='root'
export _='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/tools/busybox'
export home='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
Loading dtbs from [dtb]
Remove pattern [,avb]
Remove pattern [,avb]
Parsing boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot-new.img]
HEADER_VER [2]
KERNEL_SZ [28435783]
RAMDISK_SZ [17136915]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1405991]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [9a9b0af2d2110fcdbdcc474bc29d38bde2922aa5000000000000000000000000]

/dev/block/bootdevice/by-name/dtbo_a

Creating kernel helper Magisk module...
Magisk installation not found. Skipped!


Done!
Try flashing the august release android 13 image, then root with magisk, then flash kernel.

Quick sidenote root the boot.img in magisk manager app before you wipe the device and flash factory image.
 

andrew.kosiak

New member
Dec 23, 2012
4
0
Try flashing the august release android 13 image, then root with magisk, then flash kernel.

Quick sidenote root the boot.img in magisk manager app before you wipe the device and flash factory image.
I tried flashing the stable august release, but always got an error (not sure, but the meaning is as follows) - you are trying to flash an OS version that is older than your current installed. After several unsuccessful attempts and ways to do this, after a night of flashing and errors and recovering, I decided that enough, 13 beta 4.1 still works well for me. I'll wait for the September next beta release and will install it
 

YKS_Gaming

Member
Aug 31, 2018
17
7
I tried flashing the stable august release, but always got an error (not sure, but the meaning is as follows) - you are trying to flash an OS version that is older than your current installed. After several unsuccessful attempts and ways to do this, after a night of flashing and errors and recovering, I decided that enough, 13 beta 4.1 still works well for me. I'll wait for the September next beta release and will install it
It might be because of the new bootloader thing, though I thought that was only on phones with tensor. Did you update through OTA or factory image? And also remember to update radio and bootloader. You could also try running or following the .bat file in factory image zip if you haven't done so.
 

insestito

Senior Member
Jul 29, 2009
1,049
176
Thank for your work. BUT ... tried twice and failed both times. Pixel4 Android 13 beta4.1 rooted with last Magisk canary 25201. Before flashing, I disabled all Magisk modules and even returned the original host file :) There are no other modifications in my system. After reboot, I tried to flash it in two ways, with FKM (result - bootloop) and with flasher form Pixel6 topics (stuck on google logo) and as I wrote both times it was unsuccessful. Here are the logs, and I really hope that it helps to understanding the problem and you will fix it.

sorry I do not understand how to make an attachment :(
make it like spoiler

WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"

Archive: /data/data/com.franco.kernel/files/KirisakuraFLORAL900.zip
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
creating: modules/
inflating: modules/service.sh
creating: modules/system/
creating: modules/system/vendor/
creating: modules/system/vendor/etc/
inflating: modules/system/vendor/etc/powerhint.json
inflating: modules/system/vendor/etc/fstab.sm8150
creating: modules/system/vendor/lib/
creating: modules/system/vendor/lib/modules/
inflating: modules/system/vendor/lib/modules/xt_HL.ko
inflating: modules/system/vendor/lib/modules/xt_HMARK.ko
creating: ramdisk/
creating: ramdisk/overlay.d/
inflating: ramdisk/overlay.d/init.kirisakura.rc
creating: ramdisk/overlay.d/sbin/
inflating: ramdisk/overlay.d/sbin/init.kirisakura.sh
creating: tools/
inflating: tools/ak3-core.sh
inflating: tools/busybox
inflating: tools/fec
inflating: tools/httools_static
inflating: tools/lptools_static
inflating: tools/magiskboot
inflating: tools/magiskpolicy
inflating: anykernel.sh
inflating: banner
inflating: dtb
inflating: dtbo.img
inflating: Image.lz4
inflating: LICENSE
inflating: README.md
inflating: version
_ ___ _ _
| |/ (_)_ __(_)___ __ _| | ___ _ _ __ __ _
| ' /| | '__| / __|/ _' | |/ / | | | '__/ _' |
| . \| | | | \__ \ (_| | <| |_| | | | (_| |
|_|\_\_|_| |_|___/\__,_|_|\_|\__,_|_| \__,_|

_ __ _
| |/ /___ _ __ _ __ ___| |
| ' // _ \ '__| '_ \ / _ \ |
| . \ __/ | | | | | __/ |
|_|\_\___|_| |_| |_|\___|_|



Kirisakura-Kernel by Freak07 @ xda-developers

Version: 4.14.290-Kirisakura-FLORAL-9.0.0_NEXTGEN_CAF


AnyKernel3 by osm0sis @ xda-developers

AK_BASE_VERSION=20220608

Checking device...
flame

Checking Android version...
13

Checking Android security patch level...
2022-07-05

Installing...
/dev/block/bootdevice/by-name/boot_a
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.115419 seconds, 554.5MB/s
Parsing boot image: [/tmp/anykernel/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
69311 blocks
ash: -f: unknown operand
Loading cpio: [ramdisk-new.cpio]
Loading cpio: [ramdisk-new.cpio]
Extract [.backup/.magisk] to [/tmp/anykernel/split_img/.magisk]

Magisk detected! Patching kernel so reflashing Magisk is not necessary...
Patch @ 028ABF8E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
Loading dtbs from [dtb]
Parsing boot image: [/tmp/anykernel/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [/tmp/anykernel/boot-new.img]
HEADER_VER [2]
KERNEL_SZ [28435783]
RAMDISK_SZ [17135253]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1405991]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [47210503b88ba36cf6a3ef59b88e3383eb1e0eef000000000000000000000000]

/dev/block/bootdevice/by-name/dtbo

Creating kernel helper Magisk module...


Done!

Archive: /data/user/0/com.github.capntrips.kernelflasher/files/Kirisakura-FLORAL_9.0.0.zip
inflating: modules/system/vendor/lib/modules/xt_HMARK.ko
inflating: modules/service.sh
inflating: tools/fec
inflating: tools/httools_static
inflating: modules/system/vendor/etc/powerhint.json
inflating: dtb
inflating: META-INF/com/google/android/updater-script
inflating: META-INF/com/google/android/update-binary
inflating: LICENSE
inflating: modules/system/vendor/lib/modules/xt_HL.ko
inflating: README.md
inflating: modules/system/vendor/etc/fstab.sm8150
inflating: tools/magiskpolicy
inflating: tools/ak3-core.sh
inflating: ramdisk/overlay.d/sbin/init.kirisakura.sh
inflating: ramdisk/overlay.d/init.kirisakura.rc
inflating: tools/magiskboot
inflating: anykernel.sh
inflating: version
inflating: tools/busybox
inflating: tools/lptools_static
inflating: banner
inflating: dtbo.img
inflating: Image.lz4
_ ___ _ _
| |/ (_)_ __(_)___ __ _| | ___ _ _ __ __ _
| ' /| | '__| / __|/ _' | |/ / | | | '__/ _' |
| . \| | | | \__ \ (_| | <| |_| | | | (_| |
|_|\_\_|_| |_|___/\__,_|_|\_|\__,_|_| \__,_|

_ __ _
| |/ /___ _ __ _ __ ___| |
| ' // _ \ '__| '_ \ / _ \ |
| . \ __/ | | | | | __/ |
|_|\_\___|_| |_| |_|\___|_|



Kirisakura-Kernel by Freak07 @ xda-developers

Version: 4.14.290-Kirisakura-FLORAL-9.0.0_NEXTGEN_CAF


AnyKernel3 by osm0sis @ xda-developers

AK_BASE_VERSION=20220608

Checking device...
flame

Checking Android version...
13

Checking Android security patch level...
2022-07-05

Installing...
/dev/block/bootdevice/by-name/boot_a
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.186898 seconds, 342.4MB/s
Parsing boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
69311 blocks
ash: -f: unknown operand
Loading cpio: [ramdisk-new.cpio]
bad cpio header
Loading cpio: [ramdisk-new.cpio]
bad cpio header

Magisk detected! Patching kernel so reflashing Magisk is not necessary...
Patch @ 028ABF8E [736B69705F696E697472616D667300] -> [77616E745F696E697472616D667300]
Loading cpio: [ramdisk.cpio]
bad cpio header
cat: can't open '.magisk': No such file or directory
export AKHOME='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
export ANDROID_ART_ROOT='/apex/com.android.art'
export ANDROID_ASSETS='/system/app'
export ANDROID_BOOTLOGO='1'
export ANDROID_DATA='/data'
export ANDROID_I18N_ROOT='/apex/com.android.i18n'
export ANDROID_ROOT='/system'
export ANDROID_SOCKET_usap_pool_primary='22'
export ANDROID_SOCKET_zygote='21'
export ANDROID_STORAGE='/storage'
export ANDROID_TZDATA_ROOT='/apex/com.android.tzdata'
export ASEC_MOUNTPOINT='/mnt/asec'
export BOOTCLASSPATH='/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar:/apex/com.android.adservices/javalib/framework-adservices.jar:/apex/com.android.adservices/javalib/framework-sdksandbox.jar:/apex/com.android.appsearch/javalib/framework-appsearch.jar:/apex/com.android.btservices/javalib/framework-bluetooth.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.ondevicepersonalization/javalib/framework-ondevicepersonalization.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.permission/javalib/framework-permission-s.jar:/apex/com.android.scheduling/javalib/framework-scheduling.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.tethering/javalib/framework-connectivity.jar:/apex/com.android.tethering/javalib/framework-connectivity-t.jar:/apex/com.android.tethering/javalib/framework-tethering.jar:/apex/com.android.uwb/javalib/framework-uwb.jar:/apex/com.android.wifi/javalib/framework-wifi.jar'
export DEX2OATBOOTCLASSPATH='/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar'
export DOWNLOAD_CACHE='/data/cache'
export EXTERNAL_STORAGE='/sdcard'
export HOME='/'
export LOGNAME='root'
export OLDPWD='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
export PATH='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/bin:/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin'
export PWD='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/split_img'
export SHELL='/system/bin/sh'
export SHLVL='1'
export STANDALONE_SYSTEMSERVER_JARS='/apex/com.android.btservices/javalib/service-bluetooth.jar:/apex/com.android.os.statsd/javalib/service-statsd.jar:/apex/com.android.scheduling/javalib/service-scheduling.jar:/apex/com.android.tethering/javalib/service-connectivity.jar:/apex/com.android.uwb/javalib/service-uwb.jar:/apex/com.android.wifi/javalib/service-wifi.jar'
export SYSTEMSERVERCLASSPATH='/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/apex/com.android.adservices/javalib/service-adservices.jar:/apex/com.android.adservices/javalib/service-sdksandbox.jar:/apex/com.android.appsearch/javalib/service-appsearch.jar:/apex/com.android.art/javalib/service-art.jar:/apex/com.android.media/javalib/service-media-s.jar:/apex/com.android.permission/javalib/service-permission.jar'
export TMPDIR='/data/user/0/com.github.capntrips.kernelflasher/cache'
export USER='root'
export _='/data/user/0/com.github.capntrips.kernelflasher/files/akhome/tools/busybox'
export home='/data/user/0/com.github.capntrips.kernelflasher/files/akhome'
Loading dtbs from [dtb]
Remove pattern [,avb]
Remove pattern [,avb]
Parsing boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot.img]
HEADER_VER [2]
KERNEL_SZ [20857669]
RAMDISK_SZ [17133010]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1048284]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [76b1b2b61797dd822887d929b7ce82225bbba9cb000000000000000000000000]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [/data/user/0/com.github.capntrips.kernelflasher/files/akhome/boot-new.img]
HEADER_VER [2]
KERNEL_SZ [28435783]
RAMDISK_SZ [17136915]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [1405991]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2022-07]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200n8 androidboot.console=ttyMSM0 printk.devkmsg=on msm_rtb.filter=0x237 ehci-hcd.park=3 service_locator.enable=1 androidboot.memcg=1 cgroup.memory=nokmem usbcore.autosuspend=7 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 androidboot.boot_devices=soc/1d84000.ufshc loop.max_part=7 buildvariant=user]
CHECKSUM [9a9b0af2d2110fcdbdcc474bc29d38bde2922aa5000000000000000000000000]

/dev/block/bootdevice/by-name/dtbo_a

Creating kernel helper Magisk module...
Magisk installation not found. Skipped!


Done!
Unroot magisk 25.
Install last magisk 24.x
Root magisk 24.x

Done

(Magisk 25 not work with this kernel i think)
 

Curiousn00b

Senior Member
Unroot magisk 25.
Install last magisk 24.x
Root magisk 24.x

Done

(Magisk 25 not work with this kernel i think)
This is correct, but not specific to this kernel.

Magisk v25 seems to be tricky and results in bootloops often. I found it best to install Magisk v24.3, flash the kernel, then upgrade Magisk. This sometimes work, but sometimes still does the boot loop thing.

Still, Magisk v24.3 works with no problem and would recommend using that to people that have the boot loop issue.
 
I'm just wondering why does my phone freeze after few minutes in cam calls , Instagram , Meet "Duo" , messenger .. i don't know why but my phone freeze and i can hear the other person talking but the screen is frozen and i can do nothing except force reboot with power button .
This had happened to me in early A12 stock roms , A13 betas , And now with A13 stable , i thought it's from the rom but using the stock boot i don't have such problems , even if the phone gets too hot nothing happens. Why ?
A13 + Powerhint-module + systemless host .
 

Pixie 4 XL

Member
Aug 28, 2022
8
2
Sorry for derail but everyone in this thread must have root and are clearly competent enough to archive a folder.
Please help.

 
Last edited:

pandemo_96

Member
Apr 8, 2020
25
2
Nicosia
Hello i am new at this kernel and i have a question.
I dont want to root my device can i flash this kernel (if i can flash it what is the different with rooted device)?
Thank you!!
 

YKS_Gaming

Member
Aug 31, 2018
17
7
Hello i am new at this kernel and i have a question.
I dont want to root my device can i flash this kernel (if i can flash it what is the different with rooted device)?
Thank you!!
I think you need to give root permission to the kernel manager(EXKM or FKM) to flash kernels but dont quote me on that. You can also flash with TWRP i think but afaik there doesnt seem to be an official one for the Pixel 4 XL.
 

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
5,894
20,118
Hello i am new at this kernel and i have a question.
I dont want to root my device can i flash this kernel (if i can flash it what is the different with rooted device)?
Thank you!!
Please read the OP, for requirements and instructions. Being rooted with magisk is a requirement.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Update 9.1.0

    Hey guys and girls,

    So here´s the next release. Pixel 4/XL is now EOL from Google. Maybe there might be one last security update that still comes, but that´s uncertain.
    I´ll try to keep the kernel updated, but no promises as my time is also limited. Still quite a few changes in this release.

    I wish everybody a great day.
    Enjoy the device and the kernel, because I certainly do :)

    Before troubleshooting and reporting any issues make sure to not use any additional mods, scripts or tweaks. This includes all mods and magisk modules, even the tiniest modification you did.


    Detailed changelog below.


    Changelog:

    - merge november security fixes from still supported p4a
    - Linux-Stable 4.14.299
    - bump f2fs to latest linux-stable state
    - fixes from kernel common for various subsystems
    - other changes can be found on github

    Magisk Module:
    - After flashing the kernel, you will see a module called AK3 Helper Module in Magisk Manager. This will fine tune the power-hal. Do not delete it!


    Have fun flashing and enjoy your device with latest linux-stable :)

    Why is linux-stable beneficial?

    I wish you all a nice day/evening!


    Download is below :)

    Download:

    Attached to this post as AFH is not working correctly.



    How to flash the Kernel:

    1. Make sure you are rooted, are using the latest magisk suited for your OS version and a kernel manager capable of flashing a zip is installed. If available you'll can use TWRP as well. Download the kernel.zip to your device.
    1a. If you used the SQLITE3 Magisk Module and the GPay Fix Magisk Module in the past (prior to 2.0.0) look at this post: click me

    2. Flash kernel zip in via your favorite method. Kernel Managers and Recoveries need to be updated to work with a specific Android Version. It's your job to ensure compatibility! :) Root will be preserved! (Make sure to be on the latest firmware the kernel is made for)

    3. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!
    Instructions can be found in the OP too!


    Have fun, enjoy the kernel and your phone.


    If you like my work please consider a donation.
    Donations are not mandatory but very welcome.
    If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
    1
    help! flashed this and it goes directly back to fastboot mode... any ideas??
    flash boot.img your rom or flash magisk_patched.img your rom if you want to go back to root via fastboot mode, your rom will be back to normal
  • 83
    Kirisakura-Kernel for the Pixel 4 and Pixel 4 XL

    Hello everyone,

    After rising to the most popular kernel on the Pixel 3/XL forums, here is Kirisakura-Kernel for the Pixel 4 (FLAME) and Pixel 4 XL (CORAL), together FLORAL.
    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 kernel aims to keep most of the subsystems updated, way ahead of the stock kernel, thereby improving security, stability and performance!
    This includes Linux-Stable, CAF-Upstream, F2FS-Mainline and kernel/common.
    If that 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.


    Main Features:
    - Based on latest kernel sources from Google, Kernel is made for Android 13
    - Linux-Stable-Upstream included to latest 4.14.299
    - CAF-Upstream usually based on one of the latest tags for sm8150
    - include all important fixes/improvements from kernel/common
    - compiled with latest Clang 14.0.2 from Google prebuilts and built with -O3 optimizations
    - F2FS implementation updated to latest state of kernel/common and kernel.org maintained by Jaegeuk Kim.
    - devfreq backports from 5.4 (sd 888 qcom kernel base)
    - Safety Net patches are included -> Kernel passes Safety Net (hardware attestation is not related to these kernel patches)
    - Flashing the kernel will keep root!
    - Tested to work on custom ROMs

    - Flashable via EXKM and FKM on a rooted system!
    - remove extensive Memory Management logging from Google
    - removed nolog usage, remove rtb logging from the kernel
    - remove selinux auditing from kernel for lower overhead
    - remove IPC logging from the kernel
    - introduce kmalloc reclaimable caches for improved memory management
    - AnyKernel3 powered by @osm0sis (big thanks!)

    EAS related features:
    - CleanSlate options to dynamically control freq boosting and sched boosting of powerhal
    - small improvements to tasks placement
    - fixes from kernel/common to EAS
    - improvements from Pixel 5


    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
    - include cpuidle patches from CAF
    - s2idle-flow improvements from mainline
    - improve efficiency while music playback
    - arm64: lse: Prefetch operands to speed up atomic operations

    File System related features:
    - Include latest f2fs changes found on f2fs stable git
    - 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.)

    GPU related features:
    - KCAL to control various RGB related display configs (RGB, Hue, Saturation etc -> accessible via CleanSlate Config App)
    - add ability to reduce minimum brightness
    - add high-brightness-mode (HBM)
    - Update GPU driver to latest CAF state
    - improve GPU performance (overall smoother experience)
    - reduce power consumption when rendering static images
    - enable of usage of SD855+ GPU frequencies as optional feature

    UI/UX/Usability related features from CleanSlate:
    - CleanSlate features made by @tbalden
    - Adjust all CleanSlate features with the CleanSlate-Apps found in the CleanSlate-Thread (if you profit from the CleanSlate features make sure to buy the premium versions on Play-Store to support
    @tbalden
    - CleanSlate options that require permissive selinux in any way are not included, as they can be easily achieved otherwise on a rooted environment and this kernel is not intended to be used rootless (adblocking, props spoofing etc.)
    - Flashlight Notification/Call blinking
    - Vibrating Notification Reminder
    - Sweep to Sleep touchscreen gesture - highly customizable
    - DoubleTap on Sweep2Sleep's area gestures - new way to pull down android Notification Area
    - Face down screen off - new gesture, e.g. conveniently use together with 'flip to shh' to turn screen off

    Network related features:
    - Wireguard Support (Details)

    Memory related features:
    - updated PSI monitor with latest changes
    - improved mm with patches from latest mainline
    - various other changes from mainline
    - included zstd and lz0-rle as options for ZRAM-algorithm (lz4 is probably the best all around, so only change it if you know why and what you are doing)
    - allow swappiness up to a value of 200
    - Backport to enable CONFIG_HAVE_MOVE_PMD (see here)
    - Backport to enable CONFIG_HAVE_MOVE_PUD (see here) (reverted for now as it breaks audio driver)
    - improvements to ZRAM writeback (thanks @arter97 )
    - disable per cgroup tracking via psi to reduce overhead

    Security related features:
    - CFI and LTO both kept intact and are used to keep additional security Google implemented for us!
    - ThinLTO used as of 3.9.0
    - Shadow Call Stack

    Tuned PowerHal
    - allow kernel to idle on lowest frequencies when no interaction is happening
    - increase swappiness during periods without interaction to favor swapping memory, relax swappiness otherwise
    - scheduler camera processes to the big cluster and prime core when faceunlock is used
    - adjust powerhal behaviour when the camera is used

    Misc Features:

    TCP Congestion Algorithms:
    - advanced algorithms enabled
    - includes new bbr2
    Wakelock Blocker:
    - advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
    - please read [URL="https://arstechnica.com/gadgets/2018/08/p-is-for-power-how-google-tests-tracks-and-improves-android-battery-life/"]this for further info

    Other features:
    - disable logging to make the kernel more lightweight in various places (includes mm, vma, gpu, ipa etc)
    - remove VLAs from the kernel (more info)
    - add support for steam controller
    - add support for nintendo switch controller
    - merge upstream solution for PM/Wakeup driver, which reduces unnecessary logspam and also improves sleeping behaviour
    - merge freezer v2 backport from google gerrit (required for developer option ""suspend execution for cached apps"")

    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
    - working magisk environment


    How to flash the Kernel:

    1. Download the kernel.zip to your device

    1a. While it may not be necessary all times when coming from another custom kernel: You may want to restore stock boot.img as well as stock dtbo.img, which can both be found in the factory image. If you´re on a custom rom, simply dirty flash your ROM. Reroot with magisk and optionally install twrp.zip (if existing). Before reporting issues make sure you do that! Thank you!

    1b. If you used the SQLITE3 Magisk Module and the GPay Fix Magisk Module in the past look at this post: click me

    You only need to do either 2a OR 2b
    2a. If TWRP is available for this device and specific android version, boot to TWRP and flash my kernel.zip. Root will be preserved!
    or
    2b. Flash kernel zip in EX Kernel Manager or FKM app. Root will be preserved! If a kernel manager is not yet updated to work on a specific Android Version, you need to wait until it is updated or use another one.

    4. Reboot and profit!



    DOWNLOAD:
    Download is located always in this folder or attached to the release post in case it´s now in AFH.

    https://www.androidfilehost.com/?w=files&flid=301179

    Please also check the release posts for download links or attched files. AFH is often down recently.


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


    Changelog:

    Android 10/ Q Kernels
    1.0.0 Initial Release
    1.0.1 https://forum.xda-developers.com/showpost.php?p=80712545&postcount=51
    1.0.3 https://forum.xda-developers.com/showpost.php?p=80791393&postcount=181
    2.0.0 https://forum.xda-developers.com/showpost.php?p=81069625&postcount=341
    2.1.0 https://forum.xda-developers.com/showpost.php?p=81168297&postcount=424
    2.3.0 https://forum.xda-developers.com/showpost.php?p=81244627&postcount=491
    2.3.4 https://forum.xda-developers.com/showpost.php?p=81311861&postcount=561
    2.6.0 https://forum.xda-developers.com/showpost.php?p=81408591&postcount=611
    2.9.0 https://forum.xda-developers.com/showpost.php?p=81527369&postcount=692
    2.9.2 https://forum.xda-developers.com/showpost.php?p=81575075&postcount=702
    3.1.0 https://forum.xda-developers.com/showpost.php?p=81625099&postcount=725
    3.2.0 https://forum.xda-developers.com/showpost.php?p=81679343&postcount=761
    3.9.0 https://forum.xda-developers.com/showpost.php?p=81926617&postcount=802
    3.9.1 https://forum.xda-developers.com/showpost.php?p=81943269&postcount=824
    4.2.0 https://forum.xda-developers.com/showpost.php?p=82189985&postcount=851
    4.5.0 https://forum.xda-developers.com/showpost.php?p=82485339&postcount=892
    4.5.6 https://forum.xda-developers.com/showpost.php?p=82562029&postcount=941
    4.7.5 https://forum.xda-developers.com/showpost.php?p=82725499&postcount=986
    5.0.0 https://forum.xda-developers.com/showpost.php?p=83019609&postcount=1022
    5.2.2 https://forum.xda-developers.com/showpost.php?p=83206123&postcount=1066
    5.2.6 https://forum.xda-developers.com/showpost.php?p=83387505&postcount=1078

    Android 11/ R Kernels
    6.0.0 https://forum.xda-developers.com/showpost.php?p=83476821&postcount=1092
    6.1.3 https://forum.xda-developers.com/showpost.php?p=83649491&postcount=1131
    6.2.4 https://forum.xda-developers.com/showpost.php?p=83849179&postcount=1143
    6.6.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84068177
    6.6.6 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84227741
    6.8.2 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84408147
    7.1.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84588667
    7.1.1 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84603881
    7.2.3 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84747379
    7.4.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84900715
    7.4.1 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-84951399
    7.4.2 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85000553
    7.4.3 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85079523
    7.4.4 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85155405
    7.9.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85298631
    7.9.1 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85424575
    7.9.2 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85473277
    7.9.3 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-85674963

    Android 12
    8.0.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-86063673
    8.0.3 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-86236075
    8.0.4 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-86413329
    8.0.5 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-86550055
    8.2.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-86843221
    8.2.2 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-87006201

    Android 13
    9.0.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-87295655
    9.0.2 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-87532941
    9.1.0 https://forum.xda-developers.com/t/...r-pixel-4-xl-aka-floral.3992213/post-87760941

    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 all of his work and the stuff I could learn from him
    @flar2 for all his work
    @joshuous for all the help he provided to me in the past!
    @topjohnwu for magisk!
    @arter97 , @kdrag0n for helping me out several times!

    XDA:DevDB Information
    Kirisakura Kernel, Kernel for the Google Pixel 4 XL

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

    Kernel Special Features:

    Version Information
    Status:
    Stable

    Created 2019-10-27
    Last Updated 2020-11-03
    59
    Update to 2.0.0

    Hey guys and girls,

    So here´s the update finally. I worked on this kernel in parallel to the initial release I uploaded on XDA, since I started developing for the Pixel 4 XL. Because ultimately the 2.0.0 release is built upon the kernel base I wanted initially, but wasn´t able to create.
    This will be a longer post, but have a bit patience and tenacity when reading this post it might be worth it.

    A little context so everybody can follow a bit more easily:
    Starting with the Pixel 3/XL, the pixel kernels are more close to "CAF" than on previous Google phones. CAF stands for codeaurora-forums, where the development from Qualcomm for our SOC, the SD855, happens.
    Usually OEMs get a snapshot of a CAF-Base from Qualcomm, stop updating it, implement own device or company specific drivers/necessary changes and only add minimal changes to the kernel as soon as it is deemed stable.
    The CAF-Developers however constantly push updates to their CAF-Base on their git. It´s a lot of work to completely merge all CAF updates into the kernel, but since there are a lot of device and soc specific fixes and improvements it´s very worth it.

    Google used a very early snapshot of the CAF-source to base their Pixel 4/XL kernel upon.
    So one of my initial goals was to merge a more recent CAF-Base. This proved to be very difficult however. It ended up in so many failed attempts with a non successfully booting phone that I lost count of it and was on the verge of giving up a few times.

    I worked on it for weeks, excluding more and more changes, piece by piece, until I finally got the phone to a state, where I was able to pull a log and work in a specific direction.
    After that it was just a lot of time, that went into merging and doing tedious work. I took a peek into many corners of the kernel, while fixing all the conflicts and understanding some of the fixes google applied, which were also fixed by CAF at a later stage.
    So I tried to always pick the best solution for the problems Google and CAF faced. Sometimes I reverted a fix from Google, sometimes I reverted a fix from Qualcomm and rather picked the Google one.
    I understand the kernel a lot better and learned a lot in the last weeks.
    The main difficulties I had to fight with, were the fact that Google is the only OEM that uses LTO in conjunction with CFI and ShadowCallStack for increased security. This requires some low-level changes to arm64/kernel, which conflicts with some more recent changes from CAF. These changes were identified and reverted.
    The Pixel 3 and Pixel 4 phones are also the only phones, which make use of the Userspace-Low Memory Killer (ULMK) instead of relying on the kernel side low memory killer. Google put a lot of work and thought into this after the Pixel 3 was released. Very exciting work started on the dev previews of Android 10 on the Pixel 3, regarding the ULMK. I tried these changes on a personal Pixel 3 Rom and was in contact with the google dev responsible for it. I like the approach and thought process behind it. Since CAF is still on the kernel space low memory killer, there were more conflicts, which needed to be identified.
    Some of these commits were really inconspicuous. That´s the main reason this took a lot of time.

    One more point I´d like to describe:
    CAF maintains various tags, which can be merged. There´s a regular CAF-Tag for the sd855, where most OEMs base their kernel upon. It´s also very similar to the CAF-Snapshot google received from Qualcomm, just the OEM version instead of the open-source version.
    F2FS state is pretty old on this CAF-base (Google did upstream this to a pretty recent state, because the official f2fs-maintainer/developer is employed by google) , as well as other subsystems. Linux-stable upstream is at 4.14.117.
    For comparison the Pixel 4 XL stock kernel is still at 4.14.111. Another symptom of the rather not recent CAF-Base Google built the kernel upon.

    Now lets get to the sweet stuff :)
    Then there´s a more advanced CAF-Tag/Branch maintained by CAF for the sd855.
    Most of the soc specific and other related drivers have way more recent CAF-Upstream patches. F2FS is on the same level as the Pixel 4. Linux-stable upstream is at 4.14.146. Just to give you an idea.


    A short summary of how the new base works in comparison to the 1.x.x releases:

    1.x.x: Googles Code + necessary changes to compile as a standalone kernel + linux-stable upstream from kernel.org to 4.14.15x + upstreaming of various subsystems + kernel features

    2.0.0: Googles Code + necessary changes to compile as a standalone kernel + nextgen CAF base (includes linux-stable to 4.14.146) + regular CAF base for the sd855+ missing linux-stable upstream (up to 4.14.156) + upstreaming of various subsystems + kernel features

    Example 1:
    As you can see merging that nextgen CAF base brings more than one advantage. It´s tested code from Qualcomm/CAF which includes upstream updates for various subsystems and also linux-stable updates. That means less rooms for errors introduced by me merging thousands of lines of code.
    We have linux-stable upstream up to 4.14.146 tested by Qualcomm on the SD855 in the new kernel base. On the initial 1.0.x kernel I merged linux-stable myself all the way from 4.14.111 to 4.14.15x.
    That´s just one example but I think it serves as a good way to understand my motivation better.
    Even though one can´t see the updated SOC-specific drivers, the kernel runs way better than the 1.0.x release.
    Updates include drivers as GPU, CPU, Modem, Bluetooth, basically nearly all drivers.
    For example my bluetooth range when connected to my earstudio has significantly increased due to some CAF-Updates!

    Example 2:
    Just so you all can see how far away we are from the stock kernel now we take a look at the amount of code changes:

    Merging the next-gen CAF-tag: 3,171 changed files with 241,690 additions and 23,565 deletions.
    Merging the regular SD855 tag on top: 223 changed files with 5,754 additions and 1,852 deletions.

    Not all of these changes end up in drivers we actually use, but it´s still a good indicator.


    There were many other changes done to the kernel as well. I try to list them in the changelog!



    Regarding the freezes some people faced straight after rebooting:
    The only issue I could reproduce myself and solve with the help of a tester that was affected by the freezes too, where caused by F2FS-Upstream not working well with the SQlite3 module and the Gpay Fix Module.
    So for now I have excluded F2FS-Upstream from my kernel. Judging from my experience with the Pixel 3 XL Google will soon merge these changes by themselves and then even the stock kernel will exhibit this behaviour.
    I can´t see anything wrong with the F2FS-Upstream kernel patches so a solution will have to be found anyway when Google merges these changes into the stock kernel.
    If you have used the SQLite3 Module and the GPay Fix Module in the past, please follow step 1a from my instructions.

    Screen freezes when using HBM in conjunction with AOD and Android Auto are resolved too.

    Please keep in mind. I only looked at the issue with the GPay Fix Module, because I saw some courage from @ilal2ielli providing logs and trying to actively help me.
    No magisk modules, scripts, tweaks, modifications, xposed, sound mods or similar are officially supported!
    If you face issues, try to reproduce them without any modifications done to the system at all. Then provide logs and steps to reproduce (instructions in post #2). This way I can look into it.
    Sometimes a clean flash after using to many mods like xposed, even if installed systemlessly gets rid of all perceived issues!
    Posts like: "I have issues please fix will be simply ignored. "


    Magisk Module fixing the stock powerhal behaviour:
    The power hal of the pixel 4 is partially controlled by a config file. On stock the setup of the power-hal causes the kernel to not idle at 576mhz on the little cluster after some random length of uptime, depending on usage and setup.
    This module fixes this behaviour. It´s not critically needed, but may increase battery life a tiny bit.

    On stock this config file sets up the power hal to boost top-app schedtune boost to 30 upon interaction and after the boost duration is finished, back to a value of 10.
    There are different groups for tasks. top-app tasks are ui-critical tasks, rt-tasks, all that are critical for a smooth experience of the phone.
    Setting top-app schedtune boost to 30 causes the follwoing: The scheduler will expect tasks of the top-app group to use 30% more CPU time than they (probably) actually will, and the CPU-frequency governor will speed up the processor accordingly. "Boosting" a process in this way, thus, does not affect its scheduling priority, but it will affect the speed of the CPU on which it ends up running.
    The problem is resetting the value back to 10, when no interaction is happening. This seems to cause the little cluster to idle at 1036mhz after the phone is up and running a few hours on 4.14 kernels.
    With my module the value gets reset back to 0 instead of 10, when the phone is not being interacted with
    As you can see this is not kernel related, but a userspace thing, that just influences how the kernel handles load. So it can´t be fixed in the kernel, it needs to be fixed in userspace.
    That´s why I created this magisk module. It can be used on the stock kernel and other kernels as well!



    This kernel was more than a month work and I spent countless hours during my free time (and the nights) to get it to this state! Especially preparing the CAF-Base I merged, understanding all changes and consequences which happen by merging it!
    I´m glad it worked out and a bit proud it can finally be released!

    So please enjoy it hopefully as much as I am :) I´m going to enjoy the rest of my sunday now!


    The kernel was tested for a week without a single issue reported by my testers :)
    A huge thanks to them at this place!
    @wrongway213
    @Mrcactuseater
    @MArtyChubbs
    @ilal2ielli
    @toastyp


    Detailed changelog below.

    Enjoy!


    Changelog:

    Kernel Base
    - Completely new kernel base based upon latest Google source
    - Next-Gen CAF-Tag LV.AU.0.0.1-02420-qtiquingvm.0 merged
    - Regular CAF-Tag for SD855 merged LA.UM.8.1.r1-12200-sm8150.0
    - linux-stable upstream to latest 4.14.156
    - included patches from kernel/common
    - removed F2FS upstream due to conflicts with SQLite operations introduced by SQLite3 Magisk Module and GPay fix magisk module
    - remove extensive Memory Management logging from Google
    - removed nolog usage, remove rtb logging from the kernel
    - remove selinux auditing from kernel for lower overhead
    - remove IPC logging from the kernel
    - introduce kmalloc reclaimable caches for improved memory management



    Features:
    - all previous features kept intact
    - reduce power consumption when rendering static images
    - add support for steam controller
    - introduce bbr2 tcp congestion control algorithm
    - improve bbr congestion control algorithm

    Further Kernel Changes:
    - make bluetooth driver more lightweight
    - remove IPC logging from several drivers
    - improve memory allocations (thanks @arter97 @Sultanxda)
    - remove VLA usage (thanks @arter97)
    -

    Other changes:
    - look at github :)

    Magisk Module:
    - Add Module to fix config for power hal

    Have fun flashing and enjoy your device with latest linux-stable :)

    Why is linux-stable important?

    I wish you all a nice day/evening!


    Download is below :)

    Download:


    Kernel: https://www.androidfilehost.com/?fid=4349826312261650873

    Magisk Module: https://www.androidfilehost.com/?fid=4349826312261650875



    How to flash the Kernel:

    1. Make sure you are rooted and either EXKM or FKM is installed. Download the kernel.zip to your device.
    1a. If you used the SQLITE3 Magisk Module and the GPay Fix Magisk Module in the past look at this post: click me

    2. Optionally: Flash the magisk module provided in the release post!

    3. Flash kernel zip in EXKM or FKM app. Root will be preserved!

    4. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!
    Instructions can be found in the OP too!


    Have fun, enjoy the kernel and your phone.


    If you like my work please consider a donation.
    Donations are not mandatory but very welcome.
    If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
    42
    Progress Report/Small Teaser :)

    Hey everybody,

    Testing of the new kernel I mentioned some time ago seems very very promising.
    I really hope I find some time this weekend to get the release ready.

    I started more than 3 times from scratch until everything worked out as I intended it to. That´s the reason, why there were no updates for over two weeks here now.
    It´s a completely new kernel base from CAF (basically from their Next-Gen branch) and essentially the kernel like I wanted it from the beginning but wasn´t able to build so it boots up.
    I will give a detailed description of everything done in the release post. That will be a long post. ;)
    The wait will be worth it so stay tuned.

    The new kernel should have the freezing on bootup issue fixed, when any sort of GPay fix is used. I will give short instructions once the kernel is released, to make sure you can start clean there.
    A big thanks to @ilal2ielli for debugging this issue with me, patiently providing logs all the time and keeping up with all the test builds I sent to him.

    The display issues related to Android Auto when used in conjunction with HBM will also be fixed in the new kernel. Thanks to @toastyp for taking the time, providing me logs and giving feedbacks on test builds I sent him over the last weeks.


    I wish everybody a nice day :)
    41
    Update to 4.7.5

    Hey guys and girls,

    I try to be quite fast with the monthly security updates indeed. Google always publishes the source code, when I´m going to sleep, so depending on your timezone you might have to wait a few hours or a day longer. :)
    Keep in mind, I´m just a human being so if it takes a little bit longer, it´s probably because there´s something else keeping me busy.

    With that said here´s the security update for June. We already had most of the changes from merging CAF, Linux-Upstream and other things.

    Upstream linux-stable is merged to 4.14.182 as well as CAF-Upstream and mainline f2fs-updates :)


    All recently developed CleanSlate options can be easily accessed via the CleanSlate apps on this kernel as well! Please make sure to buy the premium versions if you profit from these features and want to give a little bit back to @tbalden ! Or just drop him a small donation!
    This includes the option to reduce the freq boosting from the stock powerhal and EAS scheduler boosting with adjustable levels. This is a very handy way to safe power on the fly without using the stock powersaver profile.

    All option to use different gamma settings to reduce the green tint can be found as well! This includes a few different choices as well.
    Please take look at the latest release posts from @tbalden ! These include more detailed explanations!

    https://forum.xda-developers.com/showpost.php?p=82660965&postcount=219

    https://forum.xda-developers.com/showpost.php?p=82688341&postcount=228

    https://forum.xda-developers.com/showpost.php?p=82696759&postcount=233

    https://forum.xda-developers.com/showpost.php?p=82725109&postcount=255





    Before troubleshooting and reporting any issues make sure to not use any additional mods, scripts or tweaks. This includes all mods, even the tiniest modification you did.
    Once you know things are working add them back one by one to make sure everything works.



    More details in the changelog! :)

    I wish everybody a great weekend :)

    big thanks to all my testers again:

    @Mrcactuseater
    @MArtyChubbs @ilal2ielli
    @toastyp @Alcolawl


    Detailed changelog below.

    Enjoy!


    Changelog:

    Kernel Base
    - Merge June Security Update
    - Linux-Stable-Upstream to 4.14.182
    - Merge latest CAF-Tag for the SD855 as usual
    - patches from kernel/common
    - updates to f2fs to be inline with f2fs-stable
    - update WiFi driver with upstream CAF to remove some logging

    Features:
    - add all recently developed CleanSlate features! They are all accessible via cleanslate apps, which can be found on the CleanSlate thread! Please make sure to buy the premium versions if you profit from these features and want to give a little bit back to @tbalden !
    - option to reduce frequency boosting
    - option to reduce EAS Scheduler related boosting
    - option to reduce green tint by using different gamma tables (please refer to the release posts I linked above)


    Other changes:
    - see github :)

    Magisk Module:
    - Now included in the kernel.zip (will appear as AK3-Helper Module in Magisk Manager)

    Have fun flashing and enjoy your device with latest linux-stable :)

    Why is linux-stable important?

    I wish you all a nice day/evening!


    Download is below :)

    Download:


    Kernel: https://www.androidfilehost.com/?fid=4349826312261823892



    How to flash the Kernel:

    1. Make sure you are rooted, are using the latest magisk stable and either EXKM or FKM is installed. Download the kernel.zip to your device.
    1a. If you used the SQLITE3 Magisk Module and the GPay Fix Magisk Module in the past (prior to 2.0.0) look at this post: click me

    1b. Remove the old powerhint-magisk module in magisk manager starting with version 4.5.6 as it´s now included in the kernel.zip. After flashing the kernel it will show up as AK3 Helper Module in Magisk Manager.

    2. Flash kernel zip in EXKM or FKM app. Root will be preserved! (Make sure to be on the latest firmware the kernel is made for)

    3. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!
    Instructions can be found in the OP too!


    Have fun, enjoy the kernel and your phone.


    If you like my work please consider a donation.
    Donations are not mandatory but very welcome.
    If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07
    38
    Update to 2.1.0

    Hey guys and girls,

    So here´s the next update. I guess you all have noticed by now, that I try to not constantly update the kernel, immediately for every single new commit that makes its way into the kernel.
    This has mainly two reasons. I want the kernel to be tested thoroughly. I´m not trying to develop a very close to stock kernel, but I still want it to be stable. Testing needs time and some issues only creep up after a while.
    The other reason I´m short on time lately and updating the thread takes time. :)

    Short explanation on some logs I examined, the new CAF-Merge and the December update from Google.


    Regarding the logs. I further dug through the source and while testing we stumbled upon a few things.

    I took a look at the log @rickysidhu_ send me a few days ago. It´s unfortunately caused by a warning that´s also present in the stock kernel on the Pixel 3 and I saw the same on a log from one of my testers. @rickysidhu_ confirmed it happens on EX-Kernel on the Pixel 4 as well, which is very close to stock. So I´m sure it isn´t something I introduced.
    I never encountered the warning or the following reboot on my own device, so it might be something network related tied to a very specific scenario or some sequence of events.
    I´m aware of the issue and still looking for a solution.

    problem number two is connected to another issue one of my testers run into.
    Looking at the log I found this commit from Google present in the stock kernel related to a problem where the device fails to switch between suspend and resume.
    It essentially forces a kernel panic, when the device is stuck between suspend and resume. This issue appears to be quite rare, but it happens more frequently for some people.
    It seems to me Google had no other choice, than to implement that non-desirable "workaround" for the issue.
    If this happens the radar chip and some thermal driver related code seems to be at play.

    If you encounter a reboot, immediately go to sys/fs/pstore, zip up the contents and upload them here for me. Give all details about your setup and I will look at the logs.


    This brings us to the December update from Google.
    Google now enforces warm reboots on thermal related shutdowns. That means logs are kept intact in case a random reboot happens.
    I think this is directly related to the suspend/resume issue described above. So google is aware of the issue and seems to work on it.

    On the good side, they worked on the face-detection driver and made it work more quickly and efficiently.
    Google maxed out PCIe speeds, and fixed an encryption related problem which both impacted file system performance as well
    Follow this link for an androbench taken on the December update

    There are many other little improvements from Google in the December drop, so the wait was definitely worth it for me. :)


    The last point is reserved for some of my own changes.

    The nextgen-CAF tag is now merged to the most recent state to what´s available on the CAF-repos. This second merge brought again many fixes from CAF-Upstream and I can tell the kernel runs better than before from the logs and usage.
    I was able to revert a few "emergency" google fixes in the source and replace them again with CAF-Upstream solutions. Some of these reverts seemed over a year old and seemingly forgotten by Google. This might have been the issue for some deep sleep issues. I didn´t encounter a single instance where my phone was left with broken deepsleep for over 2 weeks now.
    Additionally I merged an upstream solution for PM/Wakeup driver from kernel/common, which reduces unnecessary logspam and also improves sleeping behaviour/operation.
    Since there are some problems with sleep/suspend/resume behaviour on the Pixel 4, I wanted to give this a few weeks before it gets in the release kernel.
    Alongside these commits, the Google and CAF drivers which make use of the upstream PM/Wakeup solution, were updated to work properly.

    The CAF-Tag brought many improvments to SOC-related driver and EAS- Implementation as well. I certainly haven´t noticed any negative performance issues for now. Hundreds of files were updated. Take a look at github if you´re interested in detailed changes.

    Removal of kernel side enforced HBM.

    There are currently two ways to enable HBM on this kernel, either use the kernel side enforced HBM (toggleable in EXKM) or enable the hidden factory disabled HBM from Google.

    After some Pixel 4 owners reported issues with the HBM toggle in EXKM, I decided to remove this implementation from the kernel for now.
    The Pixel 4 and the Pixel 4XL share different BL values. Which made toggling HBM on the Pixel 4 reset the brightness to 1/4 of maximal brightness.
    The HBM mode enforced by the kernel makes the display drop to 60hz, maxes the brightness out and renders the brightness slider non-functional.

    However enabling the HBM mode baked into stock kernel, but disabled by Google leaves the display at 90hz and the brightness slider functional.
    It´s described in the following artice: How to enable disabled factory HBM from Google on the Pixel 4/XL

    Since that method works way more smoothly, I decided to remove the kernel side enforced HBM from my kernel.
    So refer to that XDA article above for high brightness mode, in case you want it enabled.

    A word of warning however. HBM is one of the mods, that can damage your device and Google could arguably deny any warranty claim, if you decided to use it.

    Google made the Pixel 4/XL devices only use HBM on HDR video playback.
    That might have a few reasons other than to save battery or to "limit" and leave users with a dimmer display.

    Yes limiting the maximum brightness saves a bit battery especially when 90hz is used. I guess we all like a bit more battery life.
    However what also needs to be seen is the relation of battery life versus increased usability in sunlight by HBM!

    here´s a comparison shot with a camera on manual controls. One in a dark corner of the room and one in the "not so bright" German winter sun.
    https://photos.app.goo.gl/wmN56Gd6unhvXBym8

    As you can see the difference isn´t really big. I wouldn´t say enabling HBM makes usability in the sun better by a huge margin. Even the super bright displays of other phones are not comfortable to use in bright sun.

    With the method above every can try by themselves if they increased brightness is worth the increased power consumption and decide for themselves.

    Now the warning. Google deliberately made HBM only available on HDR Video playback. That means moving content with less chance of burn in.
    Since we don´t have documentation about the safety limites of the displays available, you´re touching ground that isn´t clearly labeled as safe for the display on a daily basis.
    Rendering static images on highest brightness in HBM, may "benefit" and accelerate burn in.
    If you´re not using HBM and make a warranty claim for burn in, law is on your side when asking for a replacement. If you decide to use HBM and overwrite googles intentions, your in another zone.



    Anyway :) have fun with the release. I´m very satisfied with the kernel so far :)


    Small update on the magisk module:

    Magisk Module fixing the stock powerhal behaviour:
    The power hal of the pixel 4 is partially controlled by a config file. On stock the setup of the power-hal causes the kernel to not idle at 576mhz on the little cluster after some random length of uptime, depending on usage and setup.
    This module fixes this behaviour. It´s not critically needed, but may increase battery life a tiny bit.

    On stock this config file sets up the power hal to boost top-app schedtune boost to 30 upon interaction and after the boost duration is finished, back to a value of 10.
    There are different groups for tasks. top-app tasks are ui-critical tasks, rt-tasks, all that are critical for a smooth experience of the phone.
    Setting top-app schedtune boost to 30 causes the follwoing: The scheduler will expect tasks of the top-app group to use 30% more CPU time than they (probably) actually will, and the CPU-frequency governor will speed up the processor accordingly. "Boosting" a process in this way, thus, does not affect its scheduling priority, but it will affect the speed of the CPU on which it ends up running.
    The problem is resetting the value back to 10, when no interaction is happening. This seems to cause the little cluster to idle at 1036mhz after the phone is up and running a few hours on 4.14 kernels.
    With my module the value gets reset back to 0 instead of 10, when the phone is not being interacted with
    As you can see this is not kernel related, but a userspace thing, that just influences how the kernel handles load. So it can´t be fixed in the kernel, it needs to be fixed in userspace.
    That´s why I created this magisk module. It can be used on the stock kernel and other kernels as well!

    I recommend using the module as I´m using it myself :)

    V2 boosts the CPU cores to max for 5 seconds instead of only 1, when launching the camera app to ensure smoother operation.



    The changes introduced by the new CAF-Tags were tested for over a week without a single issue reported by my testers :)
    A huge thanks to them at this place again.
    @wrongway213
    @Mrcactuseater
    @MArtyChubbs
    @ilal2ielli
    @toastyp
    @Alcolawl


    Detailed changelog below.

    Enjoy!


    Changelog:

    Kernel Base
    - Merge all Google related changes from December Security Drop
    - Next-Gen CAF-Tag updated to LV.AU.0.1.0.r2-00200-qtiquingvm.0
    - revert some Google changes, which could lead to a non deep sleep behaviour and replace them with CAF-Upstream solutions
    - additionally merge upstream solution for PM/Wakeup driver, which reduces unnecessary logspam and also improves sleeping behaviour
    - update Google and CAF drivers to make use of the upstream PM/Wakeup solution
    - linux-stable upstream to latest 4.14.158
    - update AK3 zip to latest state (thanks to @osm0sis )


    Features:
    - Remove kernel enforced HBM (only disadvantages at the moment, use this instead: how to activate factory disabled HBM from Google
    - make WLAN driver more lightweight and user power efficient workingqueues
    - remove an unnecessary wakelock from the WLAN driver (the wlan has more than enough ways to acquire wakelocks)


    Further Kernel Changes:
    - look at github

    Other changes:
    - look at github :)

    Magisk Module:
    - update to v2
    - boost cpu-cores to max when opening the camera app 5 seconds instead of only 1 second to ensure smoother operation until all necessary firmware and drivers are loaded

    Have fun flashing and enjoy your device with latest linux-stable :)

    Why is linux-stable important?

    I wish you all a nice day/evening!


    Download is below :)

    Download:


    Kernel: https://www.androidfilehost.com/?fid=4349826312261667498

    Magisk Module: https://www.androidfilehost.com/?fid=4349826312261667499



    How to flash the Kernel:

    1. Make sure you are rooted and either EXKM or FKM is installed. Download the kernel.zip to your device.
    1a. If you used the SQLITE3 Magisk Module and the GPay Fix Magisk Module in the past look at this post: click me

    2. Optionally: Flash the magisk module provided in the release post!

    3. Flash kernel zip in EXKM or FKM app. Root will be preserved!

    4. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!
    Instructions can be found in the OP too!


    Have fun, enjoy the kernel and your phone.


    If you like my work please consider a donation.
    Donations are not mandatory but very welcome.
    If you like my work and want to buy me a coffee/green tea: http://paypal.me/freak07