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

[KERNEL][11.0.0] Sultan Kernel [August 23, 2021]

Search This thread

Sultanxda

Recognized Developer
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 11.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
Changelog:

August 23, 2021:
*Merged August Security Bulletin fixes

Old changelogs:

July 25, 2021:
*Fixed front camera not working when using the Social Media Depth feature in Google Camera

July 10, 2021:
*Merged July Security Bulletin fixes
*Now built with GCC 11.1 instead of 10.3
*Improved Simple LMK responsiveness and accuracy, to only kill apps when it's really needed

May 6, 2021:
*Merged May Security Bulletin fixes
*Improved Simple LMK for better memory management (for example, games are less likely to be killed when multitasking while playing)
*Further improved scheduler performance for better overall system performance
*Further improved performance of Unity-based games (such as Genshin Impact)

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

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
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
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: 139

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 ?
 

Sultanxda

Recognized Developer
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 ?

I've been using LineageOS recovery. Are you on stock?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hi @Sultanxda
    If I'm not mistaken, you're using LineageOS. However, it's not going to be updated to android S until next year. Are you going to keep updating the kernel with Android R?

    If you stop working on Android R kernel, will your last Android R kernel support future LOS 18.1 updates until the rom goes EOL?

    Sorry for the late reply.

    I'm not really certain. Updates these days are mostly just code I've written myself rather than new code coming from Google. For example, the September security patch from Google added 3 lines of code to a rather boring part of our kernel. That's not really much of an update, and those 3 lines of code aren't going to be a deciding factor in whether or not your phone works.

    Generally, you can keep running an "out of date" kernel without any repercussions. The only entity really determining what the definition of "out of date" is is Google with their monthly updates, and sometimes they don't even change the kernel at all for a security patch update.

    So don't be alarmed when you don't see frequent updates to my kernel. The current release of my kernel won't spontaneously combust just because it hasn't been updated in a little bit.

    On that note, I wasn't able to make an update for September because I was very busy with moving to another state. I'll try to get an update out soon with some new stuff I've been working on.
  • 12
    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 11.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
    3
    New build is up.
    3
    New build is up with August security fixes and some other small esoteric improvements I haven't listed.
    2
    Just discovered that I made another small mistake in the update, so I've uploaded it again as a January 30th build.
    2
    Hi @Sultanxda
    If I'm not mistaken, you're using LineageOS. However, it's not going to be updated to android S until next year. Are you going to keep updating the kernel with Android R?

    If you stop working on Android R kernel, will your last Android R kernel support future LOS 18.1 updates until the rom goes EOL?

    Sorry for the late reply.

    I'm not really certain. Updates these days are mostly just code I've written myself rather than new code coming from Google. For example, the September security patch from Google added 3 lines of code to a rather boring part of our kernel. That's not really much of an update, and those 3 lines of code aren't going to be a deciding factor in whether or not your phone works.

    Generally, you can keep running an "out of date" kernel without any repercussions. The only entity really determining what the definition of "out of date" is is Google with their monthly updates, and sometimes they don't even change the kernel at all for a security patch update.

    So don't be alarmed when you don't see frequent updates to my kernel. The current release of my kernel won't spontaneously combust just because it hasn't been updated in a little bit.

    On that note, I wasn't able to make an update for September because I was very busy with moving to another state. I'll try to get an update out soon with some new stuff I've been working on.