yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] TraderJack:
Hey guys - little OT, but thought this might be place to ask... So I haven't used TWRP since my last phone because for a long time it did not seem to function on the 3XL.

Anyway, I had a boot loop today with a Magisk Module and in trying to recover I found info saying to use TWRP.

So I tried to use it using the method they lay out here:

Google Pixel 3 XL

Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...

twrp.me

And I didn't get very far. When I flash the boot.img to boot it just hangs at the TWRP logo (I let it sit there for a good 3-5 minutes), and I just need to hard reboot the phone.

I'm on Android 11, and from what I can see A11 has been supported since 3.5.1 - but then I also find some info about it not working on some phones with encryption.

Anyway - what is the deal? Can TWRP work? Do I need another method to install it?

Thanks.

N.B: One main reason I'm asking here is the requirement in the link above that says:

"You need to install a LZMA ramdisk kernel before installing TWRP"

I assume Kiri meets these requirements, but not sure if I need to do something else.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
you need to install magisk, root the phone then install the kernel using EX Kernel Manager or Any other Kernel Manager you prefer.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] TraderJack:
That wasn't the question. I know how to install the Kernel, I was asking if the Kernel was compatible for install TWRP into bootloader, or if TWRP is even usable yet on 11 as I've seen conflicting info on that.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I skimmed through the last pages of the TWRP thread and it seems to me A11 is not supported by twrp right now.

Did you try to boot into safe mode via button combination? Booting to safe mode will unmount all modules, you'll be able to delete them on the next reboot.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] TraderJack:
Yeah I was able to recover via adb shell working for about a minute before reboot, so I'm not in a problem state anymore. Having a BL like twrp comes in handy for all these situations so I thought I'd revisit it. Since you mentioned it in the OP and I couldn't find clear answers if it worked or not I was just curious. I guess I should take your info and the fact that I haven't been able to find a definitive answer as a sign that it just isn't functional on 11. No worries, I've got by without it the whole time I've had this phone.

Thanks
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
I had tried install twrp on myself and was not able to have it both with the os, you can boot from the twrp into recovery then that's it.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] wildcodefox:
any chance we could get nethunter support on this kernel ? or at least support for external wireless adapters? much appricated for all your work on this as its not a typically modded phone :D
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] vancedance:
thank you Freak07 for your awesome work!! love the kernel!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] oldbear3:
Sorry if this question has ever been asked but is it possible to flash this kernel via ADB, without having TWRP installed ?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
It's possible to flash it via fastboot, but requires effort from your side.

Post in thread '[Kernel][05.08.2021][4.9.278] Kirisakura_R 3.1.0 for Pixel 3/XL aka Bluecross' https://xdaforums.com/t/kernel-05-0...ixel-3-xl-aka-bluecross.3864563/post-83561949
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] oldbear3:
OK, and with EX Kernel Manager or other Kernel manager app (if so, which one can do it) ? Even if I don't have TWRP ?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes exkm or fkm works fine, just as per the instructions in the first post :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] oldbear3:
Thanks a lot. Unfortunately, I just realized it was not made for the Pixel 3a. I have this freezes issue with Magisk (https://github.com/topjohnwu/Magisk/issues/3171) and thought this was a solution :(.

Actually, I get a "unsupported device" error with fkm. I suppose it's because of this...

Too bad !
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] 1360567887:
please update for andriod 12 beta 4
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Golf c:
You should take care of that for us. Please?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
Off topic question, what is the next tool to root that now magisk is dead.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
It's not dead yet.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dcarvil:
Magisk is not dead. There has been a lot of recent activity. See the recent postings in the Magisk support thread.

https://xdaforums.com/t/magisk-general-support-discussion.3432382/page-2369

AFAIK, there is no rooting alternative to Magisk.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
you know that John Wu is working for google now right, he's not going to update the magisk hide feature. One of the reason I am asking is because I am going to buy the new Pixel 6 and wondering if we had a replacement for root tools. Thanks.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
State of Magisk: 2021

Ever since my employment at Google, crazy speculations has been spreading like wild fire all over the Internet. The out-of-context private…

topjohnwu.medium.com

why should magisk be dead?

Magisk is way more than magisk hide or the module repo. Both of which will get replacements most likely, in whatever form we will see. :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dcarvil:
Yes, I know. The future of magisk hide was discussed in the past couple of days in the thread I linked.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Notorious:
hello i searched through the thread and couldnt find what cpu govenors does this kernel offer? im still on android 10 custom rom and thought about updating to use this kernel. Thanks
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] yoshinight:
Hello. Regarding zram settings, do I have to reconfigure zram every time reboot? I'm running this kernel in PD rom and using EXKM.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
flashing Sept updates now, will report back about flashing 3.1.0
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
Any problems with last kernel on September update?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] agraceful:
There's no kernel updates for September from Google so.. It's fine
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
Everything is fine, no problems so far. It's been two days now.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] yoshinight:
Every time I reboot, the zram option reverts to lz4 2048MB. Is it possible to fix it to zstd 4096MB using a script etc.?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Xeust:
Build 3.1.0 works fine with beta 5

Edit 2: I was asking why it won't flash on beta 5 out of the box. I managed to get it to flash so I don't need any explanation anymore. Thank you.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] krs360:
How did you get it to flash?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Open anykernel.sh inside the zip.

Delete "11" after the "=" in the line that starts with "supported_versions"
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Choppa_14:
Hi guys, is it stable on Android 12 beta 5?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] ssdd28561:
Wireguard for android just got updated, and now (since version 1.0.20210924) it works with this kernel via kernel module (it was broken for android 12 beta 4-5). So at the end it was wireguard's problem
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
No update needed for latest Stock ROM update?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] CosmicDan:
Should work fine, the latest version is built with August update and works fine in September update.

EDIT: Well... the new update has a new kernel, actually. So I don't know. Testing now.

Freak07, your last kernel built against August tree is android-11.0.0_r40 (RQ3A.210805.001.A1) but the new RQ3A.211001.001 October update is built against r46.

But.... checking https://android.googlesource.com/kernel/msm/+refs - the latest tag for crosshatch is still qpr3 from August. So maybe only some modules were updated, checking that now (takes a while to download sources with history).
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I don´t see any new tags pushed for october yet:

kernel/msm.git - Git at Google
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] CosmicDan:
Indeed, just did a diff between r40 and r46 on crosshatch-kernel and there are no changes.

So will the msm repo get a new tag even if modules are updated? (If that situation ever happens)?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] acidspider:
Are we good to flash on October image?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] CosmicDan:
So I have a request...

...I notice you have this change: https://github.com/freak07/Kirisaku...17299ece0a2c40c2e256bbcb39741d5e2ce9dc0c7832f

This breaks DSU support, sadly - it still looks for /dev/fs/f2fs/dm-X/features (where X represents userdata mapping) when trying to make a userdata image.

Is this something that can be fixed on your end? It seems a bit weird to "block Android" from seeing it... but I guess this is a necessary hack to avoid ROM's needing modification, right? Is there something you can do to just create a "features" node at /f2fs/ maybe...? I can't symlink or anything in /sys/ heh....

Or am I better off modifying a ROM to do an extra check? I can't find where though, looks like I needs to trace back to init first stage mount.... it may need API changes due to separation of concerns between DSU loading and the dm.

...anyway I only ask because I am a huge fan of your kernel, 1000% better than stock. Amazed at how bad stock kernel is tbh lol. I will regrettably have to switch back to stock (or try another kernel without this change) while I'm working on my DSU front-end. Perhaps this RapidGC tweak is one of the things that makes your kernel run so much slicker than stock though....

I don't know what to do, I'm not too experienced with the internals!

Let me know if there's any idea at all you have to help, would appreciate it!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] deusfaux:
is this custom kernel still needed to fix the "f2fs-stable bug" from using the systemless hosts module in magisk? or was it was fixed in Android 12 / by now
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] paulyt989:
how can i achieve this? i can open the sh file and edit it, but it doesn't stick when i save it afterwards. is there a specific program to allow me to achieve this?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
@Freak07 any chance you will work on the Android 12 version?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 4.0.0_S

Hey guys and girls,

I hope everybody had a good week so far. Android 12 stable dropped and here´s the kernel update for stable A12! :)

Other changes please check the changelog and/or github.

I wish everybody a great day.

Enjoy the device and the kernel, because I certainly do

Just in case:

If you face issues or bugs when running the kernel, please return to a stock environment, only your rom plus magisk root, without any modules, scripts, tweaks or mods and see if you can reproduce the issue.

Tell me the exact steps needed to reproduce.

Then send me a dmesg and a logcat (if the kernel crashes not) or a ramoops (in case the device reboots). Take a look at the second post for a guide on how to obtain these.

My kernel.zip flashes both boot.img and dtbo.img. So if you want to return to stock, you need to extract both from factory image and flash them via fastboot if on stock rom.

If you’re on a custom rom you will need to dirty flash your custom rom or learn how to extract both images from a payload.bin

Special thanks to @jcmm11 and @melgar for testing and keeping up with me!

Changelog:

- Stable Android 12 Source drop merged

- bump clang to 13.0.1

- updated ak3.zip

Important :)

All flashing errors are now fixed. If you experience the ramdisk error please take a look at the FAQ.

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

Why is linux-stable important?

Download is below :)

Download:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

How to flash the Kernel:

1. Make sure you are rooted, are using the latest magisk suited for your OS version and a kernel manager capable of flashing a zip is installed. If available you can use TWRP as well. Download the kernel.zip to your device.

2. Flash kernel.zip via your favorite method. Kernel Managers and Recoveries need to be updated to work with a specific Android Version. It's your job to ensure compatibility! :) Root will be preserved! (Make sure to be on the latest firmware the kernel is made for)

3. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!

Instructions can be found in the OP too!

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep the development going: http://paypal.me/freak07
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] deusfaux:
Thanks freak. Did the f2fs bug ever get fixed or is a kernel like yours still necessary to address it?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I'm pretty sure it's still happening on stock.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
A bit off topic: is updating from a11 to a12 possible by dirty flashing like monthly updates on a11 or is there any difference?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
:( Wrong thread!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
To be honest... seems to be to early. I don't have time for complete fresh install. Thanks a lot!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] deusfaux:
This applies to the Pixel 3/XL as well? Returning to stock then OTA update to Android 12 will result in problems attempting to re-root?

I didn't see anything mentioning this in your guide https://xdaforums.com/t/guide-root-pixel-3-xl-android-12-s.4160447/ unless you count the general advice to do a clean wipe between major versions (but it's never been necessary in my experience)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
:oops: I posted on the wrong thread!
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
No.

I posted on the wrong thread! :(
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] deusfaux:
can you clarify further? clean wipe is NOT necessary for Android 12 rooting on Pixel 3/XL?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
@deusfaux

I recommend wiping your phone between major upgrades (Android 11 (Q) to Android 12 (S)), but I cannot say it is necessary.

[Guide] Root Pixel 3 XL Android 12 (S)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] acidspider:
Had no problems here, dirty flashed from 11 to 12 and rooted no problem
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] deusfaux:
Why is it called dirty flashing? Anything short of a clean fresh wipe install? Cuz my process is to undo the few mods back to stock, take the OTA update, then re-do the mods
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] cosy6ay:
after formatting my pixel 3 i am unable to flash kernel via exkm - been using this for years.

it showing as 'can't create /tmp/anykernel' - read only files sytem.

device is rooted ( try flashing through fmk manager i can flash

without any issue...)...but through ex manager is suddenly broken..weird)

any advice.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] lokogan:
I had the same issue when rooted with Magisk Alpha. Switched to Magisk Custom and EKM played nicely. Did you root with Alpha? Also which version of FMK did you use?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
Does the kernel work on LineageOS? Goggles stock ROM for Pixel 3 won't be updated regularly any more as far as I know.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] paulyt989:
I believe what you described is a "Dirty Flash". Not trying to be a wise guy or anything.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
Does the kernel work on LineageOS?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] dcarvil:
See this post. https://xdaforums.com/t/kernel-21-1...ixel-3-xl-aka-bluecross.3864563/post-84856551
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
I read that. But answer from developer would be great. Once a kernel is flashed and system doesn't work there's a big problem without existing flashable custom recoveries.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] justDave:
I'm not sure what you mean by this. Can't you just use fastboot to flash back to the lineage boot/recovery?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
exactly that. :)

If it doesn´t work just flash back boot.img and dtbo.img from lineage zip via fastboot. It might be packed into a payload but you can unpack it with tools that can be found on XDA.

On another note, I´ll update the kernel as soon as I find to work on the Pixel 3 for December security patch. :)
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] klemi71:
I'm still on stock.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] HJCK:
SDcardfs on Android 12 work?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Dantzy:
When will the new update come?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Slim2none4u:
When it comes. No sooner.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] deusfaux:
I can confirm the f2fs bug is still there on A12 stock for crosshatch. Thanks again for your kernel
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I wish those who celebrate it Merry Christmas!🎄⛄✨

I hope everybody has a nice time and is enjoying the holidays with their beloved ones.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] contevo:
hello, I'm wondering I have flashed this kernel to pixel 3 xl with FKM on Android 12 October build. to get the benefits of this kernel do have to enable the features manually or once flash the kernel comes enable automatically?? example under cpu little cluster and big cluster none of toggle switches not on do I set them manually??
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
Freak07,

I've used your, well developed, kernels on several of Google's phones with the stock factory image and recommended them to other members. I love your kernels because because, I thought, they we're developed specifically for Google's firmware. Now, I'm curious about their functionality when used with Custom ROMs since Google has stopped supporting this phone with updates. Can I use your kernel on lineageOS ROMS?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] sliding_billy:
I have not only been able to, but had to use this kernel with custom roms because EX kernel makes the wi-fi non-functional. I have recommended the same many times.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] sliding_billy:
P.S. One more update to come at some point in Q1.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
There´s nothing you have to set after flashing the kernel regarding CPU.

You can choose to enable kcal, wake gestures etc via a kernel manager though.

as far as I´m aware it should just work fine on custom roms.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 4.1.0_S

Hey guys and girls,

I hope everybody started in a Happy New Year 2022. Here´s finally the next update.

Google code was merged up to January 2022. Pixel 3a still gets updates, so I merged this.

Linux-Stable was merged up to 4.9.297. This should include a lot of security related updates, that will trickle in the kernel security updates over the next months.

Other changes please check the changelog and/or github.

I wish everybody a great day.

Enjoy the device and the kernel, because I certainly do.

Special thanks to @jcmm11 and @melgar for testing and keeping up with me!

Changelog:

- Google Code merged to January

- Linux-Stable to 4.9.297

- updated ak3.zip

Important :)

All flashing errors are now fixed. If you experience the ramdisk error please take a look at the FAQ.

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

Why is linux-stable important?

Download is below :)

Download:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

How to flash the Kernel:

1. Make sure you are rooted, are using the latest magisk suited for your OS version and a kernel manager capable of flashing a zip is installed. If available you can use TWRP as well. Download the kernel.zip to your device.

2. Flash kernel.zip via your favorite method. Kernel Managers and Recoveries need to be updated to work with a specific Android Version. It's your job to ensure compatibility! :) Root will be preserved! (Make sure to be on the latest firmware the kernel is made for)

3. Reboot and profit! Before reporting any issues make sure to read the first three posts of this thread!

Instructions can be found in the OP too!

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep the development going: http://paypal.me/freak07
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] contevo:
I have a question. I have been using your kernel for 2 days on stock firmware android 12 been dealing with some battery drain during screen off, i turn off auto sync, wifi,.gps and left on the data iand no battery saver. I left at 98 percent charged i woked up to 90 percent phone was not touch for 9hours. Here battery status with betterbatterystatus screenshot.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
What's the question?

I suppose it's about losing 8% over 9 hours.

Your phone slept absolutely fine, there's no kernel wakelock that kept the phone awake. According to BBS your phone slept extremely well.

I'd try using wifi rather than mobile connection if possible overnight as it will consume less power.

Other than that it could be the device's age, an installed app, background work being done.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] contevo:
Oops forgot add that question lol but u answered it i noticed using data is a battery hug for sure. Thank you for ur reply.
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Dantzy:
Sir add some commit for tweak please
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] rusquad:
good afternoon, does this mean that the device is losing performance? I can't disable Power saving workingqueues
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Over36Clock:
hello, thanks for your work)

the question is, is it possible to update the adreno drivers to version 604 or 611? Or are they not suitable for us?
[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
no performance loss.

power saving workingqueues is a compile time option. some kernels allow it to be changed during runtime, but it´s by design not "toggleable" as it´s a RO property.