yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark_r178 (A13)

New build is up!

Tested on 13.0.0 (TQ3A.230605.011, Jun 2023).

For flashing and easy of install logging, Kernel Flasher is recommended

You can use Kernel Flasher/FKM download kernel feature, just import the link bellow in the app updates/flash section.

Download config: HERE

Changelog:

Keep in mind: I will give no active support for custom ROMs besides LineageOS.

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

Don't forget to hit like, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] creeve4:
@eng.stk

Thank you for the continued support of the Pixel 4a! I have been using your kernels (when available) since my Oneplus 5 days, I really appreciate everything you do and the time you freely give!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark_r179 (A13)

New build is up!

Tested on 13.0.0 (TQ3A.230705.001, Jul 2023).

For flashing and easy of install logging, Kernel Flasher is recommended

You can use Kernel Flasher/FKM download kernel feature, just import the link bellow in the app updates/flash section.

Download config: HERE

Changelog:

Keep in mind: I will give no active support for custom ROMs besides LineageOS.

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

Don't forget to hit like, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rafix96:
Absolutely the best kernel for our device.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] CharlesDicken:
How is this kernel differs from OEM kernel?

Able to set custom value for certain parameters?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] DiamondJohn:
I dont use this kernel, but isnt your question specifically and extensively answered in the OP? I think reading OP is a rule before posting on XDA.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] CharlesDicken:
EXKM and FKM:

-KCAL

-KLAPSE

-Backlight min brightness (which i think is part of klapse)

-FS Fsync toggle

and also all the various adreno gpu settings I think

All these features are not supported any longer.

The OP needs some updating to reflect the changes...
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] smithopher:
@eng.stk Can you please give some information on how to build this kernel from source? What toolchains did you use? I tried using the ones for android-msm-sunfish-4.14-android13-qpr3, but it fails.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] smithopher:
Ok, I managed to compile it now. I used clang 14 from the branch `android13-release` (rest from `android-msm-sunfish-4.14-android13-qpr3`), and otherwise passed the arguments to make as done here: https://github.com/lemniskett/andro...59a3f78e8decb55426f0caa2e5/entrypoint.sh#L179

I did additionally had to pass `KBUILD_COMPILER_STRING=..` - the automatically generated one had syntax errors.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] smithopher:
On my device after kernel crash /sys/fs/pstore is still empty. Can anyone please tell me if it also happens on his device? What ROM + Kernel do you use?

You can trigger a kernel crash (device will reboot) like this:

echo 1 > /proc/sys/kernel/sysrq

echo c > /proc/sysrq-trigger

EDIT:

So after I disabled magisk, /sys/fs/pstore gets filled again. Note that you have to also first do the pin unlock, otherwise pstore is not mounted.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] trungkhai:
silly question, does this support kernel su😅
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Nope.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Charlestai1225:
hey bruh i had build my kernel with kernelsu but it stuck when boot, might u help me to check about which figure is error since i had no device right now. Thanks and regards
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Nacang:
how to change adrenoboost setup?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
You can't, it was removed some versions ago.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Nacang:
Is there any way to pull boot.img?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Idesmi:
Does it work on Android 14?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] xT29c:
Same, I cant find anyway to change it.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] bobbarker2:
Same here but for EXKM. I'm sure eng.stk will figure it out soon. Very happy with the features/additions this kernel brings to the device!

Fun seeing GPU Boost and Fsync exposed again!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
Thank you eng love your work.

I used your material on oneplus X I believe.

I've flashed your kernel 48 hours ago and it's all good as always.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Good vibes from the OPX, very nice device, perfect size imho.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark r23 (A11)

New build is up!

I'm happy with the nice base we have at the moment, tagged it stable.

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

blu_spark_r23 release

FKM download config: HERE

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] jmtjr278:
Flashed and running great so far. Will keep you updated. Thanks for the new build.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] gvsukids:
Is there a volume boost including the kernel?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Nope, I don't mess with that in my kernels.

Sent from my blu_spark'd OnePlus
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] gvsukids:
Thanks for the reply. Is there any way to boost volume on this phone?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark r24 (A11)

New build is up!

Seems like Google decided to sourcedrop soon after r23 release :silly:

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

blu_spark_r24 release

FKM download config: HERE

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] bobbarker2:
edit: nevermind I'm dumb. But still don't see vibration control/strength anywhere. Where is that value stored in the filesystem?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Seems to be on:

cat /sys/class/i2c-dev/i2c-2/device/2-005a/level

ask [MENTION=4684315]flar2[/MENTION] to add it to EXKM :good:
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] IntenseColor:
I tested this and could not set the intensity of the vibration. I was only able to turn the vibration off completely (set it to 0) or on (set it to 1 or higher).
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Seems like the original patch only considers on/off and interval strong/normal.

I'll see what I can do.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] bobbarker2:
EKXM dynamically enables features depending on what the kernel supports. Ex. If kernel didn't support high brightness mode then there would be option for it in EXKM. Could be the app is looking for the vibration strength settings in the wrong place. On the OP7pro with kernels that added vibration control, it displayed the slider in the GUI so it definitely supports it.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] beeshyams:
[MENTION=3873953]eng.stk[/MENTION]

Thanks for your work. Does the kernel support battery idle mode required for this module?

https://github.com/VR-25/acc

If not, would you consider adding it please?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark r28 (A11)

New build is up!

Fixed and extended the vibration levels settings and added PFR haptic on/off. USB fast charge is in also.

fast charge: /sys/kernel/fast_charge/force_fast_charge (1/0)

vibration level: /sys/class/leds/vibrator/device/level (0~100%)

or /sys/class/i2c-dev/i2c-2/device/2-005a/level

FPR vib control: /sys/module/fpc1020_platform_tee/parameters/haptic_feedback_disable_fpr (Y/N)

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

blu_spark_r28 release

FKM download config: HERE

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] jmtjr278:
Running great. Thanks [MENTION=3873953]eng.stk[/MENTION]
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] dr2big:
everything is good! I remember using blu_spark kernel from the old Nexus 5 days :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
I don't know why this morning I flashed r28 using json import with fkm and my device bootlooped ? (runing stock latest sunfish) should I try flashing latest kernel with fastboot ?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] IntenseColor:
I flashed r28 the same way and had no problems. I expect that the bootloop will be gone after flashing the stock kernel via fastboot.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
Where is the stock kernel ?

should i fastboot flash boot factoryboot ?

i looked through all factory image files and I can't see one called kernel.

Is kernel nested in boot img in factory image ?

While waiting I sideloaded latest factory image and rooted again.

I then flashed r28 again through json import in fkm no worries this time.

Could it be because I wasnt on latest factory image ?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] IntenseColor:
The stock kernel is contained in the file called boot.img. You can find it in every factory image but the version might be different of course. You can flash it with the command 'fastboot flash boot boot.img'.

I don't have enough info to tell you why you got the bootloop.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] jmtjr278:
I would suspect it was because you weren't on the latest factory image. When the new security update comes out you need to update to newest or problems can arise if there were kernel changes between builds. This is why you had bootloop issues.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
Yes I'm inclined to believe that was it.

The thing is : I'm running stock with magisk only and though I have been able to ota previous update I didn't have any notification about latest build.

I only learned it once I was crashed this morning.

Thank you for your time. Love this community.

Running well since then.

Thank you eng.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] oldseddie:
I noticed the latest release says R28 on the link but only offers R24 for download. Am I missing something?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] jmtjr278:
The link posted in the release post does indeed link to r24. However, if you go to the op and hit the link to download it will direct you to r28
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Fixed :cool:
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark r12 release (A11)

New build is up!

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

blu_spark_r35 release

FKM download config: HERE

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Chaplan:
And we meet again yet on a Goggle device.

Feels like the good old days of the former nexus 5.

Kernel is top notch, full of goodies.

Wasn't expecting this mind blowing battery usage on such a device to be honest, really good.

Snappiness just went wild with blu_spark.

Nothing new there but worth of notice still.

Keep up, it's blu time. :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_crew baby :highfive:
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark_r51 release (A11)

New build is up!

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

FKM download config: HERE

Changelog:

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] d33dvb:
Can you build in wireless monitor mode?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] jawz101:
It's been a few years since I've taken a look at kernels. It would be nice if some of the features had descriptions and a brief history. example:

adrenoboost, KLAPSE, KCAL, KGSL, ZRAM Swap (LZ4) and with swap file disabled, FS fsync toggle on/off

The fsync one I've heard of but I read mixed feelings about the benefit/risk. The rest I don't know if they are things random Android kernel modders invented or if they are latent features in the Linux kernel or Qualcomm chips-- I dunno. And when and who came up with making them "a thing we want."

It's been like a decade and I don't know how relevant or if there is empirical evidence they have benefits-- it's just a mystery to me these days.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] bobbarker2:
Is there any way you or someone else could provide an .img of your kernel? I had it installed prior to updating to December and now the magisk (canary) generated boot.img won't boot for me. DIsabled all modules and such before hand.. did the same procedure I've done every time when updating on 11.

I watch the logcat using monitor.bat on my computer of the device booting and it keeps getting stuck in a loop where its looking to set sound related settings. So taking a shot in the dark and seeing if someone can make an .img of the December build of this kernel and see if it will solve my problem.

Edit: Nevermind, fixed it. Apparently 1 module wasn't disabled and I was able to get rid of it during boot.

Thanks for the release!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rignfool:
Adrenoboost boosts the gpu frequency...

KLAPSE is a display driver that auto darkens and adds an amber or red tint to the screen to "reduce eye strain"...

KCAL is color calibration...

KGSL is the trustzone environment for display (IIRC)...

ZRAM is compressed pages is RAM...

Swap is physical disk space masquerading as RAM...
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] EriecTan:
there is typo on FKM config link, i think its should be https://raw.githubusercontent.com/engstk/kernelfkm/master/updater_pxl4a.json

anyway, thanks for the custom kernel!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rayray07:
hey will this kernel work for any device running android 11? i have a oneplus 6 running pixen os if that matters
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
If the ROM doesn't have any funky changes, sure.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rayray07:
welp i tried and it didnt work it said uncompatible device
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
do on terminal or adb shell and post the output:

getprop ro.product.device

getprop ro.build.product

getprop ro.product.vendor.device

getprop ro.vendor.product.device
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] rignfool:
Whoa killer...

This is the Pixel 4a
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] tcat007:
@eng.stk great to see you on the 4a! You need any contributions for a BS TWRP? That's all that's missing from Sunfish!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
I will not work on TWRP for this device, sorry.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] vable:
Someone use custom KCAL settings? I've noticed that the "Green" value keeps resetting on every reboot. All the other values i set will be intact. No big problem to set it again after reboots but it's still slightly annoying action. My Pixel 4a have nasty greenish screen without the customizing.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
What are you using to set it up?

sysfs are the same for the 3 RGB colors, kernel wise don't know why that would happen.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] vable:
I'm using EX Kernel Manager app to set it up.

//update

Tried FKM to set it up. All is OK after rebooting now . So it turns out that EXKM is buggy.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Yeah I just tested, was about to say the same ;p
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
Same Here using this setup with FKM its works great.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] aaronisham95:
I just flashed on ex kernel manager this is my first time flashing a kernel I assume after the flash and reboot it to applis all the values for me or what?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
Use fkm not exkm
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] aaronisham95:
Why
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] geeviens:
Guys is there any fix for low quality video call on a 48mp redmi note 9 I just bought this phone a few weeks ago
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] krotin:
As stated in post 66 exkm doesn't keep certain settings through reboot while fkm does.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] aaronisham95:
Okay thank you am using it now
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] aaronisham95:
How can I add this kernel config to get the auto updates.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] IntenseColor:
You need to add the URL to FKM under the Flasher tab.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] aaronisham95:
I know. I tried it didn't work. What url
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
https://raw.githubusercontent.com/engstk/kernelfkm/master/updater_pxl4a.json

It's in OP and every release post, c'mon.

Just import it on flasher section of FKM
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] aaronisham95:
Sorry I am new to custom kernels. I appreciate the help y'all..
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark_r63 release (A11)

New build is up!

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

FKM download config: HERE

Changelog:

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Frozen_Duck:
I am trying to build the kernel to hack around a bit but executing the make command with

CC=clang CROSS_COMPILE=...

etc. results in problems with the linker:

/usr/bin/aarch64-linux-gnu-ld.gold: error: arch/arm64/lib/lib.a: plugin failed to claim member arch/arm64/lib/atomic_ll_sc.o at 4338

Any idea why that would happen, are ATOMIC INSTRUCTIONS activated in this kernel ?

I resolved the issue by hard coding both HOSTLD and LD to LLD. Apparently there was some problem on my system regarding the different linkers.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark_r72 release (A11)

New build is up!

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

FKM download config: HERE

Changelog:

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

Don't forget to hit thanks, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Chrisnetika:
Perhaps a dumb question, this for RQ1A.210205.004 ota?

Also what the diff between this and holy angel kernel? Currently using holy angel 5.0 version on stock rom.

Also see alot mentions using fkm to flash,I have exkm.. I need to buy fkm? If not will I have issues using exkm?

Bluetooth and wifi scanning work correctly on this kernel?

Tia for the help
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] EriecTan:
Hi. help to answer here

you can use this kernel even when you are on january or february patch

you can use fkm or exkm to flash this

Yes
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Chrisnetika:
ok thank you will try this out after sideloading feb ota
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Royalfox:
Mr Spark I remember u back when I was using your kernel on the 3a! I now made the jump to the 4a and flashed this now, top notch work as expected. Thanks for the awesome kernel ♥
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Welcome mate. enjoy and thanks for the support ✌
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
blu_spark_r78 release (A11)

New build is up!

You can use FKM download kernel feature, just import the link bellow in the app :highfive:

FKM download config: HERE

Changelog:

Keep in mind: I will give no active support for custom ROMs (including stock based ones).

I am mostly interested on debugging stuff in stock ROM (with logs and reproducible steps to replicate the issue).

No mirrors please

Don't forget to hit thanks, it's free :)
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] bobbarker2:
Anyone succesfully update to March and achieve root?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] creeve4:
I did without issue.

I patched the boot.img before updating. Then placed the patched boot.img in the update zip (renamed it obviously) and flashed the factory image. Updated and rooted all-in-one. Then flashed blu_spark.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] the_hustler:
Thanks for the great work!
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] daemonspudguy:
Has anyone tried it on Android S DP1.1? I am curious if it works but am not stupid enough to try it.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
Probably not, A12 has a different tree.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] plout0n:
Hi there!

Thank you for your hard work.

So I've been out of the ROM game since last having a nexus 5g. I plan on staying stock while using this kernel. So if my thought process is correct:

Patch and flash stock kernel with magisk to obtain root.

Install franco kernel manager.

Use that to flash the kernel zip.

Here's where I get lost. How do i retain root through the flash? Can I extract the lz4 file and patch that before flashing?
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] eng.stk:
You only need stock rooted beforehand and use fkm to flash the kernel zip.

All will be handled by the kernel installer 👍

Between kernel updates, you just need to flash the kernel zip to update.
[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Chrisnetika:
Love this kernal, but wondering if there a way to enable all usb c host options like hdmi out?