[KERNEL][11.0.0] Sultan Kernel [April 6, 2021]

Search This thread

Sultanxda

Recognized Developer
Aug 18, 2012
6,461
37,652
California
www.kerneltoast.com
Code:
/*
* Your warranty is no longer valid, unless you lie.
*
* I am not responsible for bricked devices, strained relationships,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/

This is a no-frills custom kernel for the Pixel 4 and Pixel 4 XL designed to be used with the stock ROM and custom Android 11 ROMs. It's intended to be a simple replacement for the stock kernel that brings several under-the-hood enhancements. This kernel is not meant to be customized by users.

Changelogs for each update can be found in the 2nd post of this thread.

Features:

  • Compiled with GCC 10.2 from the Arch Linux repository
  • Built with Link Time Optimization (LTO) for improved overall kernel performance
  • Built with Dead Code Elimination (DCE) to shrink the kernel's size by removing unused code
  • Removed lots of excessive bloat (improves security and performance)
  • Simple LMK, a custom low memory killer that improves memory management
  • Optimized CPU frequencies and EAS energy model for improved performance and battery life
  • WireGuard, a next generation secure VPN tunnel
  • Passes SafetyNet bootloader unlock check
  • Improved gaming performance
  • Improved overall system fluidity and graphics performance
  • Improved stability
  • Many other miscellaneous improvements not listed here

Source code:
11.0.0-sultan branch: https://github.com/kerneltoast/android_kernel_google_floral

Credits:
  • zx2c4 (for WireGuard)
  • osm0sis (for AnyKernel3)
  • kdrag0n (for quite a few useful commits)
  • If your name should be here and it isn't, then replace my camera with a OnePlus 3

Installation instructions:
You can flash this kernel normally in TWRP, LineageOS recovery, or Franco Kernel Manager.

Telegram group:
https://t.me/sultanskernel

Downloads:
Latest kernel
 
Last edited:

Sultanxda

Recognized Developer
Aug 18, 2012
6,461
37,652
California
www.kerneltoast.com
Changelog:

April 6, 2021:
*Merged April Security Bulletin fixes
*Fixed some apps not working with the previous update

Old changelogs:

March 21, 2021:
*Improved scheduler performance for better overall system performance
*Improved performance of Unity-based games (such as Genshin Impact)

March 4, 2021:
*Re-enabled BPF JIT compiler to improve gaming and overall system performance

March 1, 2021:
*Merged March Security Bulletin fixes
*Fixed a bug where parts of the screen would erroneously remain dim in some apps
*Improved graphics performance
*Improved storage access latency
*Improved touch latency
*Improved overall system fluidity and power consumption

February 8, 2021:
*Added back missing thermal mitigation drivers to fix overheating

February 6, 2021:
*Merged February Security Bulletin fixes
*Further reduced overall system jitter

January 31, 2021:
*Fixed a bug in the ashmem rewrite that broke some system-wide sound effects

January 30, 2021:
*Added back support for prototype units
*Fixed a scheduler bug that caused random stutters
*Improved overall system fluidity
*Rewrote anonymous shared memory driver (ashmem) for improved graphics performance

January 16, 2021:
*Initial release
 
Last edited:
  • Like
Reactions: 2WildFirE

Sultanxda

Recognized Developer
Aug 18, 2012
6,461
37,652
California
www.kerneltoast.com
Pixel 4 user here, after flashing your kernel with both ex km, and fkm can't even get past boot and stuck at fastboot menu. Magisk 12.4, Rom : Latest January Update Security Patch

That's weird, there are multiple Pixel 4 users on Telegram that don't have issues with it. Could you get your phone working again and then do the following: reboot, go into developer options, tap bug report, share the bug report via gmail, then email it to [email protected]. I removed support for prototype versions of Pixel 4 but maybe I removed support for a Pixel 4 variant that's in production.
 

danielaniq28

Senior Member
That's weird, there are multiple Pixel 4 users on Telegram that don't have issues with it. Could you get your phone working again and then do the following: reboot, go into developer options, tap bug report, share the bug report via gmail, then email it to [email protected]. I removed support for prototype versions of Pixel 4 but maybe I removed support for a Pixel 4 variant that's in production.
ah yes it's the prototype version/ FTU ones, so there's no way i can probably use your kernel? I'll send the log anyway
 

Sultanxda

Recognized Developer
Aug 18, 2012
6,461
37,652
California
www.kerneltoast.com
ah yes it's the prototype version/ FTU ones, so there's no way i can probably use your kernel? I'll send the log anyway

If I find out what version it is I can just add support back. Do you think I should add back support for all of the different prototypes, or is there only one prototype version circulating around?

Also, how did you even get a prototype?
 

danielaniq28

Senior Member
If I find out what version it is I can just add support back. Do you think I should add back support for all of the different prototypes, or is there only one prototype version circulating around?

Also, how did you even get a prototype?
Here in Malaysia they sell them at a very cheap price , it lacks the face id part. Idk if it's actually illegal to sell/use them. I've send the logs anyway, my email starts with danielaniq28
 

Attachments

  • Screenshot_20210121-115211.png
    Screenshot_20210121-115211.png
    1.2 MB · Views: 68

ditzah

New member
Aug 18, 2013
2
0
I learned that the DP out function has been soft-disabled by Google, even though the USB-C port supports it. Any chance of enabling that in the kernel?
 

khaledtaleb

Member
Oct 13, 2013
44
11
hi, silly question, after flashing, can i lock the bootloader again ? (supposing i temporarily installed TWRP just for flashing) otherwise, any way to get google pay working ? thanks
 

TENN3R

Senior Member
Dec 6, 2014
845
447
Trento
hi, silly question, after flashing, can i lock the bootloader again ? (supposing i temporarily installed TWRP just for flashing) otherwise, any way to get google pay working ? thanks

Usually not a good idea re-locking the bootloader with non-official software.

You can pass safetynet and use google pay with magisk and a couple modules, if you need more info you can take a look at a post I wrote some time ago, should still work fine now.
As of today, there is also a new useful module: universal safetynet fix. I have installed them all, and I can use gpay just fine
 

khaledtaleb

Member
Oct 13, 2013
44
11
Thank you for your answer. however i never managed to install this kernel using TWRP since TWRP only supports android 10, not 11, so recovery got stuck on splash screen. So basically until we get TWRP support for android 11, no other way to install this kernel without root ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    New build up.
    1
    Dont't know if this is intended or not, but looking in the CPU section of FKM, the .little cluster runs at 1785 Mhz all the time. Moreover, in the CPU settings section, for the .little cluster, I can only choose between 1708 and 1785 Mhz. Does the .little cluster not support other frequencies? Or did something go wrong while flashing the kernel?

    Cheers!

    This is intentional. It's actually more efficient and gives better performance.
  • 10
    Code:
    /*
    * Your warranty is no longer valid, unless you lie.
    *
    * I am not responsible for bricked devices, strained relationships,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this kernel
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    *
    */

    This is a no-frills custom kernel for the Pixel 4 and Pixel 4 XL designed to be used with the stock ROM and custom Android 11 ROMs. It's intended to be a simple replacement for the stock kernel that brings several under-the-hood enhancements. This kernel is not meant to be customized by users.

    Changelogs for each update can be found in the 2nd post of this thread.

    Features:

    • Compiled with GCC 10.2 from the Arch Linux repository
    • Built with Link Time Optimization (LTO) for improved overall kernel performance
    • Built with Dead Code Elimination (DCE) to shrink the kernel's size by removing unused code
    • Removed lots of excessive bloat (improves security and performance)
    • Simple LMK, a custom low memory killer that improves memory management
    • Optimized CPU frequencies and EAS energy model for improved performance and battery life
    • WireGuard, a next generation secure VPN tunnel
    • Passes SafetyNet bootloader unlock check
    • Improved gaming performance
    • Improved overall system fluidity and graphics performance
    • Improved stability
    • Many other miscellaneous improvements not listed here

    Source code:
    11.0.0-sultan branch: https://github.com/kerneltoast/android_kernel_google_floral

    Credits:
    • zx2c4 (for WireGuard)
    • osm0sis (for AnyKernel3)
    • kdrag0n (for quite a few useful commits)
    • If your name should be here and it isn't, then replace my camera with a OnePlus 3

    Installation instructions:
    You can flash this kernel normally in TWRP, LineageOS recovery, or Franco Kernel Manager.

    Telegram group:
    https://t.me/sultanskernel

    Downloads:
    Latest kernel
    2
    Just discovered that I made another small mistake in the update, so I've uploaded it again as a January 30th build.
    2
    I made another derp that broke some system-wide sound effects (such as touch sounds), so I've uploaded a new kernel with the bug fixed. We're living in the future now, boiz.
    2
    New build up.
    2
    New build is up with improved gaming performance and reduced power consumption while gaming. Tests were done with Genshin Impact, for the curious.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone