yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] franco985:
I have tried It top, It's a Beast i feel It much more battery friendly
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dlb4all:
Hey sultan . big fan . i have a question . i dont have any usage for keeping apps open in background and the whole "Multitasking" thing

thats been going on . i much rather have my Ram all cleaned up and be free all time ( i dont know . i might have a weird OCD )

so ... should i change the values of LMK and make them more aggressive ? do they stick ? is it even possible in your kernel and android 10 ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bgboii:
So I tried the kernel for 2 days and I still have freeze ups. Any reason why?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Try again with the attached kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ygrec:
Can someone please provide a link for the last version of Sultan Kernel for Android 9? I'm still on 9, and cannot find the download link anywhere in this thread.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Mrcactuseater:
It just dropped, so I assume your patronising comment is just a poor attempt at comedy? Short answer, no.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
February security patch literally came out only 7 hours ago. You've asked this in at least 4 threads. Be patient.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeo10:
You should know this by now, no ETA requests.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] warrencoakley:
No I didn't know but I do now.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with February patches and some Simple LMK improvements.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flint777:
Hey where can I find the Pie builds. Still on havoc 2.9

---------- Post added at 07:32 AM ---------- Previous post was at 07:04 AM ----------

Please where can I find the last PIE build. Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BarryPooter:
This one is the latest for pie, see attachment:)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] willypratam4:
Hello guys, can you extract your kernel as .img file?

I want to try flash it via fastboot.. thanksss
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flint777:
Is it normal that cpu minimum frequency is locked to 1824??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agplugged:
If you search the thread, you'll see that it's been asked before.

And yes. It is normal for this kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with spicy performance improvements.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Do we still need to flash magisk after?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] warrencoakley:
Also interested to know.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pokeman:
No need to flash magisk after flashing the kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] warrencoakley:
Yep can confirm.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agplugged:
Phone actually feels snappier after flashing, will report back on battery life.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
Had the opposite experience, I rolled back. Scrolling through Twitter wasn't as smooth. There was stutters every now and then, sometimes when changing pages as well on the Launcher when going right and left, I rolled back to previous build and it was fine. But disclaimer, I do use L Speed for extra tweaks that make the phone very smooth for me (maybe conflicted with the memory optimisations made in the latest update). Can't comment about battery life, as performance and smoothness is my #1 priority and that's why I rolled back.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Don't try to tweak this kernel. It won't work out well for you.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
I know it is not recommended, but it's super smooth with the L Tweaks I used for the week since I rooted the phone. I love how snappy the phone is in every app, it's actually very impressive and noticeable difference, with very little impact on battery life.

But you're right, with the latest one you posted today, it wasn't good for me with the tweaks. It's okay, I went back to the previous version.

Thank you anyway for keeping our phones up to date and smooth. :angel:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] warrencoakley:
I found L Speed to be extremely buggy and conflicting with many things.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agplugged:
YMMV, I use a lot of social apps and they're all performing just as well if not better than the last update. I wouldn't recommend using any other mod with Sultan's, I used blackenedmod with Pie and it was terrible. I'm surprised you had no issues with the phone up until now.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Neverfalter2015:
This kernel is amazing.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] People11:
i love performance improvements
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] warrencoakley:
Not finding battery performance great on this release. Anyone suffering the same?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agplugged:
Battery runs pretty much the same, slightly better maybe. Been getting 5 hrs of SOT with tons of social and podcast streaming, while performance overall has improved for me specifically. What're your specs?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agplugged:
Hey [MENTION=4800121]Sultanxda[/MENTION] , is the flip cover support still viable for Android 10, with stock Android now supplying the "flip to shh" feature?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
"Flip to shh" doesn't use the hall sensor, whereas the flip cover does.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up (for real this time).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nightf0x_007:
Something that keeps happening with me in any every version, im using vanced youtube & running a video in background and doing something else, youtube closes
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] wesleykruise:
How do I know if the installation was succesful?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matekaneve:
Check settings/about phone/android version

The name and version of the kernel should be there
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrBrady:
I'm a YouTube Premium subscriber and videos don't play after I stalling the 2/24 kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] EindhovenOne:
Hi, everyone. There's a lot of great information here, but I wanted to get some advice before I proceed, just to make sure I am going down the best route. I am still on Android 9 on my P2XL, bootloader is unlocked but I am not rooted yet. I want to use this kernel, but I know I obviously have to get to Android 10 first. Should I let me device take the OTA update to Android 10, and then root and install this kernel? Or should I root now, flash a rooted stock 10 ROM, and then install this kernel? For reference, my current version is build PQ3A.190801.002, kernel is 4.4.169-g09a041b17c60.

Thank you all for your time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Work fine here
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prey521:
I think that maybe the OP should update the original post since you no longer need to reflash TWRP or Magisk when flashing this kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with a significant update to Simple LMK. Turns out that SLMK needed an update for proper compatibility with Android 10; without it, SLMK would target more important apps to kill rather than less important ones. Oops.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
Can confirm, after installing this latest kernel I can use L Speed without any issues and phone is super snappy again. I guess the problem got amplified to x10 with L Speed which was causing a lot stuttering and slow downs basically killing every important background task. Haha.

Thanks for the update :good: phone is buttery smooth again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrBrady:
YouTube Premium working fine for me on this build.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Neverfalter2015:
Incredible as always. Love this kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] enskje:
much thanks kind sur
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jwchen119:
Noticed that, too. Found that we don't need to reflash Magisk in the flashing log.

Great job!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with more Simple LMK fixes to fix camera lag.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sui77:
Hey Sultan, can I donate with paypal?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Yeah, there's a link in my profile if you really want to (https://xdaforums.com/donatetome.php?u=4800121).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with March fixes.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
I'm using February firmware update with PixelDust ROM. I don't need the March firmware to upgrade to this build of the Kernel, correct?

Also Google has updated the Kernal for all the Pixel devices with this latest firmware update, is the new Kernel the one you're using for the base of this Kernel?

Thank you for the quick updates. :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dlb4all:
thanks for the hard work sultan . i still have many unnecessary apps in my ram which are slowing me down

(about 600 mb free ram in average) . i would loveeee some version of this with the most aggressive

Low memory killer ...

and typo :D
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Yes, that's what updating to the March security update means. You don't need a March ROM to use the March kernel though.

Manage it yourself by swiping apps out from recents. This is not the job of the low memory killer.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with lower CPU frequencies to improve battery life.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gingernut78:
Thanks for your continued support.

Just wondering, looking at your latest commit, as to why you choose the 1478400 kHz over 1555200 kHz as the lower efficient CPU frequency for the small cluster?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Because 1478 MHz is the cutoff for efficiency; everything below it is significantly more inefficient. I wanted to choose the lowest possible frequency that still had good efficiency.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gingernut78:
[MENTION=4800121]Sultanxda[/MENTION] Any idea why when using a custom kernel google play system updates won't install?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] v1ks:
+1
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
No clue. Maybe because AVB is disabled?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] keaheng:
Same problem. Happens on my pixel 4 when I'm on stock rooted image. Google knows. My phone will not even get security update. I had to restore the bootimage.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Google doesn't push those updates to devices with unlocked bootloaders. I've not received either the Google Play system update or even a monthly update OTP since unlocking the bootloader.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
You can update Google Play System with an unlocked bootloader. Just hit the "Check for Update" button. The problem is it won't install on most, if not all, custom kernels for this device. You have to flash back to stock kernel for it to actually update and install.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] livsey:
After a short work in the camera application, about five minutes of a photo, the phone went into reboot! At the same time, there were small friezes in the camera, while processing HDR+ !! I noticed only on this core. Check, please
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with Link Time Optimization!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dwarazyA:
How can I get back to just stock kernel?

---------- Post added at 08:18 PM ---------- Previous post was at 07:53 PM ----------

I came back to stock kernel, unfortunately I still can't update the system, how to do it?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] redrivera:
Use Deuce's tool and use a stock factory image
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sui77:
Seems you're right.

What's the easiest way to do so?

Flashing the latest OTA update or factory image w/o -w?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] warrencoakley:
Yes flash latest March update to return to factory Kernal. In future use EX Kernal Manager and back up stock kernal before flashing custom ones
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
You can also just extract the boot.img from the factory image or OTA and flash that, either via TWRP or using fastboot. You'll lose TWRP afterwards so you'll have to reflash that. It's also recommended that you disable your lockscreen security before proceeding.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sui77:
Did not work.

After applying the boot.img 8 found the update and was able to download, but after the required reboot everything was like before
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nightf0x_007:
After updating to 11 march version, cstark px camera app crashes
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
I just installed it and it worked.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] fajar rinda:
Work well on me
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shahez:
Can I use GMS doze mod from magisk along with this kernel ? Is there any benefit of using GMS module ?

---------- Post added at 04:10 PM ---------- Previous post was at 03:23 PM ----------

Under graphics , backlight max brightness is 255 for my pixel 2xl is that max brightness ? Does pixel 2xl have HBM?

---------- Post added at 04:12 PM ---------- Previous post was at 04:10 PM ----------

For pixel 2xl can't we have color calibration .?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shahez:
In the app setting untick Google photo viewer
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ph0z3:
Coming here from Elixer... Do I need to do anything before flashing?

Stock/no-root w/TWRP
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mar_Py:
Hello together,

this post is not intended to contribute or for asking something. Just wanting to say that i'm a kind of sultan fan boy since my oneplus one, over the oneplus 3 and i've just ordered a used pixel 2 xl just for having some bleeding edge sultan updates again :). My pixel 2 xl should be delivered in a few days, looking forward to use sultans kernel :)

Have a nice evening and thanks sultan for your efforts!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
Best practice is to not flash a custom kernel over another custom kernel. Best if you went back to stock kernel before flashing.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ph0z3:
I've had Elixer so long, I don't even have a stock backup. Is there a stock kernel on here anywhere I can flash?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
You can extract the boot.img from the factory image you are on and flash that.

You'll have to flash TWRP again afterwards.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ph0z3:
Ah crap, I'm not good with any of that, but alright I'll try it when I get a minute.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
Before proceeding it's best to disable your lockscreen security. You can flash the boot.img either via TWRP or fastboot. And like I said, once you do you'll lose TWRP so you'll have to flash that again via fastboot and then flash the installer via TWRP, although the installer is optional if you don't need to keep TWRP on your phone.

Alternatively, if you are not on the latest factory image and you want to upgrade to that (which will also put you back on stock kernel) you can fastboot flash the latest factory image while removing the -w from the flash-all.bat script so you won't lost your data and then install TWRP and flash the kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ph0z3:
I think at this point, I might just reset my phone, and reset back to full stock, get everything up to date & then make backups, and maybe do a new kernel.

Thank you for your help
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
No problem. Good luck :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with more fancy stuff.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] antpod:
Is it possible to re-enable haptic feedback while camera is in use ? Because my keyboard's haptic feedback is broken when I use Snapchat...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] People11:
Did anyone notice this issue?

From build 0302, when horizontal displaying. When you slide the screen up and down, there will have some tearing（Especially in the background interface）. Build 0228 didn't have this issue.

It's a pity that I can't show you some videos about it, because I don't have another device to record it and screen recording can't capture this issue. I can only reboot my phone to solve this problem but it will appears again when I set to horizontal displaying. I have back to build 0228.

Wish will be fixed the next build.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] firecode95:
Hi, to everyone, I was wondering could it be possible to implement kernel support for droiddrive apk to make phone act as cd drive, I know its very ancient technologie but sometimes very usefull, havent worked on android kernel since android ics so alot is changed, maybe [MENTION=4800121]Sultanxda[/MENTION] could enlight me if ums is still supported in kernel and if its even possible, looked at kernel source and saw some code fragments but alot has changed(code to implement this functionality on nexus 5 https://github.com/CyanogenMod/andr...mmit/46bd47757a9f34c1d95dd2620414893212fb0526). Btw thanks for kernel;)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
I can't reproduce this issue. Looks like it came from the big security bulletin in March.

Try the attached kernel. I can't do much other than guess as to what's causing the problem...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with April fixes and some other fixes.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Neverfalter2015:
Aaaallllll the fixins. Thnx sulty
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] AirCombat:
Issues

After using this kernel for a couple months now, I keep running into the same issue. I flash the kernel (typically after an OTA update) and also flash Magisk and TWRP in the recommended order. Everything runs fine for a few weeks, and then I pick up my phone one day and the lock screen is flashing on and off. It does this for about 30 seconds, reboots, does it again for 30 seconds, then reboots into recovery.

It's not a hardware issue as a factory reset or OTA update cures it. It never happened before with just Magisk & TWRP. Is there some way I can get a debug log or other info to help fix this? It happens randomly, and usually quite a long time after flashing, so having debug logs on all the time might be the only way to get it?

Any help is appreciated!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Are you sure that's caused by the kernel? This sounds very programmatic, like something in Android went off and decided to do this...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DarkB055:
Hey so I know I'm going to get laughed at but is there a possibility that the display can be overclocked to 75hz or more? I really really like this phone even compared to the new stuff and was hoping this is possible.

Besides the headphone jack, this device has been the most perfect I've owned.

Thanks for your great work [MENTION=4800121]Sultanxda[/MENTION]
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Nope, can't be done on this phone because we have a command mode panel, not a video mode panel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build with GCC 10.1 and some other stuff. Very fancy.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] oridan:
[MENTION=4800121]Sultanxda[/MENTION] firstly, thank you for your continued work on this device. I haven't felt a need to upgrade my Pixel 2 XL despite ordinarily jumping on the new google flagships, but that doesn't mean it can't be improved!

On that note, I have a frustrating issue which i'm unable to resolve in the "ordinary" way.

Is it possible to enable wifi Dynamic Frequency Selection (DFS) channels in Europe with a kernel patch? No Pixel phones support it, but other androids phones work just fine.

There are a number of threads relating to this issue (sorry, i don't have privileges to make them links):

kteem.net/2018/03/why-cant-google-pixel-use-5ghz-wi-fi.html - (brief summary of DFS)

forum.dji.com/thread-100550-1-1.html - (relating to wifi enabled drones)

reddit.com/r/GooglePixel/comments/61xxwo/pixel_never_connects_to_5ghz_on_google_wifi/

issuetracker.google.com/issues?q=pixel%20DFS%20wifi - (google issue tracker, most of which are set to WONTFIX)

As I understand it, it's awkward to go through certification to enable them, so they simply disable those channels in Europe. The usual advice is "change the channel on your router/AP", unfortunately not all wireless devices are configurable to that extent. My own issue is a car head unit, not something i can configure, patch or flash custom firmware on!

I forked your repo with the intention of investigating, but I was unable to get it to compile under macos or ubuntu due to toolchain or build environment. Unfortunately I couldn't figure it out.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
cpu_input_boost boosts way later than that, so yes, it was intentionally left in the kernel. It's meant to boost during the period when the device is waking up from deep sleep but the kernel hasn't been told to turn on the screen yet.

Due to the nature of cpu_input_boost, you can't customize the minfreq yourself (and honestly, you shouldn't). CPU boosting occurs when your finger touches the screen or when something on the screen is actively animating (i.e., something on the screen is moving). Your CPU is not getting stuck at the boost frequency; it's just getting boosted very often, which is intentional.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] zacharias.maladroit:
That would also co-incide with the boosting once screen-content changes,

thanks for the clarification.

The thing for me is that the battery consumption right now is significantly higher than before (to be fair my kernel has changed a lot so I'm investigating what else could be the culprit).

I'm suspecting some rogue app or service but wanted to rule out any functionality that interacts with frequency control.

However it's a bit weird that the 300 MHz frequency is hardly used, the 2nd give-away is that the set-up boost frequency 1171200 (little cluster) or 499200 (big cluster) is close to never used.

Only the max frequency (kernel is underclocked) is being used [see attached screenshots].

I've looked at Kconfig and defconfig of your kernel - you aren't using msm_performance at all - is that correct (unless I'm missing anything) ?

Just answer if desired when you're back from holidays (or at all) - having to focus on this kind of stuff while at leisure is no fun, I imagine

Thanks a lot

edit:

caused by some components in my kernel - started from scratch and stuck frequencies at max isn't happening anymore

thanks