• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

KERNEL ❯ PIXEL 4A 5G ❯ Proton Kernel

Search This thread

kdrag0n

Senior Member
Feb 19, 2016
696
1,901
kdrag0n.dev
Proton Kernel
Performance-oriented kernel​

Proton Kernel is a minimal kernel focused on improving overall UX with performance and battery tuning.

Usage with my ProtonAOSP ROM is recommended to get the most out of your phone. The ROM does not include Proton Kernel, so you will need to flash it yourself. The kernel alone will work just as well on stock, but you will not get the benefits of the ROM. More tightly coupled features may be added in the future.

Installation
This kernel is provided as a bootable flasher image. It is not a boot image for flashing into the boot partition. Boot the image with "fastboot boot ProtonKernel-pixel5-VERSION.img" to flash it. The image is specially packed with a custom flasher that is fast and easy to use, so flashing it into the boot partition directly will not work.

All versions of all ROMs are supported, as well as Magisk if you wish to use it. Magisk will be preserved after flashing if you already have it installed. If not, you can install Magisk by patching your boot image before flashing the kernel.

DO NOT FLASH THE IMAGE DIRECTLY TO THE BOOT PARTITION! It will not work, no matter what you flash it with — fastboot, kernel managers, etc.

Features
• Advanced CPU tuning specifically for the Snapdragon 765G to improve performance and reduce jitter
• Scheduler ramp/decay tuning for faster response to quick actions
• Display power-saving tweaks (mostly Pixel 5 only)
• Near-instant display wakeup (Pixel 5 only)
• Reduced touch latency and motion jitter (at the cost of losing Deep Press)
• ThinLTO optimizations for performance
• TCP ECN, BBR congestion control, and fq_codel network scheduler for faster and more reliable networking
• 80 MiB of extra RAM unlocked for apps to use
• More linear and consistent battery percentage curve
• Custom fast & easy kernel flasher with support for Magisk and all ROMs
• Minimal debugging for better security, performance, and reduced size
• Sultan's Simple Low Memory Killer to improve memory utilization
• Tuning for F2FS garbage collection, low-level atomic operations, and more
• System call filters compiled to machine code for 66% faster filtering
• Reduced CPU usage when using cellular data (for testing with 5G mmWave networks)
• Compiled with the latest Proton Clang 13 toolchain
• zRAM disabled to reduce CPU waste
• WireGuard VPN acceleration
• Support for power user tasks: USB modem-like devices (e.g. RFID tools), custom virtual USB Ethernet networking, isolated Linux containers
• SafetyNet basic attestation passing without Magisk

Downloads
Downloads and changelogs can be found on GitHub. The topmost release is the latest.

Make sure you download a flasher image, not source code! Source code cannot be flashed.

Join the Telegram group for support and extras

Donate to support development: recurring donation to keep the project alive in the long term or buy me a coffee

Source code
 
Last edited:

kdrag0n

Senior Member
Feb 19, 2016
696
1,901
kdrag0n.dev
Hey, thank you for Bramble's first custom kernel! How do I install Magisk? Can your image from Github be patched by Magiskmanager as with normal boot.img's? Thx
No, I've just updated the installation section to add more details about Magisk.
Are the 4a 5G and the P5 using the same kernels? Just noticed EXKM is asking me to install Elemental P5
Yes, they are basically the same device save for the display refresh rate. The Pixel 4a is completely different.
 
  • Like
Reactions: Voodoojonny

kdrag0n

Senior Member
Feb 19, 2016
696
1,901
kdrag0n.dev
Great work, thanks for this.

Does this mean the redbull ProtonAOSP ROM would work on the 4a 5G too? If so, I'm looking forward to that. (https://github.com/ProtonAOSP/android_device_google_redbull)
The redfin build will not work, ROM builds for the two devices are slightly different. I haven't bothered to support bramble in my ROM because unlike kernel builds which are small, ROMs take a long time to build and incur bandwidth costs on upload.
 
Last edited:

GoldElocks

Senior Member
Jul 1, 2012
233
123
Chicago
Google Pixel 4a 5G
Running super smooth, thanks for sharing. Retained root and still passing safetynet, no issues so far. Will have to give it some more time to see how battery drain goes.

Was really hoping for a Proton Rom too but completely understand why it's not feasible. More than happy with stock rooted and a great custom kernel for now.
 

bkdodger

Senior Member
Jan 30, 2011
1,466
748
Thank you [emoji3526]...just installed...

Note to self: you know you've eaten too much when running script you see waiting for device scratching your head ...oh wait hmm yup phone is still on not in fastboot mode ..lol [emoji23]
 
Last edited:

megazig

New member
May 31, 2011
2
0
thanks a ton for this kernel.

this made basic integrity check pass. then installed hardware off module for magisk to get ctsprofile to pass. now i think i can google pay
 

rspkt

Senior Member
Nov 24, 2012
204
92
Flashed it fine following the directions in the OP with no issues. Will report back with how it functions after a few days of use. So far so good. Thank you.
 
  • Like
Reactions: Dimontiman

Meowdib

Senior Member
Hardware off module? I can't seem to find that anywhere. Is this kernel saying its a different phone to get safety net to pass?

I'm not sure what he means but I think in magisk modules, there is a way to change the fingerprint of the device. CTS something. I'm gonna look for it later. I think most people change it to the 3a and then safetynet is good.


You need Busybox for Android NDK . Screenshot_20201205-143618.png
 
Last edited:

letrain02

Senior Member
Aug 24, 2010
286
37
Running super smooth, thanks for sharing. Retained root and still passing safetynet, no issues so far. Will have to give it some more time to see how battery drain goes.

Was really hoping for a Proton Rom too but completely understand why it's not feasible. More than happy with stock rooted and a great custom kernel for now.
Did you have to change build prop, etc to pass safety net? Or just this kerbal helped that? I remember on my 2xl that a custom kernel was easier way to pass safety net until magisk got it all sorted.
 

GoldElocks

Senior Member
Jul 1, 2012
233
123
Chicago
Google Pixel 4a 5G
Did you have to change build prop, etc to pass safety net? Or just this kerbal helped that? I remember on my 2xl that a custom kernel was easier way to pass safety net until magisk got it all sorted.
I used magisk hide, rename magisk manager, and magisk hide props config and changed to pixel 3a XL.
There's a detailed guide on how to do the props config here if you're not familiar
 
  • Like
Reactions: rspkt

rspkt

Senior Member
Nov 24, 2012
204
92
I can also confirm Proton Kernel running very smoothly after flashing it several days ago.

With regards to the previous question, I had used props to modify my device before installing the kernel so I can't say whether the kernel alone will help you pass the SafetyNet checks. In any case, my device is passing both checks just fine as well.

Thank you for the hard work, @kdrag0n. Looking forward to future updates and whatever else you might have for us down the line.
 

kdrag0n

Senior Member
Feb 19, 2016
696
1,901
kdrag0n.dev
Proton Kernel 1.1 is now available with security updates, improved performance tuning, extra RAM, and more.

This update is required for the kernel to work properly on December ROMs, including the new version of ProtonAOSP. It will not boot on older ROMs.

Usage with my ProtonAOSP ROM is recommended to get the most out of your phone now that it is available for the Pixel 4a 5G. The ROM does not include Proton Kernel, so you will need to flash it yourself. The kernel alone will work just as well on stock, but you will not get the benefits of the ROM. More tightly coupled features may be added in the future.

Changelog:
• Updated to stock December kernel base (will not boot on older ROMs)
• Improved CPU frequency and energy model tuning for performance
• Further reduced display power usage for both Pixel 5 and 4a 5G
• Enabled TCP ECN for better handling of poor networks (similar to iOS 11+)
• Unlocked 5 MiB of extra RAM for apps
• Added support for full-blown isolated Linux containers
• Added support for USB modem-like devices (e.g. RFID tools)
• Reduced debugging overhead
• Fixed fastbootd flashing

Download

Donate to support development: recurring donation to keep the project alive in the long term or buy me a coffee
 

rspkt

Senior Member
Nov 24, 2012
204
92
This kernel's battery life is amazing. I'm getting ~0.57%/hr. isle drain and ~5.4%/hr. active drain after several days of normal usage. Smooth as can be also. Thank you again for the amazing work, @kdrag0n.
 
  • Like
Reactions: wangdak and gorm

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Proton Kernel 1.1 is now available with security updates, improved performance tuning, extra RAM, and more.

    This update is required for the kernel to work properly on December ROMs, including the new version of ProtonAOSP. It will not boot on older ROMs.

    Usage with my ProtonAOSP ROM is recommended to get the most out of your phone now that it is available for the Pixel 4a 5G. The ROM does not include Proton Kernel, so you will need to flash it yourself. The kernel alone will work just as well on stock, but you will not get the benefits of the ROM. More tightly coupled features may be added in the future.

    Changelog:
    • Updated to stock December kernel base (will not boot on older ROMs)
    • Improved CPU frequency and energy model tuning for performance
    • Further reduced display power usage for both Pixel 5 and 4a 5G
    • Enabled TCP ECN for better handling of poor networks (similar to iOS 11+)
    • Unlocked 5 MiB of extra RAM for apps
    • Added support for full-blown isolated Linux containers
    • Added support for USB modem-like devices (e.g. RFID tools)
    • Reduced debugging overhead
    • Fixed fastbootd flashing

    Download

    Donate to support development: recurring donation to keep the project alive in the long term or buy me a coffee
    6
    Proton Kernel
    Performance-oriented kernel​

    Proton Kernel is a minimal kernel focused on improving overall UX with performance and battery tuning.

    Usage with my ProtonAOSP ROM is recommended to get the most out of your phone. The ROM does not include Proton Kernel, so you will need to flash it yourself. The kernel alone will work just as well on stock, but you will not get the benefits of the ROM. More tightly coupled features may be added in the future.

    Installation
    This kernel is provided as a bootable flasher image. It is not a boot image for flashing into the boot partition. Boot the image with "fastboot boot ProtonKernel-pixel5-VERSION.img" to flash it. The image is specially packed with a custom flasher that is fast and easy to use, so flashing it into the boot partition directly will not work.

    All versions of all ROMs are supported, as well as Magisk if you wish to use it. Magisk will be preserved after flashing if you already have it installed. If not, you can install Magisk by patching your boot image before flashing the kernel.

    DO NOT FLASH THE IMAGE DIRECTLY TO THE BOOT PARTITION! It will not work, no matter what you flash it with — fastboot, kernel managers, etc.

    Features
    • Advanced CPU tuning specifically for the Snapdragon 765G to improve performance and reduce jitter
    • Scheduler ramp/decay tuning for faster response to quick actions
    • Display power-saving tweaks (mostly Pixel 5 only)
    • Near-instant display wakeup (Pixel 5 only)
    • Reduced touch latency and motion jitter (at the cost of losing Deep Press)
    • ThinLTO optimizations for performance
    • TCP ECN, BBR congestion control, and fq_codel network scheduler for faster and more reliable networking
    • 80 MiB of extra RAM unlocked for apps to use
    • More linear and consistent battery percentage curve
    • Custom fast & easy kernel flasher with support for Magisk and all ROMs
    • Minimal debugging for better security, performance, and reduced size
    • Sultan's Simple Low Memory Killer to improve memory utilization
    • Tuning for F2FS garbage collection, low-level atomic operations, and more
    • System call filters compiled to machine code for 66% faster filtering
    • Reduced CPU usage when using cellular data (for testing with 5G mmWave networks)
    • Compiled with the latest Proton Clang 13 toolchain
    • zRAM disabled to reduce CPU waste
    • WireGuard VPN acceleration
    • Support for power user tasks: USB modem-like devices (e.g. RFID tools), custom virtual USB Ethernet networking, isolated Linux containers
    • SafetyNet basic attestation passing without Magisk

    Downloads
    Downloads and changelogs can be found on GitHub. The topmost release is the latest.

    Make sure you download a flasher image, not source code! Source code cannot be flashed.

    Join the Telegram group for support and extras

    Donate to support development: recurring donation to keep the project alive in the long term or buy me a coffee

    Source code
    3
    What exact iptables features are you talking about? All Android kernels have iptables as Android requires it for networking.

    Specifically I use the iptables command to change the outgoing TTL of my device for tethering purposes:

    iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65
    2
    how can i magisk root on stock rom and this kernel any advice appriciated
    https://forum.xda-developers.com/t/guide-root-pixel-5-xl-android-11-r.4187609/

    That will tell you how to root the phone, then install a kernel.
    2
    This kernel's battery life is amazing. I'm getting ~0.57%/hr. isle drain and ~5.4%/hr. active drain after several days of normal usage. Smooth as can be also. Thank you again for the amazing work, @kdrag0n.