yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] marcmv:
Totally understand why you need a break from Android. You've done a ton for the community and will be missed. I wish you all the best with your new job and whatever other adventures come your way.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] drewski_1:
Indefinitely from now?!? ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
It'd better be a good update if I have to wait that long...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] def-g:
All the best in your new endeavors Nathan. Your Kernels and expert help have been GREATLY APPRECIATED. Blessings.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] spencer92a:
Thank you for your fantastic work. i wish you all the best for your future.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Piccles:
Thanks for all your hard work Nathan!

It's been an epic journey.

See you all in the telegram group [emoji5]
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
It's been like 5 hours since that final update, but I have to ask... Can we get an ETA for the next one please? ?

Thanks for all you have done brother, watched you go from noob status to an RC and beyond (not in a stalker kind of way, well.. Maybe a little bit). Your kernel and contribution will be missed but definitely not forgotten! Take care Nathan and see you around.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Likkleskip:
Thank you brother ✊✊
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!

Best of luck in wherever your path leads, you deserve the very best!

Thanks for sharing your talent and passion for clean, crisp development.

Can't wait until you're able to return to the development kitchen :D

Andy
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Seanzle:
You've been amazing my dude. Thank you for all the time and effort you've spent on us
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Thank you Nathan! Good luck in your studies and career.

Alan
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Thx for all you did for the community. you are the best. i am really sad now that my Pixel is unsupported now
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] srqrob:
This place won't be the same. Good luck and thank you for years of help.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] equlizer:
Are you allowing anyone to take over your work? It would be a shame for it to disappear :(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Sultan Kernel is lit ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JaylanPHNX:
I've followed your kernel over multiple devices and I thank you for improving my experience on all of them. Good luck in your future endeavors.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] stalls:
Thank you so much for your efforts! Been using your kernels on many devices. Congrats and keep working hard.

Also will the 3.19 kernel work with my current setup? I am only asking because I wasn't sure if it would with the vendor and possibly other things. I don't want to update to pie because I'm waiting for the new dirty unicorns on 9.0. I didn't know if I could do anymore security updates due to them being for pie. Any advice would be greatly appreciated. See image for setup.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
[MENTION=6842057]nathanchance[/MENTION] while im sad you are moving on to bigger things, im happy for you. Best wishes to your future, I'm sure you'll have a successful engineering career ahead of you.

Has anyone had problems flashing 3.19? Currently on 3.18 and when I try and flash in twrp or exkm I get "unpacking ramdisk failed, aborting". I am using canary Magisk with just a few modules. On stock November rom.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Jiggs82:
Should be on November rom to flash 3.19 is probably why you have that issue
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Er meant November.. that was a typo.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
Maybe try downloading it again, no issues here
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JazonX:
Thanks a ton for the wonderful Kernels. All the best in your future Endevours Nathan.

Cheers!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Kisakuku:
Same issue on the same setup.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] neekless:
Flash stock boot image, then flash kernel first before flashing canary magisk. It should work. Or go back to non-canary magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Kisakuku:
Logs (dmesg.txt just renamed to zip).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] munchy_cool:
Thanks for all your work Nathan and all the best.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] SnafuGG:
Thank you [MENTION=6842057]nathanchance[/MENTION] for working hard on the best kernel i have used in a long time. Good luck with your new job, you will be missed.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pvtjoker42:
So sad to hear about the end of this kernel, been using your kernels since my 6p (and all your guides for compiling roms etc) Best of luck in the new carreer opportunity!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sirxdroid:
Had to check my calendar. It's not April 1st, is it?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] drewski_1:
Sadly no . . . ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
@ nathanchance

Thank you Nathan for all of your work. But what I really want to thank you for is this thread. It has been a wonderful ride. People going way off topic and coming back again. Everyone helping everyone. No in-fighting or nastiness. Lots of jokes. This is an amazing legacy you leave. Good luck with your career and new job. And thank you.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheGeekyNimrod:
Sir, it has been a pleasure to run with you since the 6p and forward. All the props to you and all the good vibes and such for you. Rock on
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
And make sure we all go bother the master once in a while on his telegram channel. You da man brother Nathan! :good::cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Noo, I feared this moment. The next Sec Patch is due to release soon. Then theres no going back :(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Unless there are major changes, you'll likely be able to run this kernel for a while longer.

There are great alternatives like Sultan, and EX as well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sirxdroid:
Sultan vs EX ... where's the fine Flash crowd headed?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Ex for this old guy. Although, I've been running Ex kernel for years :good::good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rickysidhu_:
Actually went to Kirisakura and was having no issues for a while until randoom reboots started. I've moved to EX since. I'd be happy to try out Sultan but I need swipe to wake and I've read it doesn't have that.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Not sure the metric on this, but if I HAD to guess, I'd say more are probably heading to Sultan. Maybe because it's a newer, fresh-blood kernel... maybe?

I tried Sultan first, and there was a slight issue (that has since been resolved) that I can't even recall at the moment, so I went with EX, and haven't gotten around to running Sultan yet, but I MOST certainly WILL give it a try when the Dec patch drops :D

Running EX with the xFirefly93 script is doing wonders with my battery life! Seriously about a 30% increase in batt life for the way I use my device.

If I'm not mistaken, xFirefly93 has a very similar script for Sultan kernel that is arguably even better. But I have not tried it yet.

Not sure whether or not one is better than the other, but I have no doubt that both will bring joy to the user !

Maybe the older members feel good going with the tried and true EX kernel, while the younger, edgier members like the newness, and razor's edge of Sultan? Maybe I'm just blowing smoke out my tailpipe :p

As with most things related to customizing your device, the BEST way to see which one you like, or which one works best for you; is to try them both :D

Az out!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DaveMar:
Heads up, Dec factory images released!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Yeah I know, but I like to have Kernel and Image aligned. Since the Kernel is EOL the switch will come sooner or later so might as well do it sooner with December Update [emoji106]

Gesendet von meinem SHIELD Tablet K1 mit Tapatalk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Definitely EX!

Been using EX and Flash all along.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
I'm tempted to try Sultan but I don't really know what to think about some of the update notes. Overheating, SystemUI crashes, stuttering and camera sensor problems. Quite the issues. On the other hand however maybe this was just because of the initial tests with the simple lmk and everything is stable from now on.

Gesendet von meinem SHIELD Tablet K1 mit Tapatalk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
I've used sultan the most out of any custom kernels since I got the device last year. No issues for me and you're far more likely to hear from the few people that do have issues (though typically not of the kernels fault and from the user instead).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
Kirisakura. Works fine for me since the UV has been removed. No freezes or reboots anymore. And it's an upstreamed kernel which is important to me. Also multitasking is very good. Running it with the blackened mod script.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
ELX is running great here
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DonQuixote77:
Does Sultan have wake/sleep gestures?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chikimonke:
EX and Sultan are both not upstreamed correct?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Correct :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I'm thinking chikimonke was being a bit cheeky and monkeying around with that comment :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
What was wrong with my comment? I don't see latest Linux versions merged with both kernels compared to kirisakura and flash. Am I wrong?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I have no idea whether or not you're right or wrong... But I know chiki and my presumption was about his comment, and more of a play on words than anything provocative or indicting.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
"His" would be me in this case and still I have no idea what words I have been using the wrong way. Was trying to use the common terms used here so if something was wrong I'd like to know just to avoid the mistake. I mean I know that upstreamed usually means getting code changes merged to the upstream repo and might not be the totally correct term here.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chikimonke:
Upstream just means getting the latest patches from the Linux kernel that the stock kernel is based on. For the Pixel 2 devices, that's 4.4. Google is notoriously behind the actual Linux kernel, so some devs take it upon themselves to grab the patches from upstream. However, it does not mean they are grabbing features from a different kernel base entirely, like 4.9, that would be porting and tends to break stuff or and best, bring very little to the table.

And as much as I'd like to take credit for being "chiki" I was legitimately asking, as I hadn't looked at another kernel besides Flash I'm quite some time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
Yes that's why it's important for me too
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes my kernel is upstreamed with the latest linux-stable patches! Flash kernel and my kernel share many commits besides upstream. CAF patches and more patches from kernel/common.

My kernel has a few backports from the 4.9 kernel which improve the kernel. Some eas changes are backported, as well as the ZRAM implementation and for example lowmemorykiller which improve multitasking/memory management quite a bit :)

Before I released these changes I tested them for nearly a month to make sure they’re stable!

The reboots seem also to be gone since the last two updates as UV and some other commits were removed. At least no one reported reports in my thread. I never faced a reboot with UV. I’m glad it seems to be solved now.

So you’re invited to come over to my thread if you care about linux-stable upstream!

I try to provide the best support I can and if you face issues gather logs and I gladly look into them!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] neekless:
He was talking about chikimonke how did you think "his" means you?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sirxdroid:
Where's Nathan when you need a quick kernel update for the Dec patch ... :(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
Releasing Canary builds over at Telegram whenever he feels for it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sirxdroid:
The secret is now out.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chikimonke:
Look closer, there's an even better secret...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I'm SUPER lazy.... if I give you a "thanks" will you just tell me the better secret :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pvtjoker42:
maybe i'm just a n00b (just installed telegram) but i didn't see anything i was hoping for? I too want to be in on the super secret...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chikimonke:
PM me
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cognitivedissonance:
Is there a general consensus about the best kernel for the Pixel 2 XL these days? I'm just looking for something that works as effortlessly and perfectly as this kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Too subjective of a question. Having said that, you won't be disappointed with any of the current kernels out there. They're all great Devs :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cognitivedissonance:
What if I rephrase a bit: is there one that I can just flash and forget? With this kernel I'd simply flash it in TWRP and then forget about it; I didn't have to apply any tweaks or do anything else besides flash it. It was completely stable (no reboots or anything,) it didn't hurt battery, didn't hurt performance, and didn't interfere with anything (apps, or other functionality.). Anything like that now?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nikos2k:
Which of these is not met by stock kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
They all pretty much are flash and forget. If you like stock, the go with Ex or sultan. If you like the latest upstream changes, then go with kiri kernel. Kiri and Ex have more tweaks available, whereas sultan stays very close to stock, but offers great performance as well. Personally, I'm an Ex fan, and have been for years :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Could you please supply a link to the Kiri thread. I'm an EX fan myself, as well, but with Flash gone, I am curious about other kernels. Thank you,
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
No problem brother. How you been man? :cool:

https://xdaforums.com/pixel-2-xl/development/17-11-2017-kiriskura-kernel-1-0-0-t3706286
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Thank you! Been well my friend. Love my P2XL! How are you? Are you on Telegram, as well?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Doing good my friend. Been having a blast with my new grandson. Yep, I'm on telegram. Just ping ol Badger50 sometime :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Grandfather! That's great. Congratulations, I'm sure you will have a wonderful time as he grows up :)

Can you flash that Kernel directly over EX or Flash? Or do you need to only flash over stock?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Thanks my friend! Being a grandpa is too dang fun. According to the Dev, he recommends just flashing it in twrp, then flash magisk again. He really doesn't say if you can flash it over stock or another kernel. However, I've seen others flash it over different kernels. Personally, I'm old school when it comes to flashin kernels. I like flashing the stock boot.img, then twrp.zip, then kernel, then magisk. But that's just me :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
If you want a true "set it and forget it" kernel, I suggest Elemental X (EX). If you purchase the EX Manager app ($ well spent) and run EX kernel, it will auto update (prompt) every time a new kernel update is dropped.

So all you literally have to do it select "yes" to updating the latest kernel and you're on your way until the next one drops.

EX Manager also allows for quite a bit of customization (colors, gpus, cpus, governors, etc.) when you feel like tinkering.

It may not be the most cutting edge, the most aggressive, or the most battery efficient; but it is certainly excellent, amazingly stable, and consistently solid.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sirxdroid:
Yep, running EX right now, no customizations, just defaults. I've been waiting for Sultan to drop a Dec build, but it was time to get the Dec security updates. Nathan ruined us with his builds every few days!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
And sometimes multiple times a day lol. That guy never sleeps.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I fully expect to see a Nathan-esque character in the next Avengers movie (after Endgame), as a world renowned code writer / developer :D
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
We'll call him Boris Nathanikov! :laugh::cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Dude me too. One thing I miss on this device is the lack of someone creating twrp flashable zips each month with the stock kernel. It's above my pay scale, but it was always a nice option for those of us who can't sit still. Lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Yeah, that was a pretty sweet deal back in the day, along with bootloaders and radios. Although, flashing the boot.img in twrp isn't too bad either :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
[MENTION=6552280]MSF Jarvis[/MENTION] has brought Caesium to the Pixel 2 (XL) :)

Subscribe to his thread for update posts and such: https://xdaforums.com/pixel-2/development/taimen-walleye-caesium-kernel-v0-2-t3878737

If you want a kernel that is going to be similar in feel and stability as Flash, look no further. You can flash it via FK Kernel Manager, you just won't have the auto update feature.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
Someone's excited
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MSF Jarvis:
Aren't you? ;)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Sultanxda:
As excited as caesium in water
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Wendellsilva2408:
is it compatible with Android 10?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlokos:
If you are referring to caesium, yes. it is updated regularly.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeo10:
You mean the forked kernel? Yes! https://xdaforums.com/pixel-2/development/taimen-walleye-caesium-kernel-v0-2-t3878737/page35
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
This is GREAT advice that is all too seldom given!

In Magisk, however, I will add that users should put such scripts in the late service start folder (/Magisk/.core/service.d) instead of using init.d that usually requires other modules, sym-linking, apps, or work-around's and is generally not an optimal solution.

I also respect the "I won't do the following" list... but I'm thinking scheduler might be something you'd consider in the future? Even the stock kernel has the option to run Noop instead of CFQ, and Deadline is a pretty safe add as well, having been in mainline Linux and most Android kernels for pretty much ever. ;)

Thanks for being here and contributing to the P2XL community!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] kauemelhado:
Nice to see you here man!! I'll be sure to give this a try.:victory::victory:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Good catch! Yeah, running SELinux in permissive mode is really not a smart idea. Plenty of vulnerabilities are prevented by SELinux.

noop is there, I can enable deadline but I think cfq is a smarter choice considering deadline hasn't been changed/updated in five plus years lol.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] evilryry:
Awesome to see this, used the heck out of ninja then flash on angler. Missed it on my marlin but I'm so excited for this :) Thanks Nathan! I'll be flashing immediately when I get my replacement device setup this afternoon!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galaxys:
This makes life with the badboy Pixel 2 XL much more fun! :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Thanks, I usually don't have to use them but my internet might be goofy today as I tried to flash it three times while dling it twice and it just boot loops lol. Normally have no issue fastboot flashing anything
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHANrad_SIN:
Does this kernel support color profile control?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Do you mean KCAL? No, I have not added KCAL support yet.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dr_rick13:
Thanks for your work man. Can't wait to flash after class. So if we want root, we need to patch the boot img in magisk first?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
I came from the First Pixel Xl and had to get very familiar with the two slots. slot_A and slot_B. One slot is your current Active slot. TWRP indicated which slot was active. I fastboot flashed, boot.img to the active slot.

fastboot getvar current-slot

gives you that info.

When you receive an update. Your active slot will change. Your new current active slot will be slot_b. and so on.

I got boot issues as well. And started using fastboot flash boot_a boot.img etc.(active slot)

lol hope this makes sense
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHANrad_SIN:
So I tried patching the boot img with Magisk and I'm getting boot issues. After I flash the patched boot and the dtbo in bootloader and reboot it just keeps rebooting back to bootloader. I'm in class too lol couldn't wait
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
I did hear about that, but thought it was only in relation to using twrp, wasn't aware I had to specify the slot even during fast boot. Thanks for the heads up homie
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MikereDD:
I didn't specify anything.

Just patched Nathans boot.img with magisk

Pulled the patched boot.img

Updated to November images with fastboot but removed the -w flag

Once it booted up rebooted to bootloader

fastboot flash boot patched.img

fastboot flash dtbo dtbo.img

Reboot profit still had root.