yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] keaheng:
Im not an expert but what i observed with my Pixel 3XL is its the worst phone google have made so far. Crazy battery idle drain (between 1.2-1.8%) while its around 0.4% on my 2XL, biggest notch in smartphone era, frame drop everywhere while i was playing pubg while its working smoothly on my 2XL. Its been 6months but google have not fixed all the issues. I dont know whats the reason behind it. I have money to spend every phone i want, im back to 2XL instead and im happy
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Mrcactuseater:
https://xdaforums.com/pixel-2-xl/development/kernel-sultan-kernel-t3802152/post79268456
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with a couple of random reboot fixes and a small performance improvement.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Is it possible to flash this kernel via fastboot ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with performance improvements.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] keaheng:
Hi sultan,

Itls weird i start scrolling in facebook there is huge latency but everything except facebook works good. I can send the video or you can try yourself. I forced myself to use stock kernel and its back to normal.

Confirmed: its not only on facebook but everywhere.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Hormesis:
Latest build is working great for me. Super smooth and battery life is fantastic as always. I really have to wonder why Google doesn't just hire Sultan and a few other people to optimize their phones a few months before they release them.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Scrolling is smooth in Facebook for me. There was probably something heavy running in the background when the scrolling lag appeared, and then rebooting caused the heavy thing in the background to disappear. Try again and see if it still lags.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] keaheng:
Hi it happens no matter I do. You can start scrolling slowly on your screen you will notice (fast scrolling is fine) I thought It was Facebook bug but it was not. I'm pretty sure. I have just clean flashed my phone and it worked as normal but immediately I flash the kernel on top it was there. Do you have telegram? I can send you a video.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Yeah, telegram is kerneltoast. Send a logcat too.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ajih96:
Is it possible to get kcal on this kernel...???
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
That's already been answered, and it's probably never gonna happen.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sui77:
Could you add the magisk check so that it's not necessary to flash magisk after each kernel update?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
I'm probably wrong, as my guesses are like 99% of the time. Lol

I assumed since this kernel requires TWRP after the kernel but before magisk (if you install it permanently) that it would not work. Again... What do I know?

But yes that would be cool to have the feature but as long as it didn't effect reliability. I think Cesium and Elixer both copied the code from Flash maybe??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sui77:
I'm not sure, but at least after TWRP is installed, the kernel can just be installed as any other.

I switch between different kernel, no problem
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] arvylas:
Caesium is Flash. The dev took the flash code base and continued the work.

If you have root you can do it without twrp. You just flash the kernel with FK or Ex app and then flash magisk through the Magisk manager and you're good to go.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
[MENTION=4966885]sirxdroid[/MENTION] I think your freezes were caused by this bug in Simple LMK... https://github.com/kerneltoast/simple_lmk/commit/7e76fae18a1abd98e1d4ea4ea502752761d3c3af
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with some severe bugs fixed.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
I'm always curious when I see a message like this since I've been running the July 01 build with no issues. Can't wait to load this new one up.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
You know, I'm honestly baffled that Simple LMK worked fine for so many people until now. It was killing a random, undefined number of processes every time memory ran low...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
I still noticed occasional graphical glitches with the July 20 build, so I've uploaded a new build attempting to fix the glitches. Will be too busy to update again for at least a week, cheers.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BlakeSm:
Still getting graphical glitch
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
I haven't seen any for a week, and I used to get them every day... maybe you're thinking of something different.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BlakeSm:
The screen glitched out pretty bad, it wasn't an app or anything, I had to restart. There was a greenish/purplish line on the bottom and the right half of the display was black/stuttering. It seemed like a graphical glitch. First one I've seen in awhile. I'm on stock with newest kernel
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Oof, yeah that's the right glitch. Is there a console-ramoops I can see?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BlakeSm:
Not sure how to do that, but if you could let me know I would be happy to! Would it too late to do it now or should I have done it right after the glitch?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
It's only too late if you rebooted your phone again since the time you rebooted it in response to the glitching.

You need root for this. Open a terminal emulator app and run the following command:

su -c 'cp /sys/fs/pstore/console-ramoops /sdcard/console-ramoops.txt'

Then upload /sdcard/console-ramoops.txt to XDA.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BlakeSm:
No such file or directory... Might have restarted again since it happened this morning :/
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Darn. Well, based on your description, I know which of my changes is causing the glitches, but I don't yet know why. This will be fun to debug :P
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
What were you doing on your phone when it glitched out?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BlakeSm:
Opening Tapatalk app ironically
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Hey, with this kernel I noticed Settings apps is semi-reopening when u leave it. Anyone have this issue?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
That's a feature. The Settings app has gif animations on certain pages inside of it (such as the adaptive brightness page). These gifs continue playing in the background after you exit Settings, unless you force stop Settings. I made the kernel automatically kill Settings when it goes into the background, so that Settings can't continue playing its various gifs and drain your battery.

I reported this bug to Google a few months ago and they acknowledged it: https://issuetracker.google.com/issues/129594922
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Oh, thanks for the explanation!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] redrivera:
Do script tweaks like PK's tuning/blackenedmod play well with this kernel? It's been a while since I ran any of them because I was afraid they'd be modifying the very same values that sultan is optimizing. Maybe I just need an ELI5 of what happens if I run both at the same time XD
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] brainmaster:
Well I used them for some time with Flash kernel, but after switching to Sultans kernel, not using any "tweaks" beside the kernel itself. Just Magisk with few Modules, but none to "tweak" system... IMHO Sultan is doing the tweaking very well, that's all I need. But again, it's just my opinion.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] redrivera:
This is why I stopped using them too. I just got curious ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sentheb3ast:
What modules do you use?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] brainmaster:
These 6.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Found what the problem was! Should be fixed in the next build.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Mhhh cant get this one to boot up.

Flashed Stock-Kernel before,then twrp kernel and magisk 19.3

Not booting at all.anyone else?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] brainmaster:
No problems here. Kernel, then magisk 19.3. That's all.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bigknowz:
Boot image, Sultan, TWRP, Magisk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
I never tried this way but will do.

Never had probs before with my method before
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bigknowz:
That's the order in OP.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Didn't work.flashed stock rom.working now
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up containing several small performance optimizations I had removed a little while ago.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CHANGiism:
With the new build, my phone will not go to deep sleep, and Ex Kernel Manager shows that lower CPU freqs are not available for both clusters. Didn't do anything different, just flashed using TWRP on stock rom.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
[MENTION=2942963]CHANGiism[/MENTION] I don't know what build you were on previously, but the CPU freqs have been set like that since.. at least the first June build? I can't remember

The phone should still deep sleep (mine does). Though I am curious about how frequencies are handled when screen is off but Bluetooth audio is playing (or a situation like that). I can say it doesn't destroy battery life though
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Is there a reason why you're not updating to AnyKernel3 ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] brainmaster:
Damn Sultan you're making the P2XL fly... I'm used to switch to new phone every year, now I must wait until P4 comes. That's more then 18 months for me stuck with same phone. I'm just not used to it... You're doing great job. Thank you buddy.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] coolsid8:
My active battery usage is around 24% an hour with around 70% brightness. Is it normal ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] lil_ith:
7-15% is normal imo
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
Depends what you're doing. Mine is ~27%
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bigknowz:
Lift to Wake

On DU, last 2 times I flashed Sultan in this sequence - boot image (was on different kernel), Sultan, TWRP, Magisk 19.3. Both times, lift to wake stopped working. Anyone else experience the issue? If no, next Friday when new DU rolls out, will flash Sultan after DU and then report back if recurrence.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Does DU has oms commits for substratum?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bigknowz:
DU

no
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
New build is up with Bug Fixes and Performance Improvements™.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
Thank you for the new build.

Is there a way to install the kernal without having to every time remove my passcode and my fingerprint scan? Sorry if this has been asked before, but it's really frustrating when booting to TWRP to flash the kernal every week or two, I have to remove the fingerprint scan and passcode otherwise TWRP can't read the drive.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] enskje:
flash april image first then latest one on top to fix decryption in TWRP. it is TWRP issue anyway
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] IAMG:
https://play.google.com/store/apps/details?id=com.franco.kernel
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] reddevil08:
You can use adb push to transfer latest kernel to /tmp and then flash from there. /tmp doesn't need decryption. You'll ofcourse need to be connected to a computer. This is what I've been using as a workaround as downgrading back to April build and then upgrading to latest is a lengthy process.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Since you're already using the computer, isn't it easier to simply use adb sideload instead?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] reddevil08:
I flash Magisk as well, so I prefer doing it via adb push.

Sideload would work too I guess, never tried it though.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
I also flash Magisk afterwards, and adb sideload works fine for me. I'm forced to using it ATM due to stuffing up the encryption by flashing Q, and I'm too lazy to reflash, wipe /data and set everything up again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] reddevil08:
I'm in the same situation too. Flashed Q but came back to Pie. Flashed April build and then upgraded to July with data restore from a nandroid backup. Twrp decryption still didn't work. Stuck with having to use adb to flash kernel updates.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sadiku:
To workaround TWRP decryption problem, I do put the .zip file that I want to flash in /data.

我從使用 Tapatalk 的 Pixel 2 XL 發送
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Mrcactuseater:
To one-up you on that, put it into /cache and it will automatically be deleted upon the device rebooting.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sadiku:
When phone is on and put the file into /cache, then reboot to TWRP, will file still there?

我從使用 Tapatalk 的 Pixel 2 XL 發送
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Mrcactuseater:
I'm unsure, i just adb push to /cache when the device is in recovery mode.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] murphyjasonc:
It's not there when the file is placed in /tmp so I would think it would be deleted in /cache also but I haven't tried.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHANrad_SIN:
Trying out sultan kernel for the first time and I can honestly say I am impressed so far with the performance. I've been reluctant to try it since there is no Kcal support but so far based on how well it performs I am willing to sacrifice that for the performance. I've never seen apps open as fast as they do on this kernel. On top of that, RAM management seems really good. One issue I always had on stock/other kernels is playing pokemon go. If I had PoGo open and then open the camera to take a picture PoGo would be killed in the background and would have to reload. With sultan kernel this does not happen. I will test battery life for a few days and see how well it performs. But so far great job.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Curiousn00b:
Hahaha, Kcal kept me away too, but it turns out that custom roms that have it built-in to the display settings work anyways . :p

Everything else you said about the kernel is also true. Haven't had any memory issues that caused me to scratch my head either.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Do i have to flash the boot.img and the dtbo.img to go back to stock ? I want to take OTA Updates.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DonQuixote77:
Seems that lift-to-wake on DU still isn't working on Aug patch and latest kernel update. Also using twrp (3.3.0-0) and Magisk 19.3
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Curiousn00b:
Is it a DU thing or only when you flash the kernel for DU? Working fine here with Colt OS. Maybe try retoggling options?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bigknowz:
Only thing that solved for me was dirty flash DU.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] coolsid8:
Hi,

My active battery drain on Sultan running Stock is around 24-25%/hr. On other kernels like elemental, it's around 14-15%/hr. The idle drain is around the same.

Is this expected behavior or something is wrong with my phone ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DrUnknownEMC:
Show us screenshot. Usually you will have higher drain in your first cycle.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DonQuixote77:
Everything works fine on stock DU kernel, as well as EXK and Kirisakura. I've tried toggling options with no success.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Wow this dev is on fire!

However it is the first kernel/rom I have looked at and seems perfect for my dad who complained to me about ram management. So far I closed his 99999999 tabs and we will see how much of a difference that makes when he's using Uber and Waze.

I apologise to any other devs reading the first line since I come from a galaxy note 4 which I'm still using and have had it for only a year so I'm not up to date with kernels roms etc nowadays only magisk really. So keep up the great work

Also I want to make sure: I would need to unlock the bootloader, (just checked and there's standard and critical unlock! Wtf I would be fine with this but it is not my personal phone so there's more things that can go wrong) and I guess upgrade to pie first then after bootloader unlock flash twrp to flash this kernel.

Do you guys like the iPhone like gestures and are there any bugs present with this great kernel? Lots of random reboot fixes from what I've read.

PS: can't believe I had to type pin code to access developer options just to see what is eating ram! Security level 999999 compared to before lol. So much seems to have changed with A/B partition and other terms I'm not familiar with, must be a nightmare being a dev nowadays:laugh:

Time to sleep then research a bunch.

I appreciate your replies it saves some time, also he doesn't like the phone lol and blamed me for it. We were literally about to purchase galaxy s8 (plus I think?) and he saw an ad on this phone and was interested. So I decided why not he's coming from an iPhone and this is like the android equivalent to an iPhone... boom he hates it

This post is long I hate myself for doing this but at what point (if there's one) does Gpay stop working, because there's all this crazy sql hacks and guides I've seen to get it working. Basically I'm planning on only flashing this kernel and not flashing twrp or magisk again unless I need twrp to update. Banking apps should work fine right?

I apologise since I do have a few other things to do and this was unexpected and a very rushed post. Thanks for reading, goodnight lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Now that I am "sober" (I don't drink lol) I realise I wrote WAY TOO MUCH.

So simple question:

Do you guys have any problems using Gpay?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
I don't use g-Pay, so sorry I can't help there and I'm overseas and tired, but the unlocking of this phone is very easy, there's a thread in this sub-forum which I believe is pinned, but I'm not sure.

I wanted to reply to your long post earlier today, but lost connection and lost the comment, so hopefully someone else can give you details.

Anyway you should ask all these questions in the Q&A sub-forum of this phone. You'll probably get answered faster there.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Ah that sucks thanks for trying earlier man I appreciate it.

Yes I did some research and unlocking the bootloader is easy. Just want to make sure if Gpay is working or not before I waste my time trying all these outdated (if they are) guides on fixing it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] murphyjasonc:
Google pay works perfectly for me. It had always worked until I RMA my phone. After rooting my replacement it didn't work anymore though. I followed the fix listed in the magisk forum and it was back working in no time. It just required editing an XML file but I can't remember which on right off hand.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrBrady:
There's also a Magisk mod (not listed in the Magisk downloads) that does all the XML modification automatically
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Okay I believe I know what you are talking about. Good to know that still works.

Thanks, I'll get back to this thread if everything goes well... or not.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Was it this?

If not then I guess this is newer or different.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] murphyjasonc:
This is the magisk module that should edit the XML files for you that [MENTION=3104236]MrBrady[/MENTION] was talking about. I did it manually because the magisk module wasn't available yet so I haven't tried it. I would give it a go and see how it works. If not here are the steps that I used from the Magisk thread. I saved it to my PC and can't remember who posted it so I can't give them proper credit.

1) download a SQL database editor. I used

https://play.google.com/store/apps/d...ditor&hl=en_US

2) download a terminal emulator program. I used terminus but any terminal emulator should work.

3) make sure Google pay is forced close, if it is open.

4) open SQL editor. Navigate to /data/data/com.google.android.gms/databases

5) open dg.db

6) change any value that lists "attest" in the name (first column) to 0 in the third column. Mine was showing a value of 10 in the third column for each of these values. (Column c for sqlite databse editor I used)

7) open the terminal emulator.

8) get root access (su)

9) cd /data/data/com.google.android.gms/databases

10) type: chmod 440 dg.db

This makes dg.db read only (for owner and group, and no access for world.)

11) reboot

I suspect when gms is updated, one will have to go back to steps 10 and 11 and chmod 660 dg.db to allow new keys to be written to the database, and then go back and redo all these steps to reset the attestation values back to 0.

If there is still an error, verify in sqlite database editor that all attest release keys values in dg.db are 0 when dg.db is read only (owner and group).

Again, YMMV but this worked for me, so I give it back to the community now.

Edit: recent activities did show up soon afterwards for the payment method.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Silly final question (whilst the phone is upgrading to android pie)

Do I have to allow twrp to modify system or not. Because if it does then won't it break safetynet or does it have to due to a/B partition or something. Haven't really found an answer to this via research. So I'll probably have to allow it.

Oh and what about the encryption, do I have to remove pin code and fingerprint to use twrp now or not?

Thanks for helping making this phone great
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Windroid-user:
Thank you all for your help and of course Sultan which is actually a name of a restaurant here near me:laugh:

Everything went well apart from the misleading "app data" backup that google does when in fact it simply install the apps you had from the Play store (if they were from there) without the data part.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Triscuit:
Sultan is on vacation right now, so I would go back to the previous release until he gets home.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Oh yes totally forgot that

Cheers ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mickyw1980:
Totally opposite for me, best battery life yet. But still testing.