[ROM][Unofficial][11.0] EAS powered LineageOS 18.1 ROM for sagit [04/07/2021] - Xiaomi Mi 6 ROMs, Kernels, Recoveries, & Other Dev

Hi, all
Recently I was attracted by the idea behind the Energy Awareness Scheduler (EAS) model and shared some thoughts on this topic here. But nowadays Android system must be deeply modified to work with the kernel. So EAS powered ROM was born.
I selected LineageOS as a base because of its stability and long term support. All but changes in Changelog are from LineageOS. If there are bugs about tasks/CPU scheduler in some circumstances, please let me know. Thank you.
More info about EAS.
Features
EAS model from Pixel 2
HMP and MSM_PERFORMANCE disabled in the Kernel
"schedutil" as default CPU governor
No QTI boost services in userspace
No power HAL built-in
Issues
Probably none, but "adb root" is enabled by default for testing reason.
Download
SourceForge.net
Changelog
20210704
Optimize ext4 fsync for SSD to improve random write speed
Enable Simple LMK
Use 100 Hz timer in the Kernel
Reduce latency while processing GPU's ioctls
Minor fixes on CFS scheduler
20210527
Nuke power-libperfmgr
Restore stock CPU frequencies table
Enable CPU_BOOST and set boost on touch
Support CPU low latency on touch
Rebased on official LineageOS 18.1
20210520
Switched to Pixel AIDL power-libperfmgr
Optimize powerhint for power HAL (~1.1 GHz for each CPU cluster)
Fix UI jitter issue while moving floating window
Enable ZRAM with 50% of total RAM
Enable background Blur effect on Launcher
Various fixes in CPU fair scheduler
Disable debug configs in the Kernel
Fixes from LineageOS upstream
20210422
Rebased on LineageOS 18.1
Restore libperfmgr and remove CPU frequencies boost on INTERACTION
Installation
backup your personal data
flash the ROM via TWRP, remember to factory reset if from other ROMs
Source
Device tree
Kernel
Credits
LineageOS team and sagit device maintainer @NeoArian
Sultan for kernel optimizations

I'll try

Couldn't get it to boot with gapps
Managed to do it with newly downloaded binary and new copy, i guess old one was corrupted somehow
Magisk requires manual boot.img patch, not a big problem but would be nice if we can use the zip or the app, also for some reason google play doesnt display many apps because "its incompatible", I edited build.prop to Pixel 2 solve it
And this rom really feels really smooth, good job!

Google contact can't sync. I replaced aosp contact to Google contact.

Vinesandroid said:
Google contact can't sync. I replaced aosp contact to Google contact.
Click to expand...
Click to collapse
I don't use Google apps for now. New build is now rebased on LineageOS 18.1. Let's see if it works well with Gapps.

Using your rom atm, so far so good, hoping havoc have EAS too, Anyways thank you for your work and ofc @NeoArian

Good job on the rom so far! Just wanted to check how do I acquire root on this via Magisk? Thanks!

skeeeee said:
Good job on the rom so far! Just wanted to check how do I acquire root on this via Magisk? Thanks!
Click to expand...
Click to collapse
Please follow the official instructions to install Magisk for root access.
The basic steps for root should be:
Extract the original boot.img from the ROM
Install Magisk app and use it to patch this boot.img
Flash the patched boot.img in TWRP
Reboot and enjoy

Thanks for your work!
And can you explain in simple terms, what will the firmware with the EAS give me vs official LineageOS 18.1?

Alexander078 said:
Thanks for your work!
And can you explain in simple terms, what will the firmware with the EAS give me vs official LineageOS 18.1?
Click to expand...
Click to collapse
I don't understand your words exactly. But for the firmware, there are no differences between EAS ROM and the official ROM. EAS is just a bunch of schedulers and methods to balance the performance and battery usage.

cn.fyodor said:
Please follow the official instructions to install Magisk for root access.
The basic steps for root should be:
Extract the original boot.img from the ROM
Install Magisk app and use it to patch this boot.img
Flash the patched boot.img in TWRP
Reboot and enjoy
Click to expand...
Click to collapse
The thing is when I installed this ROM the recovery became Lineage Recovery so idk what to do right now.

Update planned?

Related

[KERNEL][HI6250] Veno Kernel [2017-05-22]

Veno Kernel for Huawei HI6250 devices​
Note: I'm waiting for Huawei to release new kernel sources with Nougat, until then I'll focus on fixing any bugs people find. New features will come with Linux 4.1.
The goal​To provide better battery life and more smoothness to your everyday experience, but without sacrificing one in the name of the other (so no +smooth/-battery tweaks and vice versa).
Maybe some extra features? I don't know, I hate unnecessary bloat that provides nothing to everyday user (or even developer).
Okay, so what's in?
Based on latest Huawei VNS sources from January 2017
Turns out newest sources are unstable, I rebased the kernel on 2016 release
Patched to 3.10.105 upstream
Built using Linaro 6.3 toolchain
DM Verity disabled
UKSM 0.1.2.6 (backported from Linux 4.0)
BFQ I/O scheduler
ROW I/O scheduler
Thunderplug hotplugging driver*
Dynamic Fsync
AnyKernel2 package! Compatible with any ROM except stock newer than B336.
For full list of changes see here.
* - Thunderplug is out for now, as it made the device unstable​
Installation​
Make sure you have TWRP installed
Create backup of your current boot
Flash the zip package (it will modify your boot instead of flashing entire boot.img)
Reboot and enjoy! Look below for how to use additional features
THAT'S A LOT OF CHANGES, BUT I HAVE NO IDEA WHAT I'M READING​A quick ELI5 then:
Patched to 3.10.105 upstream
Newer source = less bugs and better kernel in general.
Built using Linaro 6.3 toolchain
Kernel has extra ARM optimizations and phone is faster/has better battery life.
DM Verity disabled
Big brother won't know that you have fiddled with root.
UKSM
More free RAM and less CPU load, so MORE RAM, PERFORMANCE AND BATTERY LIFE.
BFQ I/O scheduler
ROW I/O scheduler Schedulers
With default settings phone will run smoothly even when you're playing FLAC music, compressing 10 archives of 5GB of music and banging your gf (I can't actually know that)
Dynamic Fsync
When you're using the phone, it cares more about your smooth experience than writing data to disk, so the system seems more responsive.
AnyKernel2 package
Can install on top of anything, Huawei is upgrading to kernel 4.1 with EMUI5 though, so flashing might be going backwards (this is 3.10), at least until they release new sources.
DOWNLOAD AND SOURCE​
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Source code:
https://github.com/Avsky/kernel_hi6250_vns (unstable sources)
https://github.com/Avsky/android_kernel_huawei_hi6250_nem
Latest release: 2017-05-22
Download: https://www.androidfilehost.com/?w=files&flid=161384
20170406
Rebased on older, more stable Huawei sources (from 2016, everything else is the same)
Removed some of the debugging stuff from the kernel
Enabled Huawei hotplugging driver (it appears to only control big cores tho?)
20170405
UKSM patched to v0.1.2.6 again
Enabled/Disabled a lot of stuff in defconfig
Disabled mostly debugging stuff, which should result in slightly faster kernel.
Enabled a lot of USB drivers (so most stuff should work with Host Mode, if anyone ever uses that)
Enabled some missing Huawei code from older kernel sources, which I believe caused lowmem killer to go haywire, causing heavy apps to randomly close (I tested this one a bit, apps like Snapchat seem to no longer close, can never be sure)
20170404 - BUGFIX attempt
Rolled UKSM back to v0.1.2.3, should help with apps closing without any error
20170330
Removed Thunderplug, as it was causing freezes and bootloops (Huawei HMP doesn't like to have cores offline apparently), system should be stable now
Hotplugging will most likely return, with different driver or when Huawei releases 4.1 kernel sources.
My birthday release, yay, have a stable kernel everyone
20170329
Fix multiple lcd_notify calls
Protect against some hotplug race conditions
Run Thunderplug in per-core mode by default (gotta save the energy!)
Dynamic Fsync (ported to lcd_notify)
Fixes to backported UKSM (possibly fixes binder errors, apps not opening until reboot)
20170325
Initial release
Works with LineageOS 14.1?
---------- Post added at 10:11 AM ---------- Previous post was at 10:10 AM ----------
Or nougat not supported?
RazOne said:
Works with LineageOS 14.1?
---------- Post added at 10:11 AM ---------- Previous post was at 10:10 AM ----------
Or nougat not supported?
Click to expand...
Click to collapse
Yes, I'm running it on LOS 14.1 right now.
If somebody could test it on stock and EMUI5 ROMs (just for the heck of it, keep backup) I'd be grateful.
Sent from my VNS-L21 using Tapatalk
Installed succesfully on L31 running Resurrection Remix nougat. I will try for a few days and report back feedback
Will try it on EMUI 5 as soon as I have time.. very happy to see our device is getting devs' attention, keep up the good work!
Good afternoon. Your modification will work on EMUI 4 ?
thank you
upd.: on EMUI 4 it worked
http://cs5-1.4pda.to/9967169/Screenshot_2017-03-26-14-54-33.png?e28279d161430a29fd16f793d314a066
Hello
I have tested on vns-l31c636b361 (nougat), it does not start blocking your device is booting now ....
(I think I forgot the root)
I will re-try with but I get it with dload c636b170.
New try, l31c636b170 (emui 4) + twrp meticulus, ok :good:
Flashed it more than a day ago, working great on LineageOS 14 (VNS-L31), yet to find any issues...
Wat does it really do haha? Saw "whats in" but dont really know what that means hahaha.
Are you planning to add other CPU/ GPU governors?
uspy said:
Are you planning to add other CPU/ GPU governors?
Click to expand...
Click to collapse
It's something I'd like to do at some point, but there are very few governors which are properly adapted to octacore devices and none so far worked out of the box with Huawei kernel. I'm keeping my eye mostly on ElementalX and Impulse, but they'll need changes to even compile.
For now stick with interactive, next release with thunderplug enabled by default will bring better battery life.
Sent from my VNS-L21 using Tapatalk
It's really nice to hear that you are working on it. Thanks for your reply.
20170329 release
New release is out! Note that I wasn't running on a new build for very long, so issues might still surface, keep a watch on this thread.
Changes:
Fix multiple lcd_notify calls
lcd_notifier call was implemented in wrong section of Huawei LCD driver, oops.
Protect against some hotplug race conditions
Stability fixes mostly, based on ThunderZap kernels.
Run Thunderplug in per-core mode by default (gotta save the energy!)
Due to how scheduling works in Huawei kernel, it might keep one or two big cores up after heavy load, but should be fine once the screen is turned off.
Dynamic Fsync (ported to lcd_notify)
I moved Dynamic Fsync (thanks faux123) to lcd_notify to avoid kernel bloat from powersuspend or earlysuspend (which are not present in the kernel).
Fixes to backported UKSM (possibly fixes binder errors, apps not opening until reboot)
My derp in commiting changes might have caused critical fail in Android Binder, which resulted in random reboots and new apps not opening. Tell me if anyone encounters it.
Overall this release should bring much better battery life and smoothness to the system (mostly thanks to dyn fsync).
Download: https://www.androidfilehost.com/?fid=673368273298943375
Settings crash, dialer crashes when dialing any number after flashing latest release.
Anyway to unflash, or fix this? I didn't do a twrp backup prior to this, but I did do a cache/dalvik wipe after flashing.
Will a factory reset fix this? Or maybe just wipe /system in twrp?
I'm running stock b170 on vnsl21, meticulus twrp, rooted with magisk. I also have systemless xposed installed, maybe there's a conflict?
zgomot said:
Settings crash, dialer crashes when dialing any number after flashing latest release.
Anyway to unflash, or fix this? I didn't do a twrp backup prior to this, but I did do a cache/dalvik wipe after flashing.
Will a factory reset fix this? Or maybe just wipe /system in twrp?
I'm running stock b170 on vnsl21, meticulus twrp, rooted with magisk.
Click to expand...
Click to collapse
Ask someone for stock boot.img or extract it from huawei image.
Also logs, I need logs.
Avsky0 said:
Ask someone for stock boot.img or extract it from huawei image.
Also logs, I need logs.
Click to expand...
Click to collapse
So then, would a fastboot flash boot boot.img work to uninstall the kernel?
edit: I was just about to instal catlog to provide logs, while going for another round of dalvik/cache wipe and guess what - it seems everything is ok now. Will keep you posted if any issues arise.
zgomot said:
So then, would a fastboot flash boot boot.img work to uninstall the kernel?
Click to expand...
Click to collapse
Yes, that's how you flash kernel images. Also keep backup next time.
Sent from my VNS-L21 using Tapatalk
Also a question if I may. Would this kernel provide any benefits over the stock one if I don't install Kernel Adiutor and change any of the settings - basically just flash it and forget it?
edit: 2 questions if you could be so kind as to indulge me.
Does this modify haptic feedback? As it seems to me - either that or I'm crazy - that keyboard haptic feedback is different after flashing this. It's weaker and a little strange (?), however, navbar haptic feedback and other vibrations seem to be the same as with the stock kernel.
Thanks for your time
further edit for feedback: The fingerprint sensor is a bit iffy now. It's considerably slower sometimes, and generally slower and doesn't always vibrate on unlock, like 9/10 times it doesn't vibrate.
I flashed today's build and I noticed that only one core was active, and I can't turn on more than 4 cores so I can basically use 2 little and 2 big cores. Is this as it should be expected?

*AR_Beast* Kernel R9 (3.10.108) (Jan 29 2018) (OREO) {UBER-TC)

AR_Beast™ Kernel​
Hey there! Ayush Here
INTRO
After a lot of hard work, I am debuting at the kernel section for a new custom kernel based on latest sources by LOS. As the name suggest, these kernel is made as a All-Rounder,i.e it can provide better battery + performance . Without talking much lets go the features of these kernel.
MAIN FEATURES
CPU
Proper and Uniform Frequency Table Format.
Overclocked CPU to 1.7GHz for big cluster and1.2GHzfor little cluster (for Beast Performance).{Modified and Enhanced by me)
Support for more Governers
Darkness
Impulse
BarryAllen
ElementalX
Intel
Smartmax_eps
Lionfish
Optimized Interactive and ElementalX Governer.
System wide PowerEfficent Workqueue(for Beast Battery Backup).
[*]CPU-Boost,Hotplug Boost and Wakeup Boost
[*]Reduced CPU Load(for Beast Battery Backup).
[*]Fixed High Load average(for Beast Battery Backup).
Fast idling of CPU (for Beast Battery Backup).
Less CPU-Load=Cool Device=More Battery-Life
Various Optimizations.
Hotplugs
Added Alucard (Modified for Beast Battery Backup)
Added Thunderplug (Modified forBeast Battery Backup)
Disabled MSM_Performance hotplug (was of no use)
Thermal
Support for user controllable thermal driver which reduce CPU frequency On a set trip point ( Ported by me )
Default limit set to 50°
Advanced Core control mode
Quad core mode
Fully configurable in the adiutor
Various Optimizations
GPU
Altered GPU-Frequency Table (for Beast Battery Backup)
UnderClock GPU to 19MHz(for Beast Battery Backup)
Overclock GPU to 650MHz
Support for Adreno Idler
Various Optimizations
Battery
Enabled ARCH_Power (for Beast Battery Backup)
New PowerSuspend algorithm (for Beast Battery Backup)
Support for preventing unnecessary WakeLocks (for Beast Battery Backup)
ThunderCharge Current Control Driver v2.1.
Fast Charge Drivers
Incresed Charge current (1370)
Various Optimizations
Sound
FauxSoundControl v4.0 ( Modified and Enhanced by me)
Support for 2 Gains---Headphones, Speaker.
Provides ability to Increase or Decrease Volume beyond Default Limits.
Support for Controlling Volumes separately for left and right Headphones.
Dts sound support
Negative values works too
Display
Kcal Colour control v2
Uses custom colour profile by default for better screen vibrancy, colour reproduction (Enhanced by me)
Support for Glove Mode
Various Optimizations
MISC
Latest Linux Base 3.10.108
Based on latest sources.
Compiled with Uber 7.2.1 Optimized ToolChain
O3 and Graphite Optimizations
Support for FRandom RNG Driver (upto 50x faster than the default one).
Support for various Wake-Up Gestures including DT2W.
State Notifer support (faster and better)
Nvidia power optimizations
Varoius tweaks for better network speed
Support for Dynamic Fsync
Various Optimiztaions For Cpu and GPU
F2FS and exFAT Support
Kexec Hardboot
Support for Load Shifter Mechanism.
Various Tweaks for better battery+performance.
Supports Every MM and N roms
Added LCD notifier
Added Quick Wakeup driver
Exclusive Kernel Adiutor for configuring
This are the features which I Remember many features are omitted due to word limit
I have tried my level best to make my kernel as best as possible. From minor tweaks to major improvements, everything is done.
Installation Instructions
Boot into recovery (twrp recommended)
Wipe cache and dalvik cache
Flash AR_Beast™-Kernel Rxx.zip
Reboot to system
Done
XDA:DevDB Information
*AR_Beast* Kernel, Kernel for the YU Yureka
Contributors
Ayush Rathore
Source Code: https://github.com/AyushR1/AR_Beast-Tomato
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 9
Stable Release Date: 2018-01-29
Created 2018-01-29
Last Updated 2018-01-29
DOWNLOAD
R9 - Oreo(8.0/8.1) - https://www.androidfilehost.com/?fid=818070582850488842
Kernel-Adiutor-Mod - https://forum.xda-developers.com/android/apps-games/kernel-adiutor-mod-v6-t3740249
Telegram Group :- https://t.me/joinchat/AAAAAEEtgBFuVYjNE2yRbA
NOTES
1. Use AR_Beast Adiutor to apply settings(prebuilt in kernel zip)
2. Always turn on Apply on Boot and set Delay to 10 seconds or more
3. Always turn on Emulate Init.d option in Kernel Adiutor.
4. If you are facing WiFi/Hotspot issue then check whether your system partition has atleast 20mb free then reflash kernel or Extract wlan.ko from the .zip of kernel (located under system/lib/modules/) and place it in root/system/lib/modules/ overwriting the one already present there. Then, set the permission of the file to rw-r-r and reboot the phone. Use ES File Manager with Root Permission to do this.
5. Facing splashloops(loops on yo logo) then clean flash your rom or wipe data/cache/dalvik-cache
6. Don't use any hotplug along with core control or quad core mode if you wanna use hotplug then disable corecontrol and quad core mode. You can use Core control along with quad core mode.
PRO Sir!!
Thanks for Oreo Support Bro.,
Can we use it for nougat also ?
Will R9 version Support Nougat?
Please reply me. If not which ROM is preferrable to install? Suggest me.
Has anyone tested if this kernel works fluently with NitrogenOS 8.1 ROM ? Please do confirm as this kernel looks so tempting.
The kernel Adiutor mod is broken. Can u give another link.
da_gamer_pk said:
has anyone tested if this kernel works fluently with nitrogenos 8.1 rom ? Please do confirm as this kernel looks so tempting.
Click to expand...
Click to collapse
bro i am using this rom with my nitrogen os shekhawat 20180208 , it works super fine on nitrogen, trust me u can go with this kernel, everything is working fast and smooth
Wlan.co file is missing from the directory you mentioned. Where can I get that file? My wifi/hotspot does not work. Other than this this kernel works perfectly with nitrogen os 8.1.
thanks .. need the link for auditor mod ?
Ayush Rathore said:
NOTES
1. Use AR_Beast Adiutor to apply settings(prebuilt in kernel zip)
2. Always turn on Apply on Boot and set Delay to 10 seconds or more
3. Always turn on Emulate Init.d option in Kernel Adiutor.
4. If you are facing WiFi/Hotspot issue then check whether your system partition has atleast 20mb free then reflash kernel or Extract wlan.ko from the .zip of kernel (located under system/lib/modules/) and place it in root/system/lib/modules/ overwriting the one already present there. Then, set the permission of the file to rw-r-r and reboot the phone. Use ES File Manager with Root Permission to do this.
5. Facing splashloops(loops on yo logo) then clean flash your rom or wipe data/cache/dalvik-cache
6. Don't use any hotplug along with core control or quad core mode if you wanna use hotplug then disable corecontrol and quad core mode. You can use Core control along with quad core mode.
Click to expand...
Click to collapse
hi bro, thanks .. need the kernel auditor link, i guess its not in the build , or please tell how to use it
Kernel auditor link not working.
Please provide a new one.
praveen139 said:
Can we use it for nougat also ?
Click to expand...
Click to collapse
Yes its working perfectly in Lineage 14.1 and pubg works without lag issue
---------- Post added at 11:11 AM ---------- Previous post was at 11:06 AM ----------
jaydeep darandale said:
Wlan.co file is missing from the directory you mentioned. Where can I get that file? My wifi/hotspot does not work. Other than this this kernel works perfectly with nitrogen os 8.1.
Click to expand...
Click to collapse
get that wlan.ko from another kernel for you yureka and paste inside the kernel in module folder use zarchiver
Hariprasad01 said:
Yes its working perfectly in Lineage 14.1 and pubg works without lag issue
---------- Post added at 11:11 AM ---------- Previous post was at 11:06 AM ----------
get that wlan.ko from another kernel for you yureka and paste inside the kernel in module folder use zarchiver
Click to expand...
Click to collapse
Ive tried my level best to replace and even re compress the "wlan.ko" but nothing is working for me...
cannot open the wifi and hotspot shows error.. what can i do.. please help.. even tried re-flashing everything..
Wifi and hotspot not working.!!
This feels to be the best and the smoothest kernel that I've used till date, but the wifi and hotspot is not working. No matter what i do, even tried wlan.ko file from another kernel still its not working please help. I am using RR os and even on clean flash it is not working. Please help...
Could anybody please answer my question!!!
Shreyas Parashar said:
This feels to be the best and the smoothest kernel that I've used till date, but the wifi and hotspot is not working. No matter what i do, even tried wlan.ko file from another kernel still its not working please help. I am using RR os and even on clean flash it is not working. Please help...
Click to expand...
Click to collapse
I seriously am waiting for my reply,, please help me with the wifi fix!!!
Kernel is discontinued.
A second more
Ayush Rathore said:
Kernel is discontinued.
Click to expand...
Click to collapse
Can u just help me withthe way to wifi fix.?
help me with building of this kernel with my battery 4000maH
Ayush Rathore said:
Kernel is discontinued.
Click to expand...
Click to collapse
i am trying to build kernel from your source, (in ubuntu c9.io cloud )
but i get failed with errors, using tomato-nougat brach and GCC-prebuilt-8 toolchain
i think your build.sh contains many different command for ubuntu to understand ! isn't ?
help

[Kernel] SMF-KERNEL - RR/AICP/LOS/AOSP - 8.1

Hello!
I want to introduce my first custom kernel for the Essential PH-1. This is based of several sources, I cherry-picked commits to make improvements to the stock LOS kernel. I'm not a developer, but i really like to port stuff over .
Kernel is suitable for AOSP based ROMS such as RR/AICP/CARBON/LOS etc... If you want to request for specific features, let me know and i'll do my best to bring them over.
Special Features:
Updated to lastest LOS Stock Kernel
Added a few governors like: cultivation / impulse
added a few IO Schedulers: Maple
Kcal Color Control driver
USB Fast Charge - pending will be added in R2
SafetyNet Patch (Bypass bootloader unlocked check)
Dynamic Fsync control
a little Overclock - will be added in R2
Motorola Quickwake - Will be added in R2
and manny other small fixes (you can check the commits in the sources)
Download
Disclaimer: I am not responsible if you use this and brick your device or if your device blows up, implodes, flames start shooting from it or it kills your neighbor's dog. Flash at your own risk. I am not responsible.... It was the other guy... I swear....
Latest Release: SMF-Kernel R2
Known issues:
05.17.2018 - CPU Freq don't always stick, known issue caused by other drivers. Phone will eventually set your frequencies, dont' panic.
Installation:
Obviouly you have a Unlocked Bootloader since you're running a custom rom (make sure to never lock your bootloader in this state)
Boot into Bootloader (adb reboot Bootloader)
If you want to root flash the "Magisk" version of the kernel, it's been prerooted with the latest Magisk Beta available.
Code:
fastboot flash boot SMF-Kernel-R1-Magisk.img
reboot
If you want to manually root, first flash twrp, then from twrp flash the 'non magisk' version and after that flash the magisk zip.
Special Thanks to:
jcadduono
franciscofranco
bedalus
lord_boeffla
flar2
sultanxda
...and many others from whom i cherry pick commits... Sorry if I forgot to mention anyone!
XDA:DevDB Information
SMF-KERNEL, Kernel for the Essential Phone
Contributors
jimbo77
Source Code: https://github.com/Jimbo77/android_kernel_essential_msm8998
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: R1
Stable Release Date: 2018-05-17
Created 2018-05-17
Last Updated 2018-05-17
Changelog 05.23.2018
Enabled Motorola QuickWake Driver - This will enable system to do checks or syncs without fully resuming the device, main objective is battery life.
Enabled Dynamic Sync Control by default
OverClock
USB Fast Charge to up 900ma (Original is 500ma)
Disabled Gentle Fair Sleepers
Enabled Boefla Wakelocks - Check the ammount of wakelocks you can block now!
Enabled Wireguard
Enabled several TCP Options - "Westwood" is enabled by default
Min/Max Brightness options is now configurable as well, to avoid the screen go too dim or to bright.
Somehow camera has been fixed! haha
Changelogs 05.17.218
Updated to lastest LOS Stock Kernel
Added a few governors like: cultivation / impulse
added a few IO Schedulers: Maple
Kcal Color Control driver
SafetyNet Patch (Bypass bootloader unlocked check)
Dynamic Fsync control
and manny other small fixes (you can check the commits in the sources)
Reserved
Looks awesome! I'll give it a try soon!
(For anyone wondering about overclocking the CPU, he committed some changes to the github that would apply this and it should appear in the next revision of the kernel.)
Just installed and so far it's buttery smooth.
WARpig5 said:
Just installed and so far it's buttery smooth.
Click to expand...
Click to collapse
I'm glad is running fine for you!
Good stuff, thanks for this! Could you tell me a little more about cultivation? I can't seem to find much information online about it
Also a request, if possible vibration level control would be super appreciated
pantherking said:
Good stuff, thanks for this! Could you tell me a little more about cultivation? I can't seem to find much information online about it
Also a request, if possible vibration level control would be super appreciated
Click to expand...
Click to collapse
I found Cultivation to be really great in terms of perfornance. It's a little bit agressive with the CPU so you get buttery smooth experience with Screen On but it may cost a few % on battery at the end of the day. The good thing is that it has specific tunables and you can set a low cpu freq for when the screen is off.
Specific details from its developer:
-based off of caf 4.4 commits
-uses per-pcu timers
-use state_notifier for screen off timer
option to set different timer rate when screen off
-improrted fastlane with threshold from blu_active
In regards of vibration control. It should be there. I'm using EX Kernel Manager and i can see the vibration option under "Miscellaneous"
jimbo77 said:
I'm glad is running fine for you!
Click to expand...
Click to collapse
Thanks for this. It's running amazing so far. Performance has been great and I'll see how battery life is, but so far it's great.
I can't wait for further updates. I really wanna see what Moto quickwake is haha
jimbo77 said:
In regards of vibration control. It should be there. I'm using EX Kernel Manager and i can see the vibration option under "Miscellaneous"
Click to expand...
Click to collapse
Thanks for the info on cultivation, I don't mind trading some battery life for butter so I'm using it now
For the vibration control, it doesn't actually work/stick. I've tried kernel auditor and EX Kernel Manager. To be fair, so far it has only worked on LOS and I think invisiblek may have rewritten the stock controller or something so no worries if it isn't a high priority haha
pantherking said:
Thanks for the info on cultivation, I don't mind trading some battery life for butter so I'm using it now
For the vibration control, it doesn't actually work/stick. I've tried kernel auditor and EX Kernel Manager. To be fair, so far it has only worked on LOS and I think invisiblek may have rewritten the stock controller or something so no worries if it isn't a high priority haha
Click to expand...
Click to collapse
I'll take a look at the latest commits but I've used the latest los kernel base so I'm not sure why is not sticking maybe it needs rom support too (not sure honestly) hahaha
I've been testing R2 since yesterday. Will update after y he weekend!
Just out of curiosity, was anything involving the camera done to this kernel? I am now able to record videos without the bug, on any of the affected ROMs, with this kernel.
stompysan said:
Just out of curiosity, was anything involving the camera done to this kernel? I am now able to record videos without the bug, on any of the affected ROMs, with this kernel.
Click to expand...
Click to collapse
Nothing related to camera. Are you sure it works with no issues?
What roms have you tested?
jimbo77 said:
Nothing related to camera. Are you sure it works with no issues?
What roms have you tested?
Click to expand...
Click to collapse
So far, AICP and LOS, both with Essential camera app and GCAM port, HD and 4K, 30 and 60 fps where applicable. Issues presented before flashing very consistently, and so far I have been unable to replicate after flashing this kernel.
stompysan said:
So far, AICP and LOS, both with Essential camera app and GCAM port, HD and 4K, 30 and 60 fps where applicable. Issues presented before flashing very consistently, and so far I have been unable to replicate after flashing this kernel.
Click to expand...
Click to collapse
Sp you were right. Honestly don't know what happened but I installed the latest RR (clean install) put R2 on top of it and bam recording works as you mentioned lol..
I guess it was a lucky strike!
after flashing the kernel with magisk, stuck on "AICP is starting"
is this normal?
update: the phone works but no magisk (pre root) after flashing the kernel.....
sinkoo1979 said:
after flashing the kernel with magisk, stuck on "AICP is starting"
is this normal?
update: the phone works but no magisk (pre root) after flashing the kernel.....
Click to expand...
Click to collapse
Hey!
Have you booted once and setup everything before flashing the prerooted image?
I've had that error but having all set and then flashing the image will get me rooted. Try to see if you can find magisk manager in the apps list from the settings if you do, reboot and there will be magisk
Double post... Sorry
jimbo77 said:
Hey!
Have you booted once and setup everything before flashing the prerooted image?
I've had that error but having all set and then flashing the image will get me rooted. Try to see if you can find magisk manager in the apps list from the settings if you do, reboot and there will be magisk
Click to expand...
Click to collapse
Thank you for the reply.
the phone was running AICP and I wanted root so I flash the kernel. I can't find the magisk manager or in the settings about magisk. I guess you have to clean install from the beginning to get the root. Thank you for the Kernel
sinkoo1979 said:
Thank you for the reply.
the phone was running AICP and I wanted root so I flash the kernel. I can't find the magisk manager or in the settings about magisk. I guess you have to clean install from the beginning to get the root. Thank you for the Kernel
Click to expand...
Click to collapse
Shouldn't. If you flashed the prerooted magisk image try downloading the magisk manager app manually from xda and see if magisk works

[ALL][Kernel][8.1][AOSP] LightningZap! Kernel

Greetings all!
Introducing LightningZap! kernel for the Moto Z2 Force. It is based off Pantheon kernel with some of my own little tweaks and enhancements to improve performance and battery life.
Pantheon features:
Upstream kernel from source
Edits to avoid Safetynet/CTS (If you have root, it will fail signature check inherently without SUhide or Magisk hide)
Disabled CRC check
Disabled dm-verity
Over Clock / Under Clock on CPU Frequencies added:
Little CPU: 175 MHz, 230 MHz, 2035 MHz
Big CPU: 175 MHz, 230 MHz, 2476 MHz; 2592 MHz
Slight undervolt (our device is overvolted compared to other msm8998 devices)
UC GPU (added 180 Mhz step for battery savings when web browsing, low GPU usage)
OC GPU (changed 710 MHz to 750 MHz)
Same Adrenoboost tweaks as the Pixel 2 ElementalX kernel.
Wakelock fixes by Boeffla
Added Zen, FIOPS, BFQ, and SIO IO schedulers
LigthningZap! Features:
Insane readahead tweak: No need to raise readahead cache with a kernel tweaker. With this tweak all partitions are set to their maximum readahead possible and is handle by the io-scheduler. This tweak is best used with FIOPS (set by default), BFQ and SIO schedulers. I haven't ran many tests on other schedulers.
LightningZap! sysctl tweaks: Adjust values for kernel system controls for better performance and battery life.
Lionheart governor added: This is the recommended governor for LightningZap! kernels. I have set the dbs_tuners_ins.sampling_rate and min_sampling_rate to 100 (lowest value)so the end user can adjust the values in their favourite kernel tweaker add to suit their needs. It's very simple, when setting the sampling rates, a high number will improve battery life but performance will take a slight hit, and a lower number will increase performance but battery life will take a small hit. Values for these range between 100-1000. This governor is not set by default, but can be set with you favourite kernel tweaking app
Aroma Installer: Same options as in Pantheon kernel for now. More to come as I work them in.
Compiled with Linaro 4.9 only (no clang here)
See second post for fixes, improvements, changelogs, and downloads
Source code: LightningZap! kernel for nash
Flashing Instrcutions:
Device must be rooted with custom recovery (TWRP)
Place LightningZap! kernel for nash on sdcard
Reboot to recovery and flash .zip
Follow on screen prompts
Re-flash root (Magisk)
Reboot, wait 15 minutes, and enjoy
For further adjustments, I recommend Kernel Toolkit
I wasn't going to post this kernel, but since there is very little other support and options going on with this phone, I changed my mind. I ask everyone to keep things civil, do your best to stay on topic, be patient when asking/answering questions, try to search for an answer before you post a question, and PLEASE make a backup.
Special thanks to Uzephi for the base source code (Pantheon Kernel)
Fixes, Improvements, Changelogs, and Downloads
LightningZap! kernel for nash v1.0 (Download link)
Insane readahead tweak (v2)
LightningZap! sysctl tweaks
Lionheart governor
Aroma Installer
Compiled with Linaro 4.9 only (no clang here)
USB Tethering fixed
Working on LineageOS?
matheusgcdj said:
Working on LineageOS?
Click to expand...
Click to collapse
He used my LOS base. Will work on LOS, but not other AOSP ROMs. @thomas.raines, you might want to start merging from o8x-caf. Your kernel is at 4.4.132 latest stable is 4.4.138. (Just going off your git). It might make WiFi break with LOS, but @npjohnson stated they will be merging those caf commits in the very near future where you don't need two forks anymore.
Thanks for the USB tethering fix as well. Merged into mine today and sending a release shortly.
Edit: oh, yeah, verity bypass isn't in my kernel anymore, so if you want to add it, you might want to pick it from EX, Franco, or Kirisakura kernels. Didn't see the point, so when I rebased, I didn't pick it in.
matheusgcdj said:
Working on LineageOS?
Click to expand...
Click to collapse
Haven't tested. Would be nice if you tested for me...
Uzephi said:
He used my LOS base. Will work on LOS, but not other AOSP ROMs. @thomas.raines, you might want to start merging from o8x-caf. Your kernel is at 4.4.132 latest stable is 4.4.138. (Just going off your git). It might make WiFi break with LOS, but @npjohnson stated they will be merging those caf commits in the very near future where you don't need two forks anymore.
Thanks for the USB tethering fix as well. Merged into mine today and sending a release shortly.
Edit: oh, yeah, verity bypass isn't in my kernel anymore, so if you want to add it, you might want to pick it from EX, Franco, or Kirisakura kernels. Didn't see the point, so when I rebased, I didn't pick it in.
Click to expand...
Click to collapse
I'm using your AOSP branch (I thought)... It's working on AOSiP flawlessly. Thanks for the heads up on the verity bypass. I'm actually working on that now, but not sure if I'm going to or not... Glad I could help with the USB thethering...
thomas.raines said:
Haven't tested. Would be nice if you tested for me...
I'm using your AOSP branch (I thought)... It's working on AOSiP flawlessly. Thanks for the heads up on the verity bypass. I'm actually working on that now... Glad I could help with the USB thethering...
Click to expand...
Click to collapse
Pantheon branch is stale, o8x-caf is current.
Motomods?
Sent from my Moto G4 Plus using XDA Labs
KelleyCook said:
Motomods?
Click to expand...
Click to collapse
If it comes off my source, Motomods should work.
thomas.raines said:
Haven't tested. Would be nice if you tested for me...
I'm using your AOSP branch (I thought)... It's working on AOSiP flawlessly. Thanks for the heads up on the verity bypass. I'm actually working on that now, but not sure if I'm going to or not... Glad I could help with the USB thethering...
Click to expand...
Click to collapse
Removed the stale branch. My source just got 4.4.139 merged into it. I use Nathan Chancellor's msm-4.4 tree if you ever don't want to wait for jbats or I to push the Linux-stable commits.
Uzephi said:
Removed the stale branch. My source just got 4.4.139 merged into it. I use Nathan Chancellor's msm-4.4 tree if you ever don't want to wait for jbats or I to push the Linux-stable commits.
Click to expand...
Click to collapse
Just merged the 08x-caf branch... Thanks
So if flashed on stock and it broke my Wifi how do I go about fixing it? This Moto Z2 force is like starting all over. I thaught i was good at this once? Other than no WiFi the kernel works great. Thanks for the development this phone needs all it can get.
I got a bootloop. Any advice?
I'm on Lineage OS 15.1-20181106.
zZLord said:
I got a bootloop. Any advice?
I'm on Lineage OS 15.1-20181106.
Click to expand...
Click to collapse
Unless OP updated for Treble (mounting /vendor instead of /oem) this won't work on Treble. Any LOS built after August is Treble enabled. Try with DU official.

[Kernel][10.06.2022][4.9.317][Android 12]Kirisakura_S 5.1.1 for Pixel 3/XL aka Bluecross

Kirisakura-Kernel for the Pixel 3 and Pixel 3 XL
Hello everyone,
To keep it short: Here is Kirisakura - Kernel for the Pixel 3 aka Blueline and the Pixel 3 XL aka Crosshatch, together Bluecross.
I would appreciate if everybody that flashes the kernel, reads at least once through this opening post and the following ones.
Kirisakura - Kernel is designed to bring a handful of beneficial features to the device, while ensuring excellent performance and smoothness to get you safely through the day!
This project aims to keep most of the subsystems updated, way ahead of the stock kernel, thereby improving security and performance, while keeping stability as the focus during testing! This includes Linux-Stable, CAF-Upstream and kernel/common.
If reading about upstream in the paragraph above got you curious,have a read about Linux-Stable and why it is important here. The stable-process is not the same for every subsystem, but the general idea, rule of thumb and benefits are applicable for other subsystems as well.
Quick explanation of CAF-Upstream. CAF is short for Codeaurora-Forums. This is the place where development from Qualcomm for their SoCs happens. This includes the Snapdragon 845 that´s built into Pixel 3 and Pixel 3 XL.
The kernel-bases available on the Codeaurora-Forums, are basically the foundations OEMs use, to build their own kernel additions on top for devices featuring Qualcomm SoCs.
The Qualcomm developers push regular updates to the bases of the different SoCs, a bit similar to how Linux-Upstream works. OEMs usually stop updating the initial base after the phone is released.
This kernel focuses amongst the other features to provide the latest CAF-Updates merged in a regular manner, to provide updates, improvements and enhancements for SoC specific drivers and subsystems! This might take a while, because a lot of device specific testing is done on my end to ensure stability.
The EAS implementation is heavily updated with changes from CAF, kernel/common and other improvements.
To have a read about our scheduler, which is called EAS, take a look here:
https://developer.arm.com/open-source/energy-aware-scheduling
Main Features:
- Based on latest kernel sources from Google, Kernel is made for Android 12 (Android S)!
- Linux-Stable-Upstream included to latest 4.9.317
- compiled with prebuilt Clang 13.0.1 from Google and built with -O3 optimizations
- ZRAM patched up to latest kernel/common state and use ZSTD LZ4 as default compression algorithm to improve memory managment (more info see this post regarding the earlier switch to ZSTD) and this post regarding the switch back to LZ4
- fixes the magisk freezes caused by f2fs-stable
- Safety Net patches are included -> Kernel passes Safety Net
- Wake Gestures from @flar2 included
- Flashing the kernel will keep root!
- Tested to work on custom ROMs
- Flashable via EXKM and FKM on a rooted system!
- AnyKernel3 powered by @osm0sis (big thanks!)
EAS related features:
- EAS implementation patched up to latest CAF state
- Schedutil is patched up with kernel/common and CAF patches to improve performance and efficiency!
- Memory Leaks inside EAS are fixed
- disable autogroups and use cgroups for more efficient task placement!
- Enable sched_min_task_util_for_boost_colocation feature from CAF
CPU related features:
- Power saving workingqueues enabled by default (toggleable in EXKM)
have a read here: https://lwn.net/Articles/731052/
this complements EAS in general
- Change various drivers (WLAN, MM, audio, charger, power, thermal, glink etc) to user power efficient workingqueues. This should work well in conjunction with EAS
- improved Schedutil governor
- Add hold functionality to schedtune CPU boost
- WQ_HIGHPRI for the IO and crypt workqueues (replaces googles approach with a better upstream one)
- cpufreq/times vastly improved
File System related features:
- Include rapid GC by @arter97 ( best thing is to read the commit description linked here. I compared GC on stock google f2fs, upstreamed f2fs and f2fs with rapid GC. Rapid GC is the most effective, followed by upstreamed f2fs.)
- Set the bio REQ_NOENCRYPT flag (When lower layers such as dm-crypt observe the REQ_NOENCRYPT flag, it helps the I/O stack avoid redundant encryption, improving performance and power utilization. )
Usability related features:
- High Brightness Mode for increasing backlight level related to brightness accessible via EXKM app
- High Brightness Mode for just boosting display to max level accessible via EXKM app
- Vibration Intensity adjustable via EXKM app
- Backlight dimmer functionality included (adjustable via EXKM App)
GPU related features:
- KCAL to control the display
- KLAPSE integrated
- KCAL/KLAPSE: changes safety measures -> allow completely disabling two RGB values (this was requested to, for example, only have red values on night dimming)
- Enabled NAP power saving state of Adreno 630
- improve GPU profiling for improved rendering performance (1,2 , 3 )
- Update GPU driver to latest CAF state
Network related features:
- Wireguard Support (Details)
Memory related features:
- Enable Userspace LMK/freak07/Kirisakura_bluecross/commit/aac453635549699c13a84ea1456d5b0e574ef855"]2[/URL])
- Patch up kernel LMK backend (PSI) with kernel common upstream
- ZRAM patched up to latest kernel/common state and ZSTD LZ4 as default algorithm. (information can be found in this post regarding the switch to ZSTD, which is now reverted) and this post regarding the switch back to LZ4
- possibility to use lzo-rle as default ZRAM compression algorithm (more information here and there )
- possibility to use zstd as default ZRAM compression algorithm!
- Speculative Page Faults (1. 2)
- Fix various memory leaks in different subsystems
- Reap memory of a task that receives sigkill
- various other changes from mainline
Sound related features:
- Adjust microphone gain via sound control in EXKM
- Adjust speaker gain via sound control in EXKM
Security related features:
- CFI and LTO both kept intact and are used to keep additional security Google implemented for us!
- Shadow Call Stack
- built with latest clang found on google repo
Misc Features:
IO-Schedulers:
- cfq
- maple
- deadline
- noop
- tripndroid
- fiops
TCP Congestion Algorithms:
- advanced algorithms enabled
- includes new bbr and sociopath tcps
Wakelock Blocker:
- advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
- please read this for further info
Other features:
- enable some additional Sony and XBox controllers
- add support for steam and nintendo switch controller
- patches to loop device, xfrm and usb gagdet
- disable logging to make the kernel more lightweight in various places
- add support so you can enable faster charging for non pixel wireless charging stands (use at your own risk, disabled by default, how to enable here)
Feature section for the "non visible" but perceptible improvements:
- updated binder section (responsible for interprocess communication)
- updated sdcardfs ; have a read about it here:
Requirements
- unlocked Bootloader
- USB-Debugging in developer options enabled
- latest adb and fastboot binaries
- working adb and fastboot environment
How to flash the Kernel:
1. Download the kernel.zip to your device. Make sure your device is rooted properly, with the magisk version suiting your current firmware version.
1a. Optional: While it may not be necessary all times, you may want to restore stock boot.img, reroot with magisk and optionally install twrp.zip if coming from another kernel. Before reporting issues make sure you do that! Thank you!
2. Flash the kernel.zip via either a kernel manager app capable of flashing kernels or TWRP if available. Make sure whatever method/app you decide to use, supports your current Android Firmware. Apps/Recoveries need to be possibly updated for firmware updates!
It´s your job to ensure compatability.
Flashing the kernel will preserve root.
3. Reboot and profit! Before reporting any issues make sure to read the Release-Post of Bluecross_Q_Release_1.0.0!
DOWNLOAD:
Download is located in these respective folders:
Android 9:
Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
Android 10/11:
Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
Android 12:
Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
Important: Read after Download
Please take a look at the second post after flashing the kernel!
Changelog:
Android 9 / Pie Kernels
1.0.0 Initial Release
1.5.0 https://forum.xda-developers.com/showpost.php?p=78151322&postcount=81
1.5.1 https://forum.xda-developers.com/showpost.php?p=78154423&postcount=112
1.7.0 https://forum.xda-developers.com/showpost.php?p=78196945&postcount=190
1.7.1 https://forum.xda-developers.com/showpost.php?p=78220526&postcount=227
1.7.2 https://forum.xda-developers.com/showpost.php?p=78221906&postcount=228
1.8.0 https://forum.xda-developers.com/showpost.php?p=78249473&postcount=267
1.8.1 https://forum.xda-developers.com/showpost.php?p=78280355&postcount=285
1.8.2 https://forum.xda-developers.com/showpost.php?p=78316038&postcount=345
1.8.3 https://forum.xda-developers.com/showpost.php?p=78330435&postcount=389
1.8.4 https://forum.xda-developers.com/showpost.php?p=78364541&postcount=451
1.8.5 https://forum.xda-developers.com/showpost.php?p=78377334&postcount=481
1.8.6 https://forum.xda-developers.com/showpost.php?p=78396058&postcount=538
1.8.7 https://forum.xda-developers.com/showpost.php?p=78420137&postcount=591
1.8.8 https://forum.xda-developers.com/showpost.php?p=78449511&postcount=621
1.8.9 https://forum.xda-developers.com/showpost.php?p=78496196&postcount=654
1.9.0 https://forum.xda-developers.com/showpost.php?p=78564181&postcount=701
1.9.1 https://forum.xda-developers.com/showpost.php?p=78637123&postcount=758
1.9.2 https://forum.xda-developers.com/showpost.php?p=78672005&postcount=775
Milestone 2.0.0 https://forum.xda-developers.com/showpost.php?p=78689028&postcount=782
2.0.2 https://forum.xda-developers.com/showpost.php?p=78761004&postcount=853
2.0.3 https://forum.xda-developers.com/showpost.php?p=78767857&postcount=867
2.0.4 https://forum.xda-developers.com/showpost.php?p=78805387&postcount=896
2.0.5 https://forum.xda-developers.com/showpost.php?p=78838240&postcount=928
2.0.6 https://forum.xda-developers.com/showpost.php?p=78840488&postcount=936
2.0.7 https://forum.xda-developers.com/showpost.php?p=78851682&postcount=953
2.0.8 https://forum.xda-developers.com/showpost.php?p=78898745&postcount=981
2.0.9 https://forum.xda-developers.com/showpost.php?p=78913421&postcount=991
2.0.10 https://forum.xda-developers.com/showpost.php?p=78950068&postcount=1007
2.0.11 https://forum.xda-developers.com/showpost.php?p=78975193&postcount=1025
2.0.12 https://forum.xda-developers.com/showpost.php?p=79009799&postcount=1041
2.0.13 https://forum.xda-developers.com/showpost.php?p=79043694&postcount=1067
2.0.14 https://forum.xda-developers.com/showpost.php?p=79050238&postcount=1103
2.1.0 https://forum.xda-developers.com/showpost.php?p=79136483&postcount=1182
2.1.1 https://forum.xda-developers.com/showpost.php?p=79159209&postcount=1221
2.1.2 https://forum.xda-developers.com/showpost.php?p=79190516&postcount=1261
2.1.3 https://forum.xda-developers.com/showpost.php?p=79214430&postcount=1279
2.2.0 https://forum.xda-developers.com/showpost.php?p=79291045&postcount=1372
2.2.1 https://forum.xda-developers.com/showpost.php?p=79332619&postcount=1452
2.2.2 https://forum.xda-developers.com/showpost.php?p=79425173&postcount=1531
2.3.0 https://forum.xda-developers.com/showpost.php?p=79463560&postcount=1569
2.4.0 + 2.4.1 https://forum.xda-developers.com/showpost.php?p=79505198&postcount=1623
3.0.0 https://forum.xda-developers.com/showpost.php?p=79533358&postcount=1641
3.1.0 https://forum.xda-developers.com/showpost.php?p=79570912&postcount=1685
3.1.1 https://forum.xda-developers.com/showpost.php?p=79575209&postcount=1698
3.1.2 https://forum.xda-developers.com/showpost.php?p=79578541&postcount=1722
3.1.3 https://forum.xda-developers.com/showpost.php?p=79612212&postcount=1743
3.2.0 https://forum.xda-developers.com/showpost.php?p=79658098&postcount=1774
3.3.0 https://forum.xda-developers.com/showpost.php?p=79696166&postcount=1807
3.3.1 https://forum.xda-developers.com/showpost.php?p=79736674&postcount=1829
3.3.4 https://forum.xda-developers.com/showpost.php?p=79791144&postcount=1857
3.4.0 https://forum.xda-developers.com/showpost.php?p=79919877&postcount=1929
3.4.5 https://forum.xda-developers.com/showpost.php?p=80023518&postcount=2064
Legacy Downloads for Pie Kernels: https://www.androidfilehost.com/?w=files&flid=285183
Android 10/ Q Kernels
1.0.0 https://forum.xda-developers.com/showpost.php?p=80269185&postcount=2132
1.1.3 https://forum.xda-developers.com/showpost.php?p=80324259&postcount=2199
1.2.0 https://forum.xda-developers.com/showpost.php?p=80533347&postcount=2291
1.2.2 https://forum.xda-developers.com/showpost.php?p=80809357&postcount=2325
1.3.0 https://forum.xda-developers.com/showpost.php?p=81115229&postcount=2451
1.4.0 https://forum.xda-developers.com/showpost.php?p=81418351&postcount=2519
1.4.1 https://forum.xda-developers.com/showpost.php?p=81421719&postcount=2529
1.5.0 https://forum.xda-developers.com/showpost.php?p=81684289&postcount=2582
1.5.1 https://forum.xda-developers.com/showpost.php?p=81947785&postcount=2607
1.5.2 https://forum.xda-developers.com/showpost.php?p=82213193&postcount=2635
1.5.3 https://forum.xda-developers.com/showpost.php?p=82484463&postcount=2642
1.5.4 https://forum.xda-developers.com/showpost.php?p=82742517&postcount=2688
1.5.5 https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-84424203
Android 11
2.0.0_R https://forum.xda-developers.com/showpost.php?p=83554503&postcount=2753
2.1.0_R https://forum.xda-developers.com/showpost.php?p=83649655&postcount=2808
3.0.2_R https://forum.xda-developers.com/showpost.php?p=84007163&postcount=2906
3.0.4_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-84230135
3.0.5_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-84605183
3.0.6_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-84812093
3.0.7_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-84975703
3.0.8_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-85166867
3.0.9_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-85298651
3.1.0_R https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-85432093
Android 12
4.0.0_S https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-85808391
4.1.0_S https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-86249089
5.0.0_S https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-86413291
5.1.0_S https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-86541411
5.1.1_S https://forum.xda-developers.com/t/...ixel-3-xl-aka-bluecross.3864563/post-87007931
Donations:
Donations are not mandatory but very welcome if you want to support development or just buy me a coffee
If you like my work: http://paypal.me/freak07
Credits:
@osm0sis for all his work, including the ak3 installer!
@tbalden for being the best HTC wingman!
@LeeDroid for his awesome roms!
@Captain_Throwback for all the mentoring and guidance!
@Eliminater74 for bringing me into the game and the Inspiration
@nathanchance for his upstream guidance and assistance
@RenderBroken for helping me out
@flar2 for all his work
@joshuous for all the help he provided to me in the past!
@topjohnwu for magisk!
@Sultanxda for all of his work!
Contributors
Freak07
Source Code: https://github.com/freak07/Kirisakura_bluecross/
FAQ
Important: What to do if you face issues on Android 10/Q
You might face issues on Android 10 like non working sensors, edge sense not working properly or similar things.
Here´s a thread that has more info about it: https://forum.xda-developers.com/pixel-3-xl/how-to/android-10-sensors-bug-t3964904
This also caused seemingly in a random fashion issues with magisk modules not unpacking properly when you flash them via magisk manager.
I recommend everybody who faces symptoms of random issues, which they cannot explain, to completely nuke their device and flash a factory image with -w intact, as to complete set up the device from scratch.
This will wipe your whole phone, so backup videos, photos, music, apps and other stuff you don´t want to lose! 
 @jcmm11 and me were hunting this magisk bug for a week and it turned out it´s connected to the above mentioned issue, although it gets more prominent by the latest CAF - EAS changes, which are merged in my kernel. Probably due to the way tasks get handled a bit differently.
Please everybody keep this in mind, before reporting back.
Question: Upon flashing the kernel zip I got a message that there is an error with ramdisk. What to do?
Answer:
Procedure to fix the ramdisk issue:
The ramdisk error is now fixed. Please take a look at this post from @osm0sis for more information:
Big thanks to @osm0sis and @topjohnwu for everything at this point here! And everyone else that helped in the process!
Important:
What do you have to do to get finally rid of the ramdisk error?
1. Flash back a stock clean boot.img either for stock rom or the custom rom you´re on. (not a backup from some time ago, a clean stock boot.img)
Link to stock boot.img from Google´s december factory image for convenience
2. REDOWNLOAD(!) either magisk 18.0 or the latest canary directly from magisk manager and delete all old magisk zips on your device. (this is really important!)
3. Optional: Reinstall twrp.zip if you want to.
4. Flash the redownloaded magisk zip in TWRP
5. Flash my kernel either via TWRP, EXKM App or FKM App
6. Profit
Question: Is root preserved when flashing this kernel?
Answer: My kernel.zip keeps a device rooted by magisk rooted.
Question: How to report bugs properly?
Answer: Have a look at post #3 in this thread. The linked guide is a pretty good starting point.
Before reporting any bug make sure you´re not using any mods, magisk modules, scripts or other modifications that alter various functions like sound mods etc.
Try to describe the issue as detailed as possible! Give your exact setup, like rom, magisk version, kernel version.
Is the issue reproducible? Does it happen frequently?
Provide logs, otherwise debugging is a lot harder. If you can already reproduce the issue and provide logs it greatly limits the amount of time I have to spent until I figure out how to reproduce it.
If the device force reboots/randomly reboots (that means you see the bootloader unlocked screen!) provide a ramoops file.
Easiest way is immediately after booting up, with a root explorer navigate to sys/fs/pstore. Copy the contents to your internal storage, zip it up and send it to me.
If the issue happens while the device is running provide a dmesg plus a logcat that you take while/shortly after the issue happens. This will log what´s running in the current session. Try to be as detailed as possible what´s happening when the issue appears. It will also help me in reading the log!
To easily get a logcat in case of a crash take a look at this post:
https://forum.xda-developers.com/showpost.php?p=79462002&postcount=1566
Big thanks to @jcmm11 for it
Here´s a tasker task to automatically copy /sys/fs/pstore on each boot to internal storage. Be advised these files get also created on correct reboots.
https://forum.xda-developers.com/showpost.php?p=79549126&postcount=1670
thanks @jsauder2 for this little trick
Useful Resources
How to report bugs:
It is incredibly useful if bug reports are done in a proper way. That saves everyones time and will ultimately lead to a faster bugfix (hopefully).
The following guide from @nathanchance is a very good guideline on how to properly report a bug!
https://github.com/nathanchance/Android-Tools/blob/master/Guides/Proper_Bug_Reporting.txt
Gonna give this a go now. Thanks!
Sweet, thank you sir!
Sent from my Pixel 3 XL using Tapatalk
fsync toggle?
How much do the 3 and xl differ on kernel level?
Would this flash and work on the 3?
frewys said:
How much do the 3 and xl differ on kernel level?
Would this flash and work on the 3?
Click to expand...
Click to collapse
Working on mine
RE: " - Flashing the kernel will keep root ! "
Who had done the steps and ( then the pixel ) lived to see to see another happy day ?
( assuming magisk ( root ) is installed and and has been happy for days... )
turn security pin off, fastboot twrp_323 image, twrp the kernel zip, twrp the twrp_323 zip, reboot back into twrp, wipe the cache to see that the finger presses workie, boot to system, re-verify root is okay, buy the man a beer...
May I ask if you could add zram zstd from Pixel 2 XL ? It is a BIG improvement for ram management.
Gesendet von meinem Pixel 3 XL mit Tapatalk
frewys said:
How much do the 3 and xl differ on kernel level?
Would this flash and work on the 3?
Click to expand...
Click to collapse
Kernel is unified, the main difference is the display driver (ftm5 vs sec_touch)
virtyx said:
fsync toggle?
Click to expand...
Click to collapse
I can include it, but I recommend to leave it on. I know several people that suffered from corruption when something unexpected happened and their device shutting down.
I´ll include the toggle but leave fsync on by default, just like the wakelock blocker.
frewys said:
How much do the 3 and xl differ on kernel level?
Would this flash and work on the 3?
Click to expand...
Click to collapse
Chronzy said:
Working on mine
Click to expand...
Click to collapse
thanks for chiming in @frewys
also thanks for confirming it works on the regular pixel 3 too @Chronzy
old_fart said:
RE: " - Flashing the kernel will keep root ! "
Who had done the steps and ( then the pixel ) lived to see to see another happy day ?
( assuming magisk ( root ) is installed and and has been happy for days... )
turn security pin off, fastboot twrp_323 image, twrp the kernel zip, twrp the twrp_323 zip, reboot back into twrp, wipe the cache to see that the finger presses workie, boot to system, re-verify root is okay, buy the man a beer...
Click to expand...
Click to collapse
yeah it works I tested it.
In theory you can flash the kernel "on the go" without a computer and keep root via franco kernel manager. which is pretty handy.
although I only recommend to tinker with pixel phones when a computer is nearby and available. :good:
Komodoketavaran said:
May I ask if you could add zram zstd from Pixel 2 XL ? It is a BIG improvement for ram management.
Gesendet von meinem Pixel 3 XL mit Tapatalk
Click to expand...
Click to collapse
yes that´s one of the things I definitely wanted to try in the nearby future. it was my kernel that firstly introduced it on the pixel 2 xl but memory managment on my unit is not as bad as I saw in some reviews/videos.
Additionally I think the underlying cause, when Pixel 3 cannot hold more than 3 apps in background is a bit different than pixel 2 xl "just having 4gb of ram".
But I´m sure there is room for improvement. Just wanted to use the phone as it is to get a baseline of how it works before I start modifying all sort of stuff.
Freak07 said:
I can include it, but I recommend to leave it on. I know several people that suffered from corruption when something unexpected happened and their device shutting down.
I´ll include the toggle but leave fsync on by default, just like the wakelock blocker.
Click to expand...
Click to collapse
Thank you that'd be great
Freak07 said:
yeah it works I tested it.
In theory you can flash the kernel "on the go" without a computer and keep root via franco kernel manager. which is pretty handy.
although I only recommend to tinker with pixel phones when a computer is nearby and available. :good:
Click to expand...
Click to collapse
Can confirm it's working. I flashed with FK Kernel Manager. Root still intact, Magisk and all still installed.
Worked for me to flash try exkm
Root remainder. Was hoping the kernel would fix an issue with magisk not passing safety net whenever hit the check safety net. It asks me to download. I hit yes and then it fails immediately was like this on stock as well
That would be great. It is very bad on my unit.
On my P2XL there are nearly no redraws with your kernel
Freak07 said:
yes that´s one of the things I definitely wanted to try in the nearby future. it was my kernel that firstly introduced it on the pixel 2 xl but memory managment on my unit is not as bad as I saw in some reviews/videos.
Additionally I think the underlying cause, when Pixel 3 cannot hold more than 3 apps in background is a bit different than pixel 2 xl "just having 4gb of ram".
But I´m sure there is room for improvement. Just wanted to use the phone as it is to get a baseline of how it works before I start modifying all sort of stuff.
Click to expand...
Click to collapse
Gesendet von meinem Pixel 3 XL mit Tapatalk
old_fart said:
RE: " - Flashing the kernel will keep root ! "
Who had done the steps and ( then the pixel ) lived to see to see another happy day ?
( assuming magisk ( root ) is installed and and has been happy for days... )
turn security pin off, fastboot twrp_323 image, twrp the kernel zip, twrp the twrp_323 zip, reboot back into twrp, wipe the cache to see that the finger presses workie, boot to system, re-verify root is okay, buy the man a beer...
Click to expand...
Click to collapse
When I followed those steps my phone would only boot straight to twrp with no touch. Had to flash factory boot.img to get it back.

Categories

Resources