[Google Pixel 4a 5G ROMs, Kernels, Recoveries, & Ot] momojuro:
Hello, friend.

Inspired by @wrongway213's original custom kernel for Pixel 4/XL, I decided to make my own project starting with the PIxel 4a 4G, and then wanted to expand the support to the Pixel 4a 5G. The naming is a tribute to both his ideas and Mr. Robot. fsociety tribute's goal is to give the device a set of useful features while ensuring its stability for a daily life usage. Those features and changes are pulled from different places like Sultan kernel, Arter97 kernel, Kirisakura and many more.

Features

General features

Built with Google Clang version 14.0.2 + LLD linker

Full -O3 build with chipset's flags included (thanks to @eng.stk and @Sultanxda)

AnyKernel3 powered installation to stay OTA and flashers (EXKM, FKM...) friendly

ARM64 architecture optimization and performance patches

Merged security and code fixes from Google and Qualcomm - CAF

Filesystem (ext4/f2fs) optimizations

Scheduler code improvements for better CPU tasks assigning

Disabled several debugging cruft

Memory related features

Merge zRAM and zRAM's compression algorithm code updates

Increase zRAM's disksize to 4GB (from the stock 2GB). Apps can be easily memory intensive nowadays...

Swap 1 page at a time instead of the default's 8, so that it may help in case "the device is under extreme memory pressure"

(source: https://source.android.com/devices/tech/perf/low-ram)

Reduce memory and CPU time usage by avoiding dynamic memory allocations in different kernel components (thanks to @arter97 and @Sultanxda)

Network related features

Set BBR as the default TCP network congestion control and switch to fq_codel queue discipline

(this combination improves network speed and reliability - thanks to @kdrag0n)

Enable support for TTL spoofing

Update Wireguard to its latest release

Power-saving related features

Some of the main kernel parts (such as the audio drivers and the WLAN driver's delayed work/tasks) now use power-efficient workqueues (thanks to @Freak07)

Display "power-saving tweaks" merged-in (from Proton kernel)

Reduce the GPU idle timeout set to 64 ms and implement GPU power-saving changes from Sultan kernel

battery: Tweak QG SOC to be more linear/monotonic (from Proton kernel)

That fixes the stock kernel's unlinear battery level curve, especially between 100% and 90%. The device will need a few charge-discharge cycles to take it into consideration

Performance related features

Faster system call filtering using BPF JIT (from Proton kernel)

Implement LRNG and enable it as default for better performance (more info at: https://www.phoronix.com/scan.php?page=news_item&px=LRNG-Random-2021-v41)

fuse: give wakeup hints to scheduler to speed up compress/decompress in internal storage (from Qualcomm,

found in P6's Kirisakura kernel)

Disable the GPU memory usage tracing (which was enabled for debugging purposes)

Return before thermal trip evaluates (it is a workaround for the lag occurring when the device is low on battery and automatically switches to battery saving mode)

Other under the hood changes

Extra features

KCAL Color Control support (from ElementalX/Cleanslate - thanks to @savoca, @tbalden, and @flar2)

Haptic Feedback level Control with Fingerprint Haptic Feedback Control support from blu_spark kernel (thanks to @eng.stk)

Boeffla Wakelock Blocker (to use with caution, and only if it is necessary)

Download & Links

#1.57 ZIP download: https://sourceforge.net/projects/fsociety-tribute/files/pixel4a-5g/fsociety-tribute-stable%231.57.zip/download

Android 12/L Franco Kernel Manager custom json: https://github.com/fsociety-tribute/redbull/raw/a12-rebase/fkm/bramble/fkm.json

Support: Telegram group

Donations: PayPal

Credits go to

LineageOS and GrapheneOS for providing their initial source drops

@wrongway213 for inspiring me to achieve this project and his contributions (especially this thread template)

@eng.stk for blu_spark kernel, for his contributions and his personal pieces of advice

@tbalden for Cleanslate kernel, KCAL support, providing the building script and his contributions

@Freak07 for his guidance in solving my first kernel compiling issues and for his amazing contributions

@kdrag0n for Proton kernel and his innovative contributions

@Sultanxda for Sultan kernel and his outstanding contributions

@arter97 for Arter97 kernel and his efficient contributions

@osm0sis for AnyKernel3 and his contributions

@flar2 for ElementalX, KCAL support and his contributions

@nathanchance for his compilation guides and repos

Thanks to

@Anonshe, @redsmith, @badaas and all my Telegram's group members for being the awesome testers they are

@lacia-chan and @JoshuaDoes for their technical support and the discussions we had together

Every person that submitted a donation, including Shane that gave me his financial contribution which pushed me to work on redbull

XDA:DevDB Information

fsociety tribute for Pixel 4a 5G, Kernel for the Google Pixel 4a 5G

Contributors

momojuro

Source code: Github repository

Kernel Special Features: KCAL, Vibration Control, Wireguard

Version Information

Status: Stable

Current Stable Version: 1.57

Stable Release Date: 2022-06-12

Created 2022-02-22

Last Updated 2022-06-12