yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcrompton:
I did exactly that and that's what didn't work for me period after I flashed the stock boot image that I had extracted from the update that I had that's when I ended up with the device that stated that it was corrupted and it would no longer boot to anyting
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
If you simply flash the stock boot.img extracted from the correct factory image (matching the month) and you only tinkered with the kernel your device should definitely boot just fine.

If it isn’t, it’s highly possible that something else is not working correctly.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
Gonna try out 1.8.3 again

Going to flash and not change a single thing.

Better battery stats are ready to go as well.

Will report back after i charge it to 100% and leave it with screen off flat on my desk.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Make sure to also check partial wakelocks, kernel wakelocks, and alarms in better battery stats after the phone slept for a while :svetius:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] HellraiserNZ:
Ok so I have TWRP flashed on my device and this kernel version 1.8.2.

How would one -

Flash the December image without losing data/settings

Flash / keep recovery

Flash kernel

& Keep root?

Can I do all that via TWRP in one go?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] MeetFace:
I just did this. (if you want to save an hour, don't use your USB-C to USB-C cable from Google X^D )

Flashed factory image with fastboot from my PC removed the -w, and then flashed TWRP, Magisk Uninstaller, MAGISK, and Kernel from TWRP.

https://xdaforums.com/pixel-3-xl/how-to/guide-pixel-xl-android-9-0-pie-unlock-t3857195 Steps 4 & 7 at the link.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcrompton:
Thank you

I realize slightly off topic but aren't necessary if we can't always flash updates in TWRP

The stock boot image ..... I understand that if I flash it via fastboot and the PC I have to give commands to flash to both slots

Can it be flashed via TWRP? I understand how to flash an img file but when I did it it have me corrupt device. If you flash via TWRP to boot does it flash both slots or just one?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
Seems fine now...

Will report back at 15%
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes I’d also do as [MENTION=3418824]MeetFace[/MENTION] did it. Removing the -w from flash-all.bat/flash-all.sh will keep your data intact. :svetius:

Then flash twrp, root and flash kernel.

Doing it all in one go without a PC is not possible on A/B devices.

No you actually don’t have to flash it both slots. You only need to flash stock boot.img to your active slot when you want to return to stock boot.img.

fastboot flash boot boot.img

I flashed stock boot.img a few times via twrp and it worked fine. Twrp flashes it to the active slot.

Be advised that in case you flash a rom/ or factory image the slots will change!

As already said if flashing stock boot.img via twrp isn’t working there is something else going on that shouldn’t be happening.

Great! :highfive:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] MeetFace:
Just an update, screen off drain was on the money while I slept last night. Went to bed with 56% and woke up 6 hours later with 51%.

One thing I have done is to disable LTE while on WiFi via Tasker. I think that is making a material difference.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcrompton:
Kinda some weird stuff for me in that when I would try to flash a stock boot img, even via fastboot I would get stuck at boot or get the error that my device was corrupt

Even when I tried to do the flash all bat for the Dec update using the Dec factory image I got the same error

And could only escape from the error doing a flash all of the original Nov OTA image and the flash all bat for that

BUT as I posted over in the main guide thread of I first did the set active slot a command and then flashed the Dec factory image all worked well (seems like the flash all bat does only flash to one slot or the other)

That was part of my problem and I think part of the issue here because I've been able to flash kernels in TWRP since seeing slot a active
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
If you flash a ROM in TWRP it changes slots while flashing it.

If you flash Nov factory image via flash-all over Nov Factory image it will stay on the same slot. (if I remember correctly)

I´d recommend to never change my active slots unless one really wants to tinker with the phone. It goes wrong quickly and you end up with a phone that isn´t booting because you screwed with A/B.

Don´t know exactly where things went wrong for you but glad you got it solved!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
New update with upstream to latest 4.9.143 will drop later today :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
on another note. Battery life I got yesterday was absolute amazing!

Had to drive quite a lot, so navigation on mobile network for over 5 hours! Listening to music via Bluetooth for nearly 4 hours, doing some calls on bluetooth for about 40 minutes, a few short calls via google pixel C buds with screen off. Some hangouts, xda labs, youtube videos after work in the evenings!

See the screenshots:

https://photos.app.goo.gl/maBd5TM9UaD4FgMK6

Super happy with this device currently!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
Nice.

Are you still using the fiops scheduler?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Cacceli:
How do you install new monthly updates from Google? Is it possible to update without changing slot?

Suberb battery life here also on non-XL pixel 3. 1.8.3 kernel with december update. Got yesterday 7h SOT. Earlier I got only like 3-4h SOT and couldn't survive the whole day.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] spuri78:
Apart from the scheduler, any other kernel changes? Thanks.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
It’s possible but not recommended or necessary. A/B is designed to change slots on each OTA update!

You just download the factory image then extract it. remove -w from flash-all.sh and flash-all.bat

Run flash-all.sh or flash-all.bat depending on your OS.

It will just update your phone and keeps userdata intact. :svetius:

Remember to reinstall twrp, custom kernel and magisk afterwards :svetius:

All in all it takes me 5 minutes usually every month.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
No I just flash the kernel and use it as is. I already set everything the way I think it’s best at compile time :)

The only setting I changed are the wake gestures and fiops (cfq is probably equally good) :svetius:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] ram4ufriends:
Flash-all.bat doesn't change active slots... Only OTA or flashing rom in twrp changes the active slots...
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcrompton:
This may be where the problem occurred for me and I had read what you said here

I just know that I and others couldn't flash updates to the kernel for whatever reason and even when I and others couldn't flash a new factory image I just know that when I set me slot a to active and then flashed (with -w) the Dec factory image I then could boot, whereas all previous attempts left me unable to boot

But I will sure be careful about changing slots in general
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
Can you make it the default so I don't have to download a kernel app lol
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I stand corrected :) thanks for the heads up!

you´re right I got that confused.

You can use a script to change the IO-Scheduler! It´s quite easy if you´re already rooted with magisk. :good:

I want cfq to be the default for every user :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] MeetFace:
Should we be enabling adaptive low memory killer in EXKM for best performance?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] kdrag0n:
Sorry for not noticing this earlier. I fixed the root preservation issue a while ago in my kernel. It actually turns out that something with EXKM, FKM, and actually everything in Android (even just running the script from the shell) corrupts the ramdisk when flashing it because the cpio command is from toybox and/or busybox. There's something in the ramdisk that they don't tolerate. This causes TWRP and Magisk to break because they both reside in the ramdisk.

The fix (more of a workaround) is to bundle a GNU cpio executable (sourced from Termux) built for Android and use that if Android is detected. In TWRP it should continue to use TWRP's toybox cpio. Now flashing in both Android and TWRP works fine.

Commit: https://github.com/kdrag0n/proton_bluecross/commit/8c68fd7e6d53

For the IS_ANDROID check: https://github.com/kdrag0n/proton_bluecross/commit/c894b0a3a2a7

Only the changes to the kernel flasher matter.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] swieder711:
Im not seeing the new release here

https://www.androidfilehost.com/?w=files&flid=285183

I only see 1.8.3

Will you update the title for this thread when the new release is available?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcmm11:
I imagine he'll update both the title and the OP.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
When a new release is available I’ll always post a release post and update the OP plus thread title accordingly :svetius:

I’ll probably post the update right after work today
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
No adaptive low memory killer will remove apps from RAM in case you need more free RAM.

I choose to let the oom_reaper take care of this. So it´s recommended to leave only one enabled at the same time and keep the other disabled :)

But you´re free to experiment!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 1.8.4

Hey guys and girls,

New update is out! Latest Upstream 4.9.143 merged in!

Root preservation issue is fixed.

In case you get the ramdisk error, you all know what to do :) This zip has it definitely not fixed as I did no changes regarding it!

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.143

For further details please take a look at my github!

Download is below :)

Download:

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

or following the link in the op to the correction version

Instructions can be found in the OP!

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] airmaxx23:
I flashed 1.8.4 and was able to keep root, thanks for the update.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] arrrgh:
No problems with update here either.

I also updated installed TWRP while I was at it (flashed new TWRP, magisk and the new kernel in one go).
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] old_fart:
.

Same for me, although I had a stumble and struggle with the realization that custom recovery was broke for December. Greatly appreciate the fast fix to recovery to : 3.2.3-2 to put me back into smooth sailing . . .

.

Thank you [MENTION=3428502]Freak07[/MENTION] for your conscientiousness and hard work !
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] masri1987:
installed 1.8.4 fine on TWRP

I have a non-kernel related question, didn't really know where to post this, but it probably has to do with the confusion behind the slots etc.

I updated to Dec using flash-all and removing -w

Everything was fine and dandy until I lost magisk somehow, no problem right? reflash magisk in twrp and kernel and we good.

Magisk is back, but everything is lagging and stuttering, from camera to facebook to whatsapp it's all very strange.

What do you guys recommend I do?

Sorry for hijacking thread.

Edit: Imma just do the flash all and wipe everything and start clean.

Dirty flashing is a mortal sin and i don't know why I even bothered lol

---------- Post added at 09:17 PM ---------- Previous post was at 08:44 PM ----------

wait what? TWRP was broken? where is the new one? TWRP site?

NVM found it ,., thanks
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] swieder711:
Where is the new TWRP 3.2.3-2? I only see 3.2.3-1 in the thread on TWRP for the 3 XL.

Found it here: https://dl.twrp.me/crosshatch/

SUCCESS

Updated TWRP, Updated Magisk and Updated Kernel. All Good.

Time to make a NANDROID backup.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] spuri78:
Absolutely loving your kernel dude. First few charges, got great drain percentages. However, in the last charge, my idle drain has gone up and I'm getting these power wakelocks. Screenshots attached. You getting these too?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
The display wakelock is caused by your display.

The other wakelock is the combination of all the partial wakelocks if I remember correctly. Been a while since I cared enough about wakelocks to use BBS
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] spuri78:
Thanks for that. So, is there anything that can be done? Doesn’t explain why i’d get well under 1% idle drain in the first few charges and then the spike to close to 3%. The thing to note is that last night I put the phone on charge on the wireless stand overnight so could charging like that created this spike?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
It´s exactly like [MENTION=7037416]joetheshmo[/MENTION] said. Power Manager service wakelock consists mostly of all acquired partial wakelocks combined.

The interesting tab from better battery stats are the partial wakelocks and the alarms in a case where the device was held awake.

Usually kernel wakelocks don´t cause any battery drain. The device requests a wakelock from the kernel in order to get a job done. For example display needs to be on, you see the display "wakelock". Device needs wifi, you see a wakelock for wifi to get messages through while the screen is off, you want to play music via bluetooth or usb c earbuds while screen is off, you´ll see a kernel wakelock for this. This is totally fine and needed for the device to work as expected.

However sometimes an app keeps the device awake for no reason. You´ll see this in the partial wakelocks section mostly. let your device sleep for a while without charging or taking it up and check the partial wakelocks :good: If there´s something keeping the device awake you will find it there.

You can set a custom reference point in bbs in the top right corner and change from unplugged to custom to prevent any confusion! :good:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] spuri78:
Thank you so much for that detailed explanation and offering some suggestions on battery improvement. As suggested, I'll charge overnight and will monitor my phone tomorrow for any partial wakelocks/alarms.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] DougMG:
Has anyone else tried installing Viper4Android FX with this kernel. Every time I install it a couple of minutes later the phone will freeze up and then reboot and just keeps repeating that over and over. I have not had this issue running the stock kernel or Proton kernel.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Cacceli:
Got ramdisk error for the first time, booted to TWRP updated first canary Magisk to v18 and then tried to flash 1.8.4 kernel but got error. Then tried to install it on EXKM but got same error.

So the only thing that I can do is flash boot.img and after that first kernel and then Magisk?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] osm0sis:
Just a status update on this: [MENTION=3292224]franciscofranco[/MENTION] and I pushed an update to FKM which I believe will fix this going forward. People should start from a clean boot.img, do TWRP zip (optional), Magisk zip then AK2 zip, and all should be stackable and work everywhere. :good:

I've been in touch with [MENTION=4684315]flar2[/MENTION] as well, and he states he'll be implementing a similar fix in an upcoming release. :highfive:

Once a boot.img ramdisk is broken like that it'll be broken everywhere, even in recovery, even though it only becomes broken from a booted flash via FKM/EXKM under certain circumstances.

See above for the correct flashing order, and I'd recommend everyone start with a clean boot.img and flash using recovery or FKM only until flar can push a fix to EXKM as well.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] airmaxx23:
I installed V4A then this kernel over it and everything is working fine.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] ridobe:
Thanks! FYI, EXKM was just updated but the changelog doesn't list anything specific while fkm does.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Cacceli:
Ok, but this happened to me when installing in TWRP, I have nerver used any apps to install kernel, just now tried it after the error.

I understood that this can happen only when using FKM/EXKM. Is this correct?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] franciscofranco:
Traitor.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] MeetFace:
Yes, uninstall all audio mods, then install this:

https://xdaforums.com/showthread.php?p=78341376

Working for me
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] jcmm11:
Lol

Franco, any chance you can add an option to fkm to flash the kernel to the inactive slot?

Normally wouldn't be used but I'm thinking of topjohn's ota instructions which involve flashing Magisk to the inactive slot after applying the ota. If we could follow that with a custom kernel flash it would save a reboot.

(Yes I ended up getting a Pixel 3XL. The Black Friday deal was enough to to tip the scales)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] airmaxx23:
Install this version thorough Magisk.

https://drive.google.com/file/d/1VmAgU_aucNXs31uJpkCEYTldjrPHMDMZ/view?usp=drivesdk
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] DarkPhoenix:
Flashed through EXKM on stock November build without issue. Retained root. Thank you for making this.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] osm0sis:
I haven't nailed down all specific steps/ways to recreate yet, unfortunately, but my guess would be in your case that you had dirty flashed over an older version of the kernel before it added some fixes to anykernel.sh for root retention?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Semtronix:
Magisk patched boot.img and kernel flashed through app ?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
new upstream coming soon (tomorrow morning) to a pixel 3/xl near you :highfive:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] HellraiserNZ:
Idk why tried to flash the latest one 143 and it went straight to recovery after boot.

Tried flashing through EXKM and TWRP but won't boot.

Flashed elemental and it's fine.

I'm on Magisk 18 if it makes a difference.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
works just fine here. Maybe start with a stock boot.img, optionally flash twrp, redo the magisk root process and flash my kernel.zip.

Should work fine :svetius:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Bryanx86:
Your kernel is a must have for this device. Definite improvement over stock. I'm getting a screen on drain of about 10% per hour.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] spuri78:
Yep, same here. Absolutely love it.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Thank you both for the kind words!

Great to hear it´s working as well for you as it´s for me!

Enjoy the ride! Glad to have you on board :)

Update imminent :cowboy:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 1.8.5

Hey guys and girls,

As announced yesterday the new update is out! Latest Upstream 4.9.144 merged in!

Root preservation issue is fixed. I will edit the OP now again to reflect this!

The ramdisk error should be fixed when flashing via the FKM app for sure. thanks to [MENTION=4544860]osm0sis[/MENTION] for figuring out the issue and [MENTION=3292224]franciscofranco[/MENTION] for maintaining his app and the quick bugfix release!

Please make sure to update from the playstore if you haven´t already.

EXKM App will also fix it in the near future as far as I´m informed! Keep an eye out for an update on the playstore!+

Remember if you flashed via an app and the error did creep in it may still happen. To make sure it doesn´t, start with a clean boot.img either of stock ROM or the custom ROM you´re currently on! Redo twrp installation (optional), magisk root process and flash my kernel.zip.

In case you get the ramdisk error, you all know what to do :)

Important:

The kernel works with custom roms :) I´ll also edit the OP accordingly!

So flash away :)

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.144

For further details please take a look at my github!

Download is below :)

Download:

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

or following the link in the op to the correction version

Instructions can be found in the OP!

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] spuri78:
Happy to be on board. What I'm most excited (and appreciative) about is that if I do run into any trouble, your willingness to explain and troubleshoot will see me through and keep me on board.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] airmaxx23:
Thanks for the update, I flashed 1.8.5 this morning without any issues.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
IMPORTANT:

Just when one bug was squashed I was able to reproduce another flashing error with FKM app. It effectively results in a non flashed kernel when trying to flash my kernel.zip via FKM.

So if you flashed via FKM make sure in about the kernel actually got flashed and it states the correct version.

I’m already in touch with [MENTION=4544860]osm0sis[/MENTION] and [MENTION=3292224]franciscofranco[/MENTION]. A fix will hopefully be worked out soon. Until then please use TWRP to flash the kernel!

Sorry about it. Have a nice weekend everyone!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] swieder711:
Since I am using Franco I decided to install the new kernel via TWRP. Im using the -2 version of twrp

Checked the MD5.

Got the attached error message.

Is there a log that I can send you?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] El-Lobo68:
Great Support

Great instructions

Great Work

So i have to say thank you very much

Ganz großes Kino....

Very big great Cinema
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] ridobe:
I got the same error. Started over with stock boot.img and now I'm up to date.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Semtronix:
Ran into that this morning. EXKM flashed it fine, but I'll probably have to do a fresh boot.img next release. If FKM reboots after a couple seconds, it probably failed.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] swieder711:
Tried flashing with EXK and got a ram disk error.

See attached screen grab.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
I never seem to have any problems flashing this kernel. I don't understand why others are having issues.