yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
[MENTION=3428502]Freak07[/MENTION]

Reaching out to you because i have no idea what else to do. I spent the last 2 days on stock kernel, camera app has zero stuttering or lag , when i press capture button it captures.

With 1.8.8 it was really bad lagging and delay in capturing and the UI of the viewfinder was choppy especially at night , night sight or not doesn't matter.

1..8.9 is slightly better but the behavior is still there.

I started my own thread on it here and there doesn't seem to be any consistency rhyme or reason as why this occurs

Can you look into this for me plz?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] 93ae8074:
I was checking the module code and some of its parameters may clash with this kernel default parameters. I reckon that nothing bad should happen as you are just overwriting them. Try it and let us know. :) And I saw that it does things as limiting CPU freq., e.g. 2.28 GHz max freq. in Balanced mode; blocking wake-locks, changing build.prop parameters, etcetera.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] ahh123:
Where do I find this?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Bryanx86:
Pretty straight forward where it can be found....
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
nice! Welcome on board :) enjoy the ride!

I would advise against using these kind of scripts! It interferes with the power hal, that’s specifically tuned for this device and its EAS implementation! Also probably with some kernel settings I changed by default.

The pixel 3s CPU Scheduler is in its form unique so unless the tweaks are extremely device specific there’s no way a universal tweak will be fully beneficial.

This won’t magically make your phone perform better.

Blocking wakelocks isn’t necessary at all and is hurting the device’s uptime in the end. The only reason for blocking a wakelock may be if the firmware if your wifi router is incompatible with your phone’s wlan driver for example. Or bluetooth device’s etc. Wakelocks are needed for the phone to function properly. If an app is badly coded and keeps your device awake excessively and unnecessarily this will not be solved by blocking kernel wakelocks!

Have a read here: https://arstechnica.com/gadgets/201...sts-tracks-and-improves-android-battery-life/

I took a look at your thread in the Q&A section.

There were no specific kernel changes regarding the camera that could cause this in the December update.

I will however look into it. The first start of the camera app is always a bit rough. It’s the same on my HTC U12+. Maybe something can be done about it.

Flash it via TWRP or FKM. Pay attention what happens on your screen ;) Merry Christmas :)

Hehe ;)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Semtronix:
Got all excited to see something happen. Then nothing happened lol. FK just did what it always does, sit there blankly until it reboots.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Activate stdout in fkm :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] :
Right back at you, Merry Christmas and thanks for the update. It's running fantastic.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Sunnyschlecht:
Finally decided to make the switch... definitely worth it.

Besides getting better battery life, it also fixed my issues with magisk hide not working properly. Thank you very much and a merry Christmas to y'all
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Dark_Eyes_:
Merry Christmas

Merry Christmas my friend! I really appreciate your work, and for a retired dev I know how much time and effort goes into every release, small or big. I hope this small gift gives you motivation to keep going ;)

I also encourage everyone who enjoys [MENTION=3428502]Freak07[/MENTION] work to send him a few bucks to support him. It's the season for giving, right?

1L904719BK128754Y
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Bryanx86:
Good advice, and Merry Christmas! 6EA25204U9953992B Merry Christmas [MENTION=3428502]Freak07[/MENTION] and everyone else at XDA.:victory:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] 水攸月羽:
It happens on my Pixel 3 as well, mostly only happens on the first shot when I launch camera by double tapping the power button, but the lag never happened on my OG pixel and pixel 2. However I'm not sure if it would happen on stock kernel.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] hilla_killa:
When i double tap power power button it takes just as long to open camera on stock, ex, and this kernel.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] 水攸月羽:
Sorry for not getting it clear, but I mean the delay between the moment I press the capture button and the moment photo show up (the flash screen animation), not the camera launch speed. The delay doesn't happen every time though.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
Just to clarify it isn't app opening speed, it's the choppy, stuttering behavior of the viewfinder, and sometimes the delayed shutter when taking a picture, and it's not just with freak07's kernel but any aftermarket kernel, stock kernel works the best in terms of not having this issue reproduce with such consistency.

I can't figure it out or as to why.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] smartymcfly:
Did you change any of the settings in a kernel manager?

Or have a non stock rom installed?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
stock rom

flash n go (no settings changed)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] smartymcfly:
How about apps that edit gesture?

All of the gesture apps that use accessibility have caused lag for me. GMD gesture does not cause any lag for me.

There was another app that was causing an issue when accessibility enabled....

I don't have any kind of lag at all with camera. I double press power button and it opens up immediately. And then I can press the col up key and snap a photo a half second later.

Have you changed the full screen or immersive mode on any apps? This also caused an issue sometimes for me. I had to completely shut off navbar in build.prop or else keep it enabled.

Have you ever changed any of the kernel settings, of there is a setting that didn't reset from before that sets on boot.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
I'm using one plus gestures app, which I also used on the completely stock setup that i was comparing performance against.

I didn't notice any stuttering of the UI or the viewfinder with stock settings.

But perhaps I need to retest with the gestures on and off and retry ( i absolutely hate the stock pixel pill gestures takes screen real estate and is unfriendly to use IMO)

Edit: I have the stock navbar disabled via build.prop as well...
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] rspkt:
Just switched from ElementalX 1.03 to Kirisakura via TWRP by flashing the zip over the old kernel. No issues whatsoever switching kernels and battery life seems to have improved a little bit as well. Thanks for the hard work on this and also the clear guide for installing/switching kernels. I'll definitely play around with this one for a bit. Thanks again.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] smartymcfly:
Have you tried GMD GESTURES? The lag is gone for me using it. It requires root access. There is lite version to test.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] EMJI79:
There's also this one:

https://play.google.com/store/apps/details?id=com.fb.fluid

Which works quite well.

And:

https://play.google.com/store/apps/details?id=com.conena.navigation.gesture.control

Which is the most customizable I have seen.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
pretty biased towards OP Gestures, as I came from OP6.

I'll look into GMD tho .

How certain THIS is the REASON the camera app viewfinder lags?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] 93ae8074:
Tested both, and both cause scroll lag. I settled on GMD GestureControl, too.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] smartymcfly:
Test and find out. If you disabled the apps from having accessibility access then they will not cause lag.

GMD and Xposed edge are way ahead of those in terms of customization. However Xposed edge can not yet be used on p3xl. There might be a few others that I did not.memtion that also do not cause lag like LMT, but every app that replaces the built in navigation and also that used that uses accessibility caused issues, not just in camera, but many apps.

OP gestures, fluid gesture, xda gestures, & gesture control navigation all caused me trouble.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] EMJI79:
LMT and Fluid Gestures don't cause me any lag or issue for ever since I am rooted.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] old_fart:
.

Yikes ! Now we have several people saying entirely different things !

.
[MENTION=3094576]emJ[/MENTION]179 -- what are you doing different ?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
IMO, we need a professional opinion on whether these gesture apps and hiding the navbar is causing user interface inconsistencies or lag in some apps.

Me testing it which i did with stock kernel + OP gestures the camera app specifically wasn't stuttering or lagging so beyond that not sure what else *I* can test.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Well since this discussion seems to be raging for “ages” now. Look around these two posts. The answer from [MENTION=4684315]flar2[/MENTION] is clear enough!

https://xdaforums.com/showthread.php?t=2411840&p=78384544

https://xdaforums.com/showthread.php?t=2411840&p=78388866
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] smartymcfly:
While I agree accessibility services is not the cause, the answer is incomplete. As it is only some apps that cause lag.

I have Tasker, active edge, autonotification, Join, and fooview and fooview enhanced features no enabled in accessibility services. The lag appears when I turn on the other apps mentioned earlier. Fooview uses gestures and it does not cause any lag.

Sorry for clogging up your thread talking about something that is unrelated to the kernel.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
lol flar said psychological lag akjlsdhfkjsadhflkasdjh hahahahhaha !

thanks for chiming in freak
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] 水攸月羽:
Maybe try swipe navigation, I've never feel any lag with it.

Regarding the lag caused by accessibility service, the "retrieve window content" permission is the real thing that caused it. I don't think it's psychological lag, the frame drop can be obviously observed under certain situation.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I don´t use any apps with accessibility service except for LMT which never caused me issues until now. I think [MENTION=4684315]flar2[/MENTION] is right, solely accessibility service is not the cause of the lag. However I don´t know what exactly these apps use to overlay the navigation bar. It very well may be that something gets jacked up when running the camera app. The camera app and driver on the pixel 3 is extremely(!) resource hungry! I suspect there are some mechanisms clearing RAM upon opening it too. Just because all the AI features like top-shot or simple snapping a pic (which is snapping multiple pictures at once and stacking them together) consume a lot of computing power.

Yesterday evening I walked through my house snapping 100+ pics. I never faced a "real" lag or anything. There is a lag when turning the device from portrait to landscape and vice versa. But all pictures were instant for me. It was when it was already dark so no good lightning too. Keep in mind that low light plus movement will always be a bit wonky with the HDR mechanism google uses. All the software and AI features are no real magic to replace good light on a picture.

I´m going to try looking at the camera driver source from CAF and see if there are improvements that may be beneficial to our device though!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Can those with camera issues please pm me in case they are interested in testing a kernel that may tackle the camera issues?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] ahh123:
Apparently on proton kernel it is possible to change the boot animation (system/product/media/bootanimation.zip). Would it be possible to implement this?

Thanks
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] MeetFace:
You have to remove certain security measures in order to accomplish this, and freak has already mentioned that the kernel won't come like this as default.

I believe if you want to disable secure boot manually, you can get this to work
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcmm11:
From earlier in the thread
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Exactly what [MENTION=4487388]jcmm11[/MENTION] said :)

If you search a bit I provided links so you can disable verity yourself.

Look at the following link or simply use magisk.

https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcmm11:
Another option (assuming you're rooted) is to install liveboot and turn on the dark background option. You'll still get the blinding white momentarily until liveboot kicks in, but the duration is shortened.

https://play.google.com/store/apps/details?id=eu.chainfire.liveboot
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I guess it might be time for a new release to close the gap to upstream stable which dropped not long ago.

I also merged a few CAF patches regarding the camera. So far it looks promising ( faster startup lag in viewfinder gone for those that actually faced it) but needs more testing.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] c_86:
Dude. Stop

Going into each and every thread and posting this is not proper etiquette
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
:eek: "each and every thread" Nope.

Dude, enjoy the New Year!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] kingmikel:
I wish we could down vote things like on Reddit -_-
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 1.9.0

Hey guys and girls,

Everyone a Happy New Year 2019! :) Flash again via TWRP or FKM (with stdout enabled in FKM) if you want to see a New Year "surprise" :)

As already announced this update includes latest linux-stable 4.9.148.

Depending on how testing goes there might be a few changes to various drivers soon.

I want to thank everyone for a great year 2018 and the support I got from this thread!

It means a lot to me and I hope we can continue 2019 like we finished 2018 :)

Important :)

All flashing errors are now fixed. The ramdisk error is fixed if you did the procedure I put in hide tags below.

Kernel is flashable via TWRP or directly in the EXKM App as well as the FKM App. The presence of a custom rom will be detected and the kernel will get patched so it boots the custom rom too!

Root will always be preserved! So happy flashing everyone :)

By now most people will have their ramdisk fixed. But keep this here just in case.

Procedure to fix the ramdisk issue:

The ramdisk error is now fixed. Please take a look at this post from [MENTION=4544860]osm0sis[/MENTION] for more information:

Big thanks to [MENTION=4544860]osm0sis[/MENTION] and [MENTION=4470081]topjohnwu[/MENTION] for everything at this point here! And everyone else that helped in the process!

Important:

What do you have to do to get finally rid of the ramdisk error?

1. Flash back a stock clean boot.img either for stock rom or the custom rom you´re on. (not a backup from some time ago, a clean stock boot.img)

Link to stock boot.img from Google´s december factory image for convenience

2. REDOWNLOAD(!) either magisk 18.0 or the latest canary directly from magisk manager and delete all old magisk zips on your device. (this is really important!)

3. Optional: Reinstall twrp.zip if you want to.

4. Flash the redownloaded magisk zip in TWRP

5. Flash my kernel either via TWRP, EXKM App or FKM App

6. Profit

Have fun flashing and enjoy your device with latest linux-stable :)

Why is linux-stable important?

I wish you all a nice day/evening!

Changelog:

- Upstream to 4.9.148

For further details please take a look at my github!

Download is below :)

Download:

https://www.androidfilehost.com/?fid=11410963190603887338

or following the link in the op to the correction version

Instructions can be found in the OP!

But look at this post!

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] gogoffm:
TX for the new built and happy New year. Is it just placebo from.my side or do apps opening much much faster then before? I am on latest bootleggers
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] DIXZ06:
Freak07, thanks for everything you did for us n 2018!

Hope you have a Great New Year.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] squid7331:
Happy new year and thanks Freak07 for this dope kernel ! (:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Komodoketavaran:
After flashing 1.9 my camera app doesn't go further then this:

Edit: i'm sorry, another restart fixed it [emoji850]
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] rspkt:
Updated to 1.9.0 via TWRP 3.2.3-3 flashing just the .zip over the previous 1.8.9 release. Reboot took an extra moment but everything working flawlessly still. This is my favorite kernel as of now. Battery life and performance is fantastic. Thank you and happy New Year, Freak07.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dukat0s:
New update is fire my friend [MENTION=3428502]Freak07[/MENTION]. Great work as always ;)

Insane battery life for me almost full brightness + AOD enabled all the time .
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] finesse:
Silly question, just to ensure I flash the correct kernel for the Pixel 3 XL device, as the title of the thread is bluecross?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
It's a play on words. Blueline + Crosshatch = Bluecross. It's for both phones. Just like Wahoo is for the P2XL :good::cool:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] finesse:
Thanks for the swift response, I appreciate it.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jiexi:
Anyone who has used both ElementalX and this kernel able to give a quick summary of differences?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Have you read the OP on both kernels?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jiexi:
Yes, and one is more detailed than the other. I used ElementalX on my OG Pixel XL, and it was a great reliable no frills kernel. I'm mostly curious about how battery life compares between these two kernels.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jdelano:
At the risk of giving an XDA cliche answer.

It really depends on your usage and your device. Each person utilizes their device differently from the next and even though we have the same make and model, each is not equal to the next. So the typical response of running each kernel for a period yourself will give you the best answer to your question. Cliche maybe but apropos none the less. :highfive:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] HamsterHam:
How can I check if I've enabled MAC Randomisation properly? Thanks.

I've turned it on I think via exkm but my address hasn't changed.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] rspkt:
I've used both on my Pixel 3 XL starting with ElementalX and I've found both performed very well and gave me no issues but as of now I'm using Kirisakura primarily along with Greenify and the Magisk Module Sysconfig Patcher. I'm not sure if my specific usage and results will help you but that's my two cents anyway.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jd1639:
[MENTION=3428502]Freak07[/MENTION]. I usually don't get too excited about kernels as other than some potential additional features they don't seem to do much better than stock. But I'm impressed with this one. I'm getting better battery life and performance is as good or better than stock. Well done and I bought you a cold one.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] lvbaal:
I wonder, could I install this kernel on Huawei P20 Pro with Google Pixel 3 Experience rom (firstever)?

I am looking for a kernel which could disable CPU hot plugging, being a prerequisite for the Helix engine.

I had very good experiences with the Helix Engine on my prior device Mate 10 Pro.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
No that’s not going to work at all. As far as I know the phone’s don’t even share the SOC or at least the manufactures.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] c_86:
No

Why would you think that a kernel for pixel 3 would work on a completely different device, with completely different hardware and specs?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] lvbaal:
Thanks for your reply. Would you know of any other custom kernel, that would satisfy my wish maybe?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] c_86:
Check the correct forums for your device. Or google
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] lvbaal:
Just my simple thinking: running the Pixel 3 rom also would support a Pixel 3 kernel. But now I understand this is not depending on rom, but on hardware. Thanks anyway for your reply.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] smartymcfly:
Ask the developer of the room if they can do that? Also have opened up exkernel app or fkkernel app and checked to see if there is way to adjust the setting you are speaking about?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] c_86:
Not to bad for today...
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] matssa:
Anyone got any high battery usage? Google is killing me :S using this kernel btw, latest version. Flashed December stock boot, then flashed TWRP, kernel and magisk canary.

Sorry couldn't share full battery since I had to reboot... But still here.

Google play services isn't doze optimised on my side, is it on your side?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dukat0s:
Hey fella [MENTION=3428502]Freak07[/MENTION] since 5.0-rc1 kernel.org is out and hopefully today we have January update , you got a lot of work to do ;p

Have fun my friend ?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
5.0 rc1 doesn´t affect us directly. A few Patches will make it into 4.9.149 and the following 4.9.xxx releases though :)

android wise 4.9 follows 4.14, follows 4.19... 4.20 ;)

But there are still a few more changes to come which are still under testing! :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dukat0s:
You are the master , I just want to give you the info :) greetings again and hopefully we see you again in Mike's telegram group ;)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dukat0s:
Latest build works great on January patch ?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
No source out yet from google ;)

So maybe I’ll have to start working on it tomorrow.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
you have to update manually. Download factory image, remove -w from flash-all scripts and update. Afterwards flash twrp, magisk (optionally) and custom kernel again :svetius:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
Just wait for the January source to be merged before going too far down the rabbit hole