yashsingh1/xdaforums huggingface dataset:
[Google Pixel 7] Sultanxda:
New build is up with the random reboots finally fixed. Turns out they were caused by a bug that Google introduced over 2 years ago.

Idle battery drain specifically has been improved, and overall responsiveness + battery drain should be improved with the complete removal of Google's massive scheduler additions.

There is now a build available for Android 14, which is compatible with the QPR beta.
[Google Pixel 7] insestito:
Working on last A14. Thanks a lot.

How can i do now for continue updating A14 when Google release a new update?
[Google Pixel 7] rifzan:
Bootloop a14 after ex kernal manager flash, coming from stock
[Google Pixel 7] Klusio19:
Successfully flashed on my Pixel 7 (panther) with the latest, stable, stock Android 14 via Kernel Flasher.

For now, no problems, I will report later how is it working.
[Google Pixel 7] Sultanxda:
Long overdue update now up with many, many, many improvements and fixes. The extensive changelog is in the 2nd post as always. Enjoy!
[Google Pixel 7] PixelBobma:
I haven't installed the kernel yet. I don’t know if there is such a gap there or not. Please fix it (I want to install your kernel) -

When distributing the Internet from Pixel 7 to a computer via USB (modem mode), the phone gets very hot. Although I don't sit in it.

I'm giving away LTE.

There is no such thing on the iPhone. The iPhone is cold.

There are no such problems on another Android phone

I tried the original cable with an adapter.

It charges, distributes and warms up.

I tried a third-party one, a long one without an adapter, because he is USB C-USB

It heats up in the same way, but due to its length, it either charges slowly or discharges.

THX
[Google Pixel 7] geokilla:
Kernel doesn't work with the June 28 build of LineageOS.
[Introductions] Amitzz:
I'm here to gather information and knowledge from fellow android experts and developers.

I also programme and release some free games using unity
[Google Pixel 7a] Sultanxda:
/*
* 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 7, 7 Pro, and 7a. It is designed to be used with the stock Android 14 ROM and custom Android 14 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.

This kernel works with dm-verity/verification enabled! You don't need to disable verity or factory reset to use this kernel.

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

Features:

Works with dm-verity/verification enabled

Capacity Aware Superset Scheduler (CASS), a custom CPU scheduler that improves battery life and performance

Tensor AIO, a custom DEVFREQ driver that dynamically controls RAM speed for better battery life and latency

Simple LMK, a custom low memory killer that improves memory management

Improved thermals, so the device runs cooler

Improved single-core and multi-core CPU performance, especially when the CPU is thermal throttled

Improved idle battery drain when the device is in deep sleep

Improved touch latency

Improved GPU and gaming performance

Improved stability: fixed dozens of random reboots, freezes, memory leaks, and performance bugs which exist in the stock kernel

Compiled with GCC 13.2 and Link Time Optimization (LTO)

Many other advanced improvements not listed here

Source code:

Android 14: https://github.com/kerneltoast/android_kernel_google_gs201/tree/14.0.0-sultan

Credits:

Over 100 beta testers who helped make this kernel stable

osm0sis (for AnyKernel3)

If your name should be here and it isn't, then let me know

Installation instructions:

You can flash this kernel in any kernel manager app, such as Franco Kernel Manager, EX Kernel Manager, and Kernel Flasher.

Sideloading in a custom recovery such as LineageOS Recovery isn't currently supported, but support will be added in a future update.

Telegram group:

https://t.me/sultanskernel

Downloads:

Latest kernel
[Google Pixel 7a] Sultanxda:
Changelog:

May 12, 2024:

*Updated to May security patch

*Updated to Linux 5.10.212

*Added Tensor AIO, a custom DEVFREQ driver that dynamically controls RAM (improves battery life and latency)

*Improved performance in Unity-based games such as Wild Rift

*Fixed random reboots when the device boots up

*Fixed a significant memory leak in the Broadcom WiFi driver

*Fixed high power consumption when the CPU is throttled

*Fixed high power consumption during video playback

*Improved fluidity when the CPU is heavily throttled

*Fixed poor performance during heavy multi-core workloads

*Improved CPU energy efficiency by wiring CASS deeper into the scheduler (CASS now manages real-time processes)

*Fixed several issues in SBalance, my kernel-based IRQ balancer (improves performance)

*Made several improvements to CPU idle (improves battery life)

*Improved the CPU governor to select better CPU frequencies (improves battery life and latency)

*Made the scheduler aware of the CPU's DynamIQ technology (improves battery life and performance)

*Increased the minimum RAM frequency from 421 MHz to 546 MHz (improves battery life and performance)

*Fixed Play Integrity failures due to the kernel's name

Old changelogs:

October 20, 2023:

*Added support for Android 14, including the current QPR beta

*Fixed random reboots, freezes, and screen not turning on sometimes, all caused by a 2-year-old Google bug in the Emerald Hill zRAM driver

*Further improved idle battery drain

*Removed all of Google's Pixel scheduler additions, improving responsiveness and battery life

October 4, 2023:

*Fixed device not waking up sometimes, caused by the Emerald Hill optimizations introduced in the September 13 build

October 3, 2023:

*Updated to September security patch

*Disabled PREEMPT_RT due to stability issues and slightly higher battery drain

*Overhauled the scheduler for significantly improved multi-core performance and battery life (Geekbench 6 result)

*Fixed several issues caused by a memory management bug when available memory was low

*Fixed a major bug that caused Pixel 7 and Pixel 7 Pro to not use the correct thermal management settings, which hurt overall performance

September 17, 2023:

*Fixed random reboots caused by a bug in the Emerald Hill enhancements from the previous build

*Fixed GPS randomly dying and requiring a reboot in order to fix it

*Fixed random reboots on custom ROMs which use EROFS

*Fixed bugs in the EAS scheduler enhancements, improves overall performance

September 13, 2023:

*Significantly improved the Emerald Hill zRAM offload driver's efficiency and speed. Improves overall performance when RAM starts to get full, or after the phone reaches a few hours of uptime.

September 3, 2023:

*Initial release
[Google Pixel 7a] Sultanxda:
Reserved
[Google Pixel 7a] BunkerBert:
Thank you for this Kernel. I flashed it now sucessfully on galyxOS Rom.

Ive one question: can you explain what do you mean with: Improved single-core and multi-core CPU performance, especially when the CPU is thermal throttled

Greetings :)
[Google Pixel 7a] Sultanxda:
The rewritten scheduler is better at utilizing your phone's CPU more effectively. Because it is smarter with its decisions of how to use the CPU, the result is that single-core performance is about 10% better than stock and multi-core performance should be about 5% better (as seen with Geekbench 6).

Furthermore, when the CPU needs to thermal throttle to cool down, the scheduler correctly factors this information into its decisions on how to use the CPU. The stock kernel doesn't do this correctly, so the stock kernel doesn't utilize the CPU optimally when it is thermally constrained. This hurts performance and causes the phone to heat up even more.

So your phone's CPU basically gets a free hardware upgrade because it is utilized better. You can run Geekbench 6 to observe this ;)
[Google Pixel 7a] Malle355:
Thanks @Sultanxda . What a beast of Kernel. It doubled my battery time on EvoX. Awesome Work. Thanks in advance.
[Google Pixel 7a] Baron1971:
One stupid Question. When i flash this Kernel, can i keep my Root? Or is it necessary to root the zip?
[Google Pixel 7a] BunkerBert:
yes :) after flashing the kernel you still have root
[Google Pixel 7a] Sultanxda:
New build up with significant memory performance improvements 🏎️
[Google Pixel 7a] Sultanxda:
New build up with random reboot fixes, GPS dying fixed, and improved overall performance.
[Google Pixel 7a] kkrraazzyy:
Awesome work

Awesome work @Sultanxda
[Google Pixel 7a] BunkerBert:
Yes thank you very much. Kernel is stable as ****.
[Google Pixel 7a] sambow23:
What is the process for building this kernel? I'm new to building for GKI devices. I need to add a few drivers for my device.
[Google Pixel 7a] Sultanxda:
Install GCC 13.2 or use this one from the crosstool page.

Compile with these two commands:

make gs201_defconfig
make -j$(nproc)
[Google Pixel 7a] Sultanxda:
New kernel up with bigly improvements, enjoi
[Google Pixel 7a] bombadier:
Ignore, clearly says Android 13
[Google Pixel 7a] Sultanxda:
New build is up with the random reboots finally fixed. Turns out they were caused by a bug that Google introduced over 2 years ago.

Idle battery drain specifically has been improved, and overall responsiveness + battery drain should be improved with the complete removal of Google's massive scheduler additions.

There is now a build available for Android 14, which is compatible with the QPR beta.
[Google Pixel 7a] danon.brown:
Will this work with the latest 14 beta? It's 2.2.
[Google Pixel 7a] Raj Pandiyan:
@Sultanxda Bro can you pls add this feature....

Sideloading in a custom recovery such as LineageOS Recovery isn't currently supported, but support will be added in a future update.
[Google Pixel 7a] Saswata Chakraborty:
Just wanted to let you know that your kernel works great with LOS.
[Google Pixel 7a] Raj Pandiyan:
@Sultanxda bro your kernel rocks... Paired with LMOdroid... It's fabulous...
[Google Pixel 7a] trive253:
I'm returning in the android scene from a longo time and i just want to ask if this kernel can be flashed with pixel flashed. I want to know if this could break my bank apps. Sorry for the stupid questione but its a longo time that i don't do such a thing
[Google Pixel 7a] Raj Pandiyan:
Bro install magisk... Flash the kernel and uninstall magisk... That's all
[Google Pixel 7a] trive253:
Yeah but this doesn't break all my bank apps?
[Google Pixel 7a] Raj Pandiyan:
No
[Google Pixel 7a] purgy:
What's the easiest way to revert to stock rooted?

Will just flashing init_boot work, or do I need to flash boot.img again too?

Edit - just flashing boot.img from the factory image did the trick.

I'm sure it's been reported elsewhere, but somethings breaking play Integrity vs the stock kernel.
[Google Pixel 7a] scushbal:
Hello, does this kernel supports KSU ? Thank you!
[Google Pixel 7a] bombadier:
A heads up for anybody that uses Play Integrity Fix, google seems to be checking for custom kernels strings which means you can't use a custom kernel if you want to use google wallet

🔧 [MODULE] Play Integrity Fix (SafetyNet fix)

PLAY INTEGRITY FIX This module tries to fix Play Integrity and SafetyNet verdicts to get a valid attestation. BEFORE YOU START: - Your ROM must be signed with a private key from maintainer, you can check with this command: unzip -l...

xdaforums.com
[Google Pixel 7a] purgy:
You can hex edit the kernel name string, I had to do that to get it passing.

Hopefully an update will fix this however, being back on stock kernel for a week or so really made me appreciate this kernel all the more.
[Google Pixel 7a] bombadier:
Yeah I saw that you could hex edit the name string but I am too lazy and short of time to go learn about doing the hex edit so just returned to stock kernel, hopefully Sultan is aware and will release an update
[Google Pixel 7a] purgy:
Yeah I found it all a bit daunting, but it wasn't nearly as hard as it sounds. Aside from research it was about 5 minutes, including a "fastboot boot test.img" just to make sure before flashing.
[Google Pixel 7a] valacaus:
Hi!

This rom you mentioned is really interesting. Paired with sultan kernel, what you have to say about SOT and performance? And photography is good as OG pixel rom?
[Google Pixel 7a] viniciaum:
This kernel is no longer updated?
[Google Pixel 7a] Raj Pandiyan:
Bro was using it long back. SOT has to do lot with app you use, place of your usage, temperature in your area. But it was surely better than stock that time. Camera haven't used much bro.

The only problem is their LMO server is very very slow....
[Google Pixel 7a] veloz46:
Forgive my ignorance, is this Kernel compatible with Ksu, or does it have it? Thanks!
[Google Pixel 7a] LukeFisher:
Doesn't work for me anymore after the march update, can't unlock the phone after reboot.
[Google Pixel 7a] RAZINARES:
There is a beta version for march security update. you can join Sultans Telegram group to obtain it.

Sent from Pixel 7a using ReLabs
[Google Pixel 7a] bombadier:
I am a member in the stable group but not seeing a link to any updated kernel for the 7a, see a message about beta for the 8/8 pro
[Google Pixel 7a] RAZINARES:
There's a separate group for the Beta Version. Ask Sultan to add you to the Beta Testers group on TG.

Sent from Pixel 7a using ReLabs
[Google Pixel 7a] bombadier:
Joined the beta group, doesn't say anything about a pixel 7a but there is a March kernel update for the pixel 7a, PIF working as well, I hate telegram and find it a nightmare of gibberish
[Google Pixel 7a] Sultanxda:
Long overdue update now up with many, many, many improvements and fixes. The extensive changelog is in the 2nd post as always. Enjoy!
[Google Pixel 7a] wael2:
When will LineageOS recovery support be added? Kernel Flasher seems to output 'invalid ramdisk in boot.img' when i'm booting stock kernel with KernelSU LKM or KernelSU GKI

Installing with LIneageOS recovery causes boot failure and fallback to bootloader mode.

Edit: Fixed by flashing stock LineageOS boot, dtbo, etc, booting temporary KernelSU GKI, and flashing with Kernel Flasher.
[Google Pixel 7a] wael2:
Since it is not possible to simply flash boot.img from sultan kernel, how is KernelSU installation possible?
[Google Pixel 7a] Matt_Matt:
@Sultanxda Many thanks for the recently update!

any plans to integrate with KernelSU with susfs4ksu?

Many have been wanting to get KSU on their device but Kernel is restricting them to flash it.
[Google Pixel 7a] RAZINARES:
Nah, slutan hates kernelsu.
[Google Pixel 7a] wael2:
So it is not possible to have Sultan kernel with KernelSU?
[Google Pixel 7a] kodycdrews:
This is from the TG group. I cropped out the poster so they wouldn't get bugged with questions. But this information should be sufficient in answering your question.
[Google Pixel 7a] LG Studiotan:
Thank you for this flawlessly, fast running kernel which seems to spare juice!
[Google Pixel 7a] scorpio76r:
Just reporting that the May Sultan kernel is working on the Derp rom😁
[Google Pixel 7a] Doc_Samson:
where can i find the old kernel ? My base is not yet updated for the last sultan kernel
[Google Pixel 7a] scorpio76r:
Just reporting that this kernel and, the latest Derp rom did not work well for me. I soft bricked (was stuck on logo) and, was able to recover by sideloading the rom.
[Google Pixel 7a] kodycdrews:
Kernel isn't updated for QPR3.
[Google Pixel 7a] scorpio76r:
True. My device, confirmed also.
[Google Pixel 7a] LG Studiotan:
Just reporting that a Pixel 7a within a freshly updated LOS (lineage-21.0-20240628-nightly-lynx-signed.zip), utilizing Kernel Flasher 1.0.0-alpha20 to install Sultan20240512, leads to bootloop.

Confirm, somebody? Ideas maybe?
[Google Pixel 7a] bombadier:
Need to wait till the kernel is updated, doesnt work on the stock June update, slutan has updated the pixel 8 series but hasn't done the 7 yet
[Google Pixel 7a] mikiwinds:
Hi, i have latest evolution 9.2 and root magisk on pixel 7a. Can i install sultan kernel or another? Thk.
[Google Pixel 7a] roirraW "edor" ehT:
Hi @mikiwinds,

I moved your post above from the [ROM][14.0][UNOFFICIAL] Evolution X 9.2 [rosy] thread in the Xiaomi Redmi 5 ROMs, Kernels, Recoveries, & Other to this Sultan Kernel thread in the correct Pixel 7a section. :)

Thanks,

@roirraW "edor" ehT
[General Topics] muhammad._.ukasha:
I have seen many people using modified versions of WhatsApp. They use them because the modified version provides many features that the original WhatsApp does not provide. I have heard, some people say that WhatsApp modders can access and steal our internal storage. So, do they perform such activities? Is it safe to use these modified versions?
[About XDA developers] Amitzz:
Hello,

I have released a free game on playstore, wanted to ask the feedback from the fellow forum members, if anyone would like to try it.

I'm a new member here, don't want to get the post flagged as a spam, shall I post it here with the FREE title for feedback?

https://xdaforums.com/f/530/ - Here?
[About XDA developers] simplepinoi177:
Yes, as long as you as a member are the actual developer of said app/game, provide support here on it on XDA Developers Forum, and the game is free, then it is acceptable and the best place to make a thread about your game.
[About XDA developers] Amitzz:
Thank you so much for the quick reply.

Yes, this helps for my small free indie game :)
[Xiaomi Poco F1 Questions & Answers] iabidali:
Hi,

Sorry if I posted in the wrong section.

My poco F1 suddenly stopped accepting my fingerprints. It's behaving in the strange way. I tested it in CIT and it shows censor is Pass, however, when I try to add new or use it, it doesn't work, doesn't vibrate when wrong or actual finger is pressed. I'm using stock MIUI 12 and no root or no unlocked boot loader.

The strange thing is that I factory reset the phone and it doesn't take fingerprints but when I press finger on it, it woke the phone up, means the sensor is working.

I'm summary I did these things:

Removed old fingerprints.

Tried to add new ones but didn't work.

Factory Reset didn't work.

Cleaning fingerprint reader and fingers didn't work either.

What could be the solution?
[General Topics] Skamath:
I have two apps with different results. I can't make sense of it. How do you determine what is happening with each and what is more accurate. Second app is data usage- data monitor. Help much appreciated

Cheers

S

View attachment 5994113
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] user0u:
EDIT: Tested it using the edl utility by @Renate (thanks!) and it would load up to 98% and then say something like "asking for too much data". So I would say it is not even being accepted at all. Test closed, confirmed it does not work.

After a lot of digging around, I managed to edit the firehose file for EDL flashing but I am getting the "cannot receive hello packet" error in MiFlash. I searched around and found it may require the battery to be disconnected.

(Might also require the test point short method)

My phone is perfectly fine so I do not want to open it up. Especially when it is not held together by clips (like older phones) but glue.

So if you have hard bricked your phone, you might as well give this a try.

If you decide to do it you will need to delete the two original firehose files from the "images" folder and replace them with the one attached below. Then flash using MiFlash in EDL mode.

This is just a test so don't get your hopes too high.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] Renate:
You certainly did, but you broke all the hashes. This will not run on anything.

C:\>qcomview /h prog_ufs_firehose_sm8250_ddr_5.elf
64 bit ELF, Version 6, SHA384
0 00000000 00000350 1933a26ed533b39d 0267884da3dc98f6 cdd5b9b013f26f77 3823ae919ef3f5b9 c6e8c720191ed683 ff6953f8c45b66fc Ok
1 00001000 00001c48
2 00003000 00066684 17a3b3cb29b0cac6 b21fd800e9ab1f29 2858f4f99f2576c0 c01df8e6bf634df7 8e3cb4c7920049c8 a36c2465cdd08d10 Ok
3 00069690 00000000
4 00069690 0000dcb0 8e0cb826a90031da 9817aed8b8a4fdfb 60bf7fc111c9cf69 843d29bf96801a14 1a6fb81ae7f433c4 ec3fcb71a34f679c Error!
5 00077340 00010c78 3770abd6fb652014 cea11dcea7b7bb57 7b0898228822d1c8 3c77d70fb639e687 a0f71a8b334eacea ff7d6f514f15a561 Error!
6 00087fc0 00000000
7 00087fc0 00000000
8 00087fc0 00000000
9 00087fc0 00000084 b5da3375968382d4 752bd26b522bb1b2 e19d530b2e7954ca c1490843c9e83d02 1eb293a541f9a12e e0a1cbf783d9e3be Error!
10 00088044 0000972c e127ad7f1f246836 6dee29d9f6c45e64 f3a8371d9b18fd03 e42676c2b37a1eab 6a490e0539734265 c80dfce9e93eb4b6 Error!
11 00091770 000063f0 11696b36a40598f0 8ae623749e2e8f1d eddd0deea64763f5 7d870686d5ba3472 6e9a9425ea2aee7b e0d1c4e5393c6e27 Error!
12 00097b60 000063f0 260143ada0a7524d 48a8e9ddb5e36f46 a33fbc11d934e76c 45a4cd82fc087543 f95f2b70aa8fa25f 552c19ce1bb7ab6e Error!
13 0009df50 00016000 df76b97f5a28b8cc 40cbdfa488c4bc6e 781906b03ac0fe4a 8756dd6fa1170752 a3d2aba58e0eac22 5e628d44e808ac58 Error!

Yeah, you can trivially fix the hashes but that breaks the signing.

C:\>qcomview /hw prog_ufs_firehose_sm8250_ddr_5.elf
64 bit ELF, Version 6, SHA384
0 00000000 00000350 1933a26ed533b39d 0267884da3dc98f6 cdd5b9b013f26f77 3823ae919ef3f5b9 c6e8c720191ed683 ff6953f8c45b66fc Ok
1 00001000 00001c48
2 00003000 00066684 17a3b3cb29b0cac6 b21fd800e9ab1f29 2858f4f99f2576c0 c01df8e6bf634df7 8e3cb4c7920049c8 a36c2465cdd08d10 Ok
3 00069690 00000000
4 00069690 0000dcb0 8e0cb826a90031da 9817aed8b8a4fdfb 60bf7fc111c9cf69 843d29bf96801a14 1a6fb81ae7f433c4 ec3fcb71a34f679c Corrected
5 00077340 00010c78 3770abd6fb652014 cea11dcea7b7bb57 7b0898228822d1c8 3c77d70fb639e687 a0f71a8b334eacea ff7d6f514f15a561 Corrected
6 00087fc0 00000000
7 00087fc0 00000000
8 00087fc0 00000000
9 00087fc0 00000084 b5da3375968382d4 752bd26b522bb1b2 e19d530b2e7954ca c1490843c9e83d02 1eb293a541f9a12e e0a1cbf783d9e3be Corrected
10 00088044 0000972c e127ad7f1f246836 6dee29d9f6c45e64 f3a8371d9b18fd03 e42676c2b37a1eab 6a490e0539734265 c80dfce9e93eb4b6 Corrected
11 00091770 000063f0 11696b36a40598f0 8ae623749e2e8f1d eddd0deea64763f5 7d870686d5ba3472 6e9a9425ea2aee7b e0d1c4e5393c6e27 Corrected
12 00097b60 000063f0 260143ada0a7524d 48a8e9ddb5e36f46 a33fbc11d934e76c 45a4cd82fc087543 f95f2b70aa8fa25f 552c19ce1bb7ab6e Corrected
13 0009df50 00016000 df76b97f5a28b8cc 40cbdfa488c4bc6e 781906b03ac0fe4a 8756dd6fa1170752 a3d2aba58e0eac22 5e628d44e808ac58 Corrected

With the hashes fixed this will run if* Secure Boot is not enabled.

* The chance that Secure Boot is not enabled is 1 in 6.022 x 10^23
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] user0u:
What error should miflash throw in this case?

Because I am not getting any errors except the one mentioned in the original post.

I was trying to guess what this person did.

https://xdaforums.com/t/solved-i-need-help-edl-9t-lime.4385727/post-86226805
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] Renate:
"Hello" is Sahara so that should work irrespective of tools/Firehose loader.

I don't know Miflash (and don't care about it).

There could be a problem with not being in EDL mode or Window drivers.

I don't know what you did to alter seven program segments. Was that intentional?

I don't know, but at least their hashes are correct and it's signed by Xiaomi.

(Whether their signing is correct, I don't know.)

Normally I'd expect this to abort after loading ~7% of the Firehose loader.

If you want to try, just use my generic EDL client in my sig.

There may be custom Xiaomi roadblocks that make it fail to do anything useful, but a valid Firehose loader will at least load correctly.