yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
It looks like the same kernel is used among NHG47K, N2G47J, and N2G47E, so my patched one should work for all of them. I'll update the post.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobby janow:
I'm just curious... So assuming you have the Google version and the oem unlock switch is fuctional and turned on, if you are not intending to root the device why would you unlock the bootloader? I mean you can always unlock it if you want or need to root, right?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
In the past I would always root or install a custom ROM on my phone. I would like to with the Pixel, but I want to keep Android Pay since I use it almost daily and I haven't been satisfied with the root solutions I've seen for the Pixel so far. It seems like Google is doing a good job of making it difficult to root, given the three or four different ways to root a Pixel that I've seen. Also, with the advent of monthly security patches I would imagine it is a growing headache to unroot, flash the update, then re-root each month. Google has also done a great job with the stock experience on the Pixel that the reasons I'd root are fairly minor.

It's also just been a habit of mine that the first thing I do with a phone is to unlock the bootloader. I don't like the idea of artificially restricting full access to a device, whether it's software or hardware. Plus I don't have to deal with the silly anti-theft checks that people encounter when they wipe the phone and sell it legitimately (like with Swappa or eBay). There was also a time when Nexus phones would bootloop after receiving an OTA, and if you weren't already unlocked before the OTA hit you'd be stuck with a bricked phone.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobby janow:
Ok, fair enough. As I said I was just curious as to the reasoning. But what do you mean by anti-theft checks? I've never sold a phone so I don't really run into anything like that. But if you ever did need to sell it and you could unlock it at a moment notice wouldn't that suffice? I have a Verizon model locked bl so this is all rather moot to my situation, but I do have a 5x that I can unlock if I had to. I like the idea of being able to toggle the oem switch even though I would still remain locked. Something about being able to flash a factory image that I like. Thanks for your reasoning. Not that I agree or disagree with you entirely hehe. Personally, I just like the security of not being able to access my data if it's ever lost or stolen, but I suppose a concerted effort would get in.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
If a locked phone is wiped/factory reset then only the Google account that was previously on the phone is allowed to be added back to the device. Tons of people were selling Nexus phones when this change rolled out, and the people that bought the phones were unable to add their accounts even after factory resetting. By unlocking the bootloader it disables this restriction. Yeah, I could do it at the time of selling the phone but there's always a chance I'd forget if I got out of the habit of unlocking the bootloader.

I thought about it a lot - and I've never lost a phone before so I'm OK with having my phone accessible in that regard. If I lose my phone I'll have bigger issues (like 2FA locking me out of my accounts) anyway.

I'm on Verizon, but I intentionally bought the phone from Google just to be able to unlock the bootloader :).
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobby janow:
I've seen the term 2FA bandied about. I presume that's what you're talking about regarding the lockout. So to clarify, if you don't have an unlocked bootloader you can't sell the device? That seems weird. How do you get your account off? If I gave the phone to my wife she can't add her account?

I've never lost a device either although I have smashed one of them disastrously. But now I have a lot more stuff on the device including some personal pics and videos, password files, banking app and of course AP. I actually think my reasoning was more of like there is so much hacking and theft going on that rather than take a chance let me see what it's like being locked like normal people. It's hasn't been bad at all so far as I'm sure you know since you're not really modded either. I get the OTA on another slot and while it's updating I can use the device and a simple reboot updates it. But the bigger reason is that I got a Verizon model (Pixel 32gb) for $240 and not the $650 the Google one would have cost. I'm not sorry although I will revisit that once the Pixel 2 is released. Black Friday is your friend. I would even have bought the Google Pixel for $350 if they had a deal but they didn't. With a fully functioning 5X I just couldn't justify the full price.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] coldconfession13:
Hmm I extracted the file and used fastboot flash kernel kernel_marlin-3.18-nougat-mr2.img and it gives me an error "error: cannot load 'kernel_marlin-3.18-nougat-mr2.img"
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Protibus:
After extracting the file I just renamed it to sailfish-image and used that in the command fastboot flash kernel sailfish-image. Flashed fine.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
I think you're trying to flash an older patch I made that was a full boot image (the .img is a hint). If you want to flash that change 'kernel' to 'boot' in your fastboot command. Otherwise just download the new attachment from the OP which contains only the kernel.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] MrDrift42:
The other thing you can do is type the first few characters of the file name and hit tab and it will finish the file name for you. Also make sure it's in the same directory as your fastboot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] noone606:
Anyone tried this yet with the may update?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Cardflip:
This should work just fine since no changes were made to the kernel, according to the git log :)

EDIT:

You can't flash this anymore with the May update, since the boot image has to be signed by the OEM or your own key. If you want to do this yourself, check out Chainfire's post:

https://xdaforums.com/android/software-hacking/signing-boot-images-android-verified-t3600606

However, you can still boot with the image without flashing it.

Alternatively, if you want my signed patched boot image for May, I've attached it. Please unzip and flash using fastboot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] djRamage:
Worked perfect, thanks!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DroidForLife33:
Worked perfectly thanks for taking your time to set this up and post. Verizon xl bootlader unlocked and stock.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] sruel3216:
does this effect the ram disk? just curious cuz if i flash a custom kernel and want to go back to stock kernel and ram disk, will this work?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] TonikJDK:
You can just flash the stock kernel and be right back to normal, ramdisk will be fine. Or you can flash the whole image and totally wipe the phone. Or you can flash the whole thing except your data, settings and apps.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] sruel3216:
ok cool. yeah id just like to flash kernel so i dont have to set up my phone again. im on the may 7.1.2 will i have any problems? Ive read some roms are not flashing well with the may update
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Kisakuku:
Flash VerifiedBootSigner in TWRP to sign the boot image if you are running the May bootloader.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] wera750:
Can we get an Android O patch?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] marc.ientilucci:
My current setup is stock rooted with SuperSU and TWRP. Is the best step to install this just flashing the kernel? I'm assuming I'd need to reflash both twrp and SuperSU. Does flashing TWRP overwrite the change?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] p1r473:
Thanks so much, was able to use this link you sent, plus the update in this thread, to get Android Pay working on my unlocked bootloader, rooted phone
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
I was waiting for the dust to settle in regard to signing bootloaders for the May update and newer before updating again, but it looks like things are working well with the June update. There have been no kernel updates for a while, so the patched kernel remains the same but I've updated the instructions on how to flash it with the May/June update.

Others have posted instructions elsewhere on how to do this and also have root/magisk/etc, but the goal for this thread is to maintain stock unrooted but enable Android Pay (and possibly Netflix) with an unlocked bootloader, so my instructions in OP are enough to meet that goal.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Phrankeeh:
did you use magisk root? everytime i flash the stock kernel, magisk is removed
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the latest kernel version from July 2017. For some reason they tagged the July update out of the mr2 branch instead of the mr2.1 branch, so mr2.1 is now older than mr2. Just remember the latest version will always be attached to the OP, so download it from there to avoid confusion.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DroidForLife33:
Thanks for your work much appreciated.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] gabrielgagz:
This patch still bypass the latest update of safetynet??
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jmgib:
This patch just hides the fact that you have an unlocked bootloader. It doesn't hide root or anything such as Magisk might do.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] p1r473:
Yes I did, works great

Try:

https://xdaforums.com/apps/magisk/unofficial-google-pixel-family-support-t3639262

Steps:

Flash Magisk Uninstaller.

Flash TWRP RC2

Reboot Recovery.

Flash Magisk 13.3-b3

Flash Custom Kernel (I use ElementalX ElementalX-P-1.14.zip)

Flash TWRP RC2

Reboot System

Install Magisk Manager

Enable Magisk Hide

Enable Core Only Mode
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CarteNoir:
Hey there, I understand that this kernel is mainly just for people who want stock with an unlocked bootloader, but would you be able to make a TWRP flashable ZIP of the kernel so those of us who want stock unlocked bootloader and Magisk can use this instead of ElementalX? I'd really like to stay as close to stock as possible while having root and it'd be amazing to be able to use this patched stock kernel instead of a custom one.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the latest kernel version for August 2017. New version is 2.3.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
If you need to use TWRP to flash Magisk you could just boot TWRP temporarily to flash it. It would be similar to my instructions on how to use TWRP to sign the May 2017 bootloader.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Sakete:
Heh, I had to do a double-take just now, what is my post doing being updated?? But then I saw you copied it :)

Thanks for picking up where I left off. I don't use Android Pay so didn't feel the need to continue maintaining that kernel. I'm all stock now, except for an unlocked bootloader.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CarteNoir:
I tried that, sadly no dice. I feel like it has to be done in some weird precise order or else it doesn't work.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rockingondrums:
Subscribing for Android Oreo patched kernel
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bb12489:
https://xdaforums.com/pixel-xl/themes/mod-stock-op-preview-4-boot-image-t3651574

I'm using this patched kernel just fine on my XL running the release version of Oreo.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the new kernel for Android 8.0 Oreo. I haven't updated my Pixel XL to 8.0 yet so it's untested by me, but it's compiled using the same process as my other kernels. Let me know if it works or not!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kartikb:
Will Magisk work with this kernel?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rockingondrums:
As soon as my XL is finished restoring apps from the cloud, I'm going to test it. Just a few more apps left.

---

Just tested by fastboot booting. Does not work. Play Store showing Uncertified and not showing Netflix app.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jmgib:
Can you try to clear data for the Playstore app?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] liam_davenport:
Kernel works fine on 8.0.0 with certified under play store thx bro great work :good:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rockingondrums:
I will try that soon. I'll fastboot boot it first. If it works, I'll flash it and report back
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rockingondrums:
Clearing the app data (not just cache) of Play store and rebooting got me back to certified though strangely Netflix is still not showing up in a search. I care more about Android Pay though.

Update: it took several minutes but Netflix showed up. And Android Pay loaded and let me add a card. Hopefully I'll to test the actually payment functionally tomorrow.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ldkud50:
After flashing had to clear cache and data on Playstore. All is well. AP and Netflix working.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] poolemit:
i just flashed this on 8.0 stock and cleared Play Store cache/data but i'm still not passing SN. anything else i can try?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rum-z:
Questions about Updates in the future

Sorry I'm a bit new at this.

So say I applied this Kernel to my phone. What happens when the next OTA comes out? Would I be able to grab the OTA then flash an updated kernel from this thread? Or would I have to return to the stock kernel to get the update, then re-apply the modified kernel? Or is it as easy as just flashing the new modified kernel?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
It will fail to install the OTA while running any custom kernel. You'll need to flash the stock boot.img for the version your phone currently has, then let your phone install the OTA, then flash the patched kernel.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rum-z:
Thanks! Just to clarify, i'll just download the full system image my phone is currently at from Google's site, copy the boot.img file from the download into my adb folder and then simply type, "fastboot flash kernel boot.img" (assuming I already have all my adb set up and my Pixel xl is recognized by my computer) ?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] nadiros:
"fastboot flash boot --slot all boot.img"
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
This, but I do it without the --slot all part to preserve the backup slot.

fastboot flash boot boot.img
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the latest kernel version for September 2017. New version is oreo-r3 (yes, they downgraded again from oreo-r6 to oreo-r3).
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rockingondrums:
fastboot boot showed play store was certified, fastboot flash kernel showed certified :good::highfive:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] rockingondrums:
I think I'm going to try and use this patched boot image as my "stock" boot image with Magisk 14. I would like to remain certified in the play store. topjohnwu's post from July 11th stated he couldn't track it down and he wasn't working on it.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] xocpixel:
Thanks a lot for this. Flashed last night works great. Unlocked bootloader to install twrp and was surprised netflix and android pay wouldnt work. Now I have unlocked bootloader, and twrp. It's fun to take small steps and overcome an issue and then try new things. Really glad there is a community that releases these type of things. Otherwise I wouldnt be able to experience them. I think I accidentally took the OTA in august for 7.1.2 so I used the nougat mr 2.3 and works fine.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] johnhazelwood:
Anyone know if the kernel is the same for the latest October patch?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
To avoid confusion (including myself!) I've compiled and renamed the latest kernel to match the build number of the factory image. For example, kernel_OPR3.170623.008.zip is intended to go with build OPR3.170623.008, Oct 2017 from https://developers.google.com/android/images. Even though I haven't seen or heard of any issues not matching up kernels with factory images perfectly, I think this will make things less confusing.

Google is the king of changing naming conventions on the fly, so we'll see how long this lasts :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jay661972:
Will this work with 027 build?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Yes, it looks like they're both using the same kernel. I'm on Verizon so I have the OPR3..008 build.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Nateg900t:
bootloop

Thanks for all of your work!

I'm running into a little problem, that hopefully isn't happening for other people. I've had to flash-all.bat (without -w) my OPR3 007 running Pixel (Verizon unlocked with Depixelate, and running your previous Stock+Safety-net kernel without problems since I updated to the September OPR3 update a few weeks ago) twice now to get it running again because of bootloops after flashing the new Stock+Safety-net .008/.027 kernel.

UPDATE: Don't be a dumbass like me- remember to actually extract the kernel from the ".zip" file before you flash, and don't flash the zip file.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jay661972:
Thanks for this running the kernel since yesterday
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] tyler539:
Can Use Android Pay Again

I've been running this kernel for a month now, and it has flawlessly allowed me to run stock Android 8.0.0 on my boot loader-unlocked Verizon Google Pixel XL AND use Android Pay, so thank you!!! If I ever had to re-lock my boot loader to use Android Pay, I could never unlock it again!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] caballon:
Could this work on 8.1? Thanks in advance.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Nateg900t:
Anyone know if an updated version of this kernel is required for the November security update? ...waiting to install until I know that I’ll have the necessary stock safety-net kernel and supersu and installing it with twrp are working...
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Ismokel:
Thanks for this. Definitely appreciated.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the November 2017 kernel update.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Zehlek:
Are you working on one for 8.1?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Not intentionally, as I'm waiting for it to be stable before running it on my phone. It might work, though. Try it and let us know!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the 8.1.0 kernel for December 2017.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP with the latest kernel for January 2018 builds.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP for February 2018.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP for March 2018.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Update OP for April 2018.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Update OP for May 2018.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP for June 2018.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] nabiladeeb:
Thanks for patching the kernels every release, very useful.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP for July 2018.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bmxer4130:
Thanks for actively developing this kernel! Any plans on Android P support?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP for August 2018 and Android 9.0. Since Pie is now officially released I am discontinuing 8.X kernels. If you still need the older 8.X kernels they are available using the link in the description.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] LeMoise:
If I'm currently rooted with magisk 16.7 and i flash do I lose the root?

If I understand correctly this kernel will keep the bootloader unlocked but make that undetectable? I'm hoping to be able to play fortnite mobile (I known I know).
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
I'm not sure what magisk does, but you could try "fastboot boot filename" to boot into the kernel without actually flashing it and let us know :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kingbri:
There is a method that can bypass root detection since epic games has a flawed philosophy on security
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] LeMoise:
I was able to flash the kernel very smoothly but my unlocked boot loader was still detected. Still gonna keep the kernel on though :)

Thanks
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] :
You using magisk?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] balag59:
Is this able to pass the safety net on Android 9? For some reason even after flashing this on Android 9 I'm still unable to pass the safety net.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] LeMoise:
Yes, I am using Magisk 16.7.

If you are using the SafetyNet checker in Magisk then it will return "invalid response" until the next update because Google changed how the API worked. This just means that Magisk cannot connect to Googles servers to verify SafetyNet, you most likely still pass it. There are some SafetyNet checkers in the app store that are updated and can properly check for you. SafetyNet Test by Pratik Surve worked for me.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] balag59:
Thanks! The app that you suggested says that it passes it.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] brightjh01:
Just installed it, was to set up google pay now , have not try using it, safety net failed?

ok update.

Just used android pay , worked fine. Thanks for the work.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] -Maverick-:
Thank you, installed and works great on my unlocked bootloader stock Pixel XL. :good:

A quick question, are there any plans to continue passed the August 2018 kernel?

edit: got my answer, just saw the new update posted today on the older site link.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] iissmart:
Updated OP for September 2018. Had some issues upgrading my build server that delayed this by a bit.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Crlog:
I was waiting for this patch. Thank you.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] brightjh01:
work fine for me thanks.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] hackthis02:
Due to and issue with my phone when I boot into booloader mode my PC can't access my phone. So fastboot doesn't work. Is there anyway to make this into a update.zip I could adb sideload? Or modify the current security update to use this kernel rather then the stock one?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] -Maverick-:
Odd problem. If your phone is seen by your PC in recovery but not in fastboot, it could be a driver issue. Have you checked device manager on your PC when in fastboot to see if drivers install?