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

KERNEL ❯ PIXEL 3 XL ❯❯ Proton Kernel • v19 • September 8

Search This thread

kdrag0n

Senior Member
Feb 19, 2016
696
1,928
kdrag0n.dev
KERNEL ❯ PIXEL 3 XL ❯❯ Proton Kernel • v19 • September 8

Proton Kernel • Pixel 3/XL
by kdrag0n

This kernel has been discontinued as I no longer own my Pixel 3 XL and have moved on. The original post has been retained below for transparency, but I would strongly recommend using another kernel.


I am not liable if your phone explodes, stops functioning, or turns into scrap metal. I have no obligation to publish this kernel. However, if you provide an accurate description of your issue accompanied with logs, it is likely that I will at least look into your issue. By flashing this kernel, you acknowledge the potential risks it brings.

Introduction
Proton Kernel strives to provide the perfect balance of performance and battery life in order to create the best possible experience for your phone. Features are welcome if they are useful, within reason. The kernel has been debloated to reduce size and improve performance.

Compatibility
Stock and custom Pie ROMs are supported. Both the Pixel 3 and Pixel 3 XL are supported in the same package. Wiping cache isn't necessary. Magisk is retained, so there is no need to reflash it afterwards. The kernel may be flashed from TWRP or your app of choice.

Android Q is NOT supported, nor will it ever be.

Features
​ ​ ​ ​ • Latest upstream Linux 4.9.191
​ ​ ​ ​ • Latest Google August updates
​ ​ ​ ​ • Compiled with bare-metal GCC 9.1.0
​ ​ ​ ​ • Heavily tuned Spectrum and FKM performance profiles
​ ​ ​ ​ • Numerous configuration changes for performance, size, and battery
​ ​ ​ ​ • Heavily debloated for faster boot, enhanced security, and smaller download
​ ​ ​ ​ • Fast and versatile installer (modified version of @osm0sis' AnyKernel2)
​ ​ ​ ​ • Sound control (microphone and speakers only; @flar2)
​ ​ ​ ​ • Latest WireGuard VPN snapshot
​ ​ ​ ​ • KCAL advanced color control
​ ​ ​ ​ • A wide variety of battery and performance improvements from the Qualcomm, Pixel 3a, Snapdragon 855, and more kernels
​ ​ ​ ​ • CPU governors: performance, powersave, schedutil, userspace, ondemand, conservative
​ ​ ​ ​ • I/O schedulers: noop, deadline, cfq, anxiety, bfq
​ ​ ​ ​ • Various improvements from @Sultanxda, @arter97, @ab123321, @Freak07, etc
​ ​ ​ ​ • Vibration control (@flar2)
​ ​ ​ ​ • TCP congestion control algorithms: westwood, reno, bbr, bic, cdg, cubic, dctcp, highspeed, hybla, htcp, vegas, nv, veno, scalable, lp, yeah, illinois
​ ​ ​ ​ • Xbox and DualShock USB controller support
​ ​ ​ ​ • Simple LMK for improved memory management and reduced camera opening lag (@Sultanxda)
​ ​ ​ ​ • Assorted scheduler patches to improve battery and performance
​ ​ ​ ​ • Speculative page fault for faster app opening
​ ​ ​ ​ • Support for forcing fast charging (500 mA limit bumped to 900 mA for USB, 5V limit bumped to 9V for wireless)
​ ​ ​ ​ • Simple GPU Algorithm
​ ​ ​ ​ • AVB 2.0 and dm-verity fully disabled (allows custom boot animation on stock ROM)
​ ​ ​ ​ • Display tweaks
​ ​ ​ ​ • Speaker gain control and backlight dimmer
​ ​ ​ ​ • Efficient in-kernel CPU and memory boosting solution (modified version of @Sultanxda's work)
​ ​ ​ ​ • Improved overall performance and battery life compared to stock
​ ​ ​ ​ • Faster lock implementations backported from mainline
​ ​ ​ ​ • Lots of backports from the mainline kernel
​ ​ ​ ​ • Scheduler improvements and fixes from Qualcomm's Snapdragon 855 kernel
​ ​ ​ ​ • Support for common Realtek RTL815x USB Ethernet adapters
​ ​ ​ ​ • A few F2FS tweaks (namely Rapid GC) by @arter97
​ ​ ​ ​ • I/O prioritization by app groups (background, foreground, etc) when using CFQ (ported from Pixel 3a) for better UX during background app updates and other I/O-heavy scenarios
​ ​ ​ ​ • Countless other features and optimizations to enhance the overall experience

Think twice before enabling fast wireless charging because cheap chargers can cause your phone to heat up significantly more than usual, which damages the battery permanently. They may also cause temporary issues with your phone (such as ticking sounds) or irreversible damage to internal circuits. However, if used properly with a high-quality charger, there should not be any issues. Enable at your own risk. I am not responsible for any damage to you or your phone caused by this feature.

Downloads
Downloads and changelogs can be found here on GitHub. The topmost release is the latest. Alternatively, you can simply download the latest version here.

Join the Telegram group for beta builds and support


Donate to support development

XDA:DevDB Information
Proton Kernel, Kernel for the Google Pixel 3 XL

Contributors
kdrag0n
Source Code: https://github.com/kdrag0n/proton_bluecross

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: v19
Stable Release Date: 2019-09-08

Created 2018-11-19
Last Updated 2019-09-09
 
Last edited:

kdrag0n

Senior Member
Feb 19, 2016
696
1,928
kdrag0n.dev
FAQ
Q: Is my phone not secure anymore? You said you disabled security features for performance.
A: Not really. Kernel features such as CFI, stack protector, etc protect against potential attacks in a way where if an attack is detected, the phone will forcibly reboot. It doesn't prevent the attack in the first place. This kernel simply disables such features because they have a performance impact. Preventative security features such as SELinux are not disabled, nor will they ever be.

Some speculative execution mitigations such as SSBD have also been disabled. That's because these have quite an impact on performance. How many times have you heard of L1TF, Spectre, Meltdown, or anything of the like exploited in the wild?

Q: Why GCC instead of Clang? Isn't Clang better? Google switched to it.
A: No. I benchmarked Clang 8 with LTO, Clang 8, and GCC 8. Here are the full results.

Q: Do I need to flash Magisk after the kernel?
A: No. The kernel will keep Magisk if it's already installed.

Q: My phone randomly rebooted or locked up. / Apps are crashing.
A: Describe your issue accurately with detail and provide logs. It's easy to do with apps like Syslog or MatLog. If it's an unexpected reboot, grab all the files from /sys/fs/pstore for the log. For reboots the current logs (dmesg, logcat, etc) are useless - I need the logs from the previous boot, which are in pstore.

Q: How do I see what version I'm running?
A: Settings → System → About → Android version → Kernel version
 
Last edited:

kdrag0n

Senior Member
Feb 19, 2016
696
1,928
kdrag0n.dev
Pretty sure it removed TWRP too, in case you run across something in testing
Looks like it corrupts the ramdisk so TWRP and Magisk won't work. Flash the kernel in TWRP until this is fixed. Hopefully I'll have an update out in a few hours to fix flashing in EXKM/FKM/other apps.

To recover from your current situation:
• Fastboot TWRP
• Flash TWRP installer
• Flash Magisk
• Flash Proton Kernel

You do not need to reboot recovery after flashing TWRP.
 
  • Like
Reactions: michaelburrow189
Looks like it corrupts the ramdisk so TWRP and Magisk won't work. Flash the kernel in TWRP until this is fixed. Hopefully I'll have an update out in a few hours to fix flashing in EXKM/FKM/other apps.

To recover from your current situation:
• Fastboot TWRP
• Flash TWRP installer
• Flash Magisk
• Flash Proton Kernel

You do not need to reboot recovery after flashing TWRP.

Right on. Thanks for confirming
 

kdrag0n

Senior Member
Feb 19, 2016
696
1,928
kdrag0n.dev
Version v2 has just been released to fix flashing in Android (via apps such as EXKM, FKM, etc), especially the loss of TWRP and Magisk afterwards. Along with that are some CFQ I/O scheduler and battery improvements, along with the removal of Adrenoboost as the code is extremely dirty and is not necessary for our device. In my testing, it didn't work at all. Get it here on GitHub.

Full changelog:
​ ​ ​ ​ • Fixed flashing in Android (EXKM, FKM, etc), especially preservation of TWRP and Magisk
​ ​ ​ ​ • Removed Adrenoboost
​ ​ ​ ​ • Backported some CFQ I/O scheduler patches from upstream
​ ​ ​ ​ • Added Sony scheduler patches for better battery (@_LLJY, @ab123321)
​ ​ ​ ​ • Removed blu_schedutil governor (almost identical to Pixel schedutil)
Direct download link
Enjoy!
 
Last edited:
Version v2 has just been released to fix flashing in Android (via apps such as EXKM, FKM, etc), especially the loss of TWRP and Magisk afterwards. Along with that are some CFQ I/O scheduler and battery improvements, along with the removal of Adrenoboost as the code is extremely dirty and is not necessary for our device. In my testing, it didn't work at all. Get it here on GitHub.

Full changelog:


Direct download link
Enjoy!
Nailed it. Thanks

Removed the blusched it seems as well
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    KERNEL ❯ PIXEL 3 XL ❯❯ Proton Kernel • v19 • September 8

    Proton Kernel • Pixel 3/XL
    by kdrag0n

    This kernel has been discontinued as I no longer own my Pixel 3 XL and have moved on. The original post has been retained below for transparency, but I would strongly recommend using another kernel.


    I am not liable if your phone explodes, stops functioning, or turns into scrap metal. I have no obligation to publish this kernel. However, if you provide an accurate description of your issue accompanied with logs, it is likely that I will at least look into your issue. By flashing this kernel, you acknowledge the potential risks it brings.

    Introduction
    Proton Kernel strives to provide the perfect balance of performance and battery life in order to create the best possible experience for your phone. Features are welcome if they are useful, within reason. The kernel has been debloated to reduce size and improve performance.

    Compatibility
    Stock and custom Pie ROMs are supported. Both the Pixel 3 and Pixel 3 XL are supported in the same package. Wiping cache isn't necessary. Magisk is retained, so there is no need to reflash it afterwards. The kernel may be flashed from TWRP or your app of choice.

    Android Q is NOT supported, nor will it ever be.

    Features
    ​ ​ ​ ​ • Latest upstream Linux 4.9.191
    ​ ​ ​ ​ • Latest Google August updates
    ​ ​ ​ ​ • Compiled with bare-metal GCC 9.1.0
    ​ ​ ​ ​ • Heavily tuned Spectrum and FKM performance profiles
    ​ ​ ​ ​ • Numerous configuration changes for performance, size, and battery
    ​ ​ ​ ​ • Heavily debloated for faster boot, enhanced security, and smaller download
    ​ ​ ​ ​ • Fast and versatile installer (modified version of @osm0sis' AnyKernel2)
    ​ ​ ​ ​ • Sound control (microphone and speakers only; @flar2)
    ​ ​ ​ ​ • Latest WireGuard VPN snapshot
    ​ ​ ​ ​ • KCAL advanced color control
    ​ ​ ​ ​ • A wide variety of battery and performance improvements from the Qualcomm, Pixel 3a, Snapdragon 855, and more kernels
    ​ ​ ​ ​ • CPU governors: performance, powersave, schedutil, userspace, ondemand, conservative
    ​ ​ ​ ​ • I/O schedulers: noop, deadline, cfq, anxiety, bfq
    ​ ​ ​ ​ • Various improvements from @Sultanxda, @arter97, @ab123321, @Freak07, etc
    ​ ​ ​ ​ • Vibration control (@flar2)
    ​ ​ ​ ​ • TCP congestion control algorithms: westwood, reno, bbr, bic, cdg, cubic, dctcp, highspeed, hybla, htcp, vegas, nv, veno, scalable, lp, yeah, illinois
    ​ ​ ​ ​ • Xbox and DualShock USB controller support
    ​ ​ ​ ​ • Simple LMK for improved memory management and reduced camera opening lag (@Sultanxda)
    ​ ​ ​ ​ • Assorted scheduler patches to improve battery and performance
    ​ ​ ​ ​ • Speculative page fault for faster app opening
    ​ ​ ​ ​ • Support for forcing fast charging (500 mA limit bumped to 900 mA for USB, 5V limit bumped to 9V for wireless)
    ​ ​ ​ ​ • Simple GPU Algorithm
    ​ ​ ​ ​ • AVB 2.0 and dm-verity fully disabled (allows custom boot animation on stock ROM)
    ​ ​ ​ ​ • Display tweaks
    ​ ​ ​ ​ • Speaker gain control and backlight dimmer
    ​ ​ ​ ​ • Efficient in-kernel CPU and memory boosting solution (modified version of @Sultanxda's work)
    ​ ​ ​ ​ • Improved overall performance and battery life compared to stock
    ​ ​ ​ ​ • Faster lock implementations backported from mainline
    ​ ​ ​ ​ • Lots of backports from the mainline kernel
    ​ ​ ​ ​ • Scheduler improvements and fixes from Qualcomm's Snapdragon 855 kernel
    ​ ​ ​ ​ • Support for common Realtek RTL815x USB Ethernet adapters
    ​ ​ ​ ​ • A few F2FS tweaks (namely Rapid GC) by @arter97
    ​ ​ ​ ​ • I/O prioritization by app groups (background, foreground, etc) when using CFQ (ported from Pixel 3a) for better UX during background app updates and other I/O-heavy scenarios
    ​ ​ ​ ​ • Countless other features and optimizations to enhance the overall experience

    Think twice before enabling fast wireless charging because cheap chargers can cause your phone to heat up significantly more than usual, which damages the battery permanently. They may also cause temporary issues with your phone (such as ticking sounds) or irreversible damage to internal circuits. However, if used properly with a high-quality charger, there should not be any issues. Enable at your own risk. I am not responsible for any damage to you or your phone caused by this feature.

    Downloads
    Downloads and changelogs can be found here on GitHub. The topmost release is the latest. Alternatively, you can simply download the latest version here.

    Join the Telegram group for beta builds and support


    Donate to support development

    XDA:DevDB Information
    Proton Kernel, Kernel for the Google Pixel 3 XL

    Contributors
    kdrag0n
    Source Code: https://github.com/kdrag0n/proton_bluecross

    Kernel Special Features:

    Version Information
    Status: Stable
    Current Stable Version: v19
    Stable Release Date: 2019-09-08

    Created 2018-11-19
    Last Updated 2019-09-09
    21
    Anyone tried kirisakura? Compared to proton
    Can't tell the difference if someone can explain different commits

    It's not polite to talk about another kernel in another Dev's thread.

    Do your research on it and decide for yourself

    I have tried both and have benchmarks if anyone is interested.

    as @c_86 already said it´s not polite to do what happened here. It happened in my thread too, so now I have to say something about it.

    Between any of us developers here there is no competition. If anyone runs into issues we help each other! Everyone can see what the other is doing, because it´s open source. For a release there are no secrets really.
    By repeatedly bringing up this comparison topic, you effectively discourage us from spending time on our hobby, which is developing.
    Developing takes time and a lot of testing! It also takes time to research about different improvements that we try to implement! We do this for free in our free time. We upload our work for free so everybody can use it. Be it our source code or the kernel you flash!

    It´s rude to just go into the threads and ask for comparisons, which is better, which is faster, which is better on battery etc. In my opinion it´s also far from polite to provide benchmarks via PM, to "hide" them away. I hope @24HourClock benchmarked every kernel with more than three benchmarks, in exactly the same environment, exactly on the same conditions and averaged the results from 10 results of each benchmark at least. I have no problems talking about why one kernel benchmarks lower than the other if it adds to a constructive discussion.
    Every developer focuses on different goals and that manifests in the kernel. That is part of the beauty here! Be glad you have all these choices on this forum.

    Why not spend your time just researching what the differences are? I linked a lot of information in every of my release posts! It´s easily accessible and relatively simply to understand.
    XDA is not a place to make your phone more cool, more sophisticated or just to show off. XDA is a place for development, for growing together by working together! In the end it´s a place to learn. A few years ago I didn´t know how to compile a kernel! I learned, learned, failed, and try to learn again!

    Just try all the brilliant kernels and choices you have here! Judge for yourself which one works best for you! Nobody else mirrors the exact same usage you have! Report back how the kernel works for you. Try to be as precise as possible what works or doesn´t. Try to contribute a part to make the kernel even better. Take part in discussion. Do not post this has better battery life than xyz. This has better performance than xyz. Try to have a constructive attitude in your posts! Explain why you want something. Do research about it. It´s not that hard to start somewhere!
    10
    Proton Kernel v10 has been released. Get it here on GitHub.

    Changelog:
    ​ ​ ​ ​ • Re-enabled Wi-Fi TSO to fully leverage download speeds over 100 mbit
    ​ ​ ​ ​ • Added support for dm-verity (fixes bootloop without Magisk)
    ​ ​ ​ ​ • Fixed several memory leaks (CAF, @Freak07)
    ​ ​ ​ ​ • Reduced I/O latency on non-important block devices

    Direct download link

    Enjoy!
    10
    Proton Kernel v9 has been released. Get it here on GitHub.

    Full changelog:
    ​ ​ ​ ​ • Upstreamed to Linux 4.9.147
    ​ ​ ​ ​ • Fixed bad idle battery drain
    ​ ​ ​ ​ • Miscellaneous changes from latest CAF
    ​ ​ ​ ​ • Queued read-write lock implementation
    ​ ​ ​ ​ • Removed dm-verity completely
    ​ ​ ​ ​ • Disabled support for obscure USB input devices
    ​ ​ ​ ​ • Miscellaneous memory management patches from CAF
    ​ ​ ​ ​ • Reverted hacky network patches from LEDE
    ​ ​ ​ ​ • Reverted custom Westwood+ default tunables
    ​ ​ ​ ​ • Fixed wake gestures resolution for blueline
    ​ ​ ​ ​ • Removed broken and impractical TCP congestion control algorithms
    ​ ​ ​ ​ • Added support for common Realtek RTL815x USB Ethernet adapters
    ​ ​ ​ ​ • Reduced initial random blocking by trusting hardware RNG
    ​ ​ ​ ​ • Enabled protected FIFOs and regular files
    ​ ​ ​ ​ • Disabled force fast charge by default (causes USB issues)
    ​ ​ ​ ​ • Disabled hardened usercopy (up to 8% performance hit in intensive networking scenarios) and string fortification (back to 100% performance + battery focused kernel)
    ​ ​ ​ ​ • Reduced unnecessary boosting on big cluster
    ​ ​ ​ ​ • Fixed some memory leaks
    ​ ​ ​ ​ • Enabled CAKE TCP ACK filter
    ​ ​ ​ ​ • Replaced ticket spinlocks with queued spinlocks (1-2% faster locks, up to 116% faster in contended I/O cases)
    ​ ​ ​ ​ • Backported an extra trigger for compaction from mainline 4.10
    ​ ​ ​ ​ • Removed devfreq boost trigger on frame commit
    ​ ​ ​ ​ • Backported queued spinlock and atomic operation updates from mainline
    ​ ​ ​ ​ • Backported hardware accelerated SHA256, SHA512, and other cryptography updates from mainline 4.10
    ​ ​ ​ ​ • Backported miscellaneous updates from mainline 4.10 (block direct I/O, etc)
    ​ ​ ​ ​ • RCU, locking (mutex, etc), IRQ affinity handling, scheduler, CPU idling, ARM64 architecture support, internal cleanups, and more backports from upstream mainline 4.10
    ​ ​ ​ ​ • Increased TCP Small Queue (TCP packet queue chunking) size for cellular data
    ​ ​ ​ ​ • Disabled Wi-Fi TCP Segmentation Offload (TSO)
    ​ ​ ​ ​ • Disabled Wi-Fi debugging (@celtare21)
    ​ ​ ​ ​ • Reduced input boost duration to 80 ms
    ​ ​ ​ ​ • Reverted to LZ4 as default zRAM compressor
    ​ ​ ​ ​ • Tuned memory allocation batch size
    ​ ​ ​ ​ • Removed rotational flag on loopback devices
    ​ ​ ​ ​ • Tuned dirty ratios for less memory usage
    ​ ​ ​ ​ • Disabled CPU debugging

    Direct download link

    Enjoy!
    10
    Proton Kernel v14 has been released. Download

    Changelog:
    ​ ​ ​ ​ • Upstreamed to Linux 4.9.154
    ​ ​ ​ ​ • Removed Adreno Idler
    ​ ​ ​ ​ • Tuned display properties
    ​ ​ ​ ​ • Updated display driver
    ​ ​ ​ ​ • Fixed screen not turning off in TWRP (slower to turn on now)
    ​ ​ ​ ​ • Fixed occasional recents stuttering
    ​ ​ ​ ​ • Fixed stuttering while flinging and video is playing
    ​ ​ ​ ​ • Fixed rare fling stuttering
    ​ ​ ​ ​ • Enabled System V IPC, POSIX message queues, and namespaces for advanced users (low overhead)
    ​ ​ ​ ​ • Reverted dirty security patches
    ​ ​ ​ ​ • Reverted useless touchscreen changes for XL
    ​ ​ ​ ​ • Reduced wakeup latency
    ​ ​ ​ ​ • Switched to BPF JIT instead of interpreter
    ​ ​ ​ ​ • Fixed broken touch after switching to another kernel
    ​ ​ ​ ​ • Fixed potentially low entropy in random pool
    ​ ​ ​ ​ • Reduced SchedTune general boost level
    ​ ​ ​ ​ • Reverted old patch causing memory fragmentation

    Donate to support development
    Download

    Enjoy!