yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] LLStarks:
That wasn't too bad. Since I'm November, had to be a little creative. Ripped stock boot from factory image, patched the image, flashed the image.

I'm still trying to wrap my head about the partition layout. I have no idea which set I'm on at any given time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] js042507:
Really dude? There is an S8/S8+ xda forum. Go there and you will find out.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agtsoul:
Anyone having issues this is step-by-step I used to get root. You must already have your bootloader unlocked before proceeding with this.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nexus_man12:
Thanks a lot for your detailed reply. i'll give it a shot sometime this weekend with all the suggestions you gave. I'll first try it with older APKs, hopefully, I can find them on apkmirror.

Once again , thanks ! :good::good::good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] UpGrad3:
Thanks for these instructions.

can you please explain how you can tell which image to patch ?

I am unable to get this to work magisk is showing this message: stock kernel cannot be patched please use a custom kernel

i downloaded: walleye-opd1.170816.010-factory-63083164.zip

unsure as to whether this is correct for my phone as they are quite a few and its unclear how to tell

i have a pixel 2 from the UK that was factory unlocked and i unlocked the boot loader

what am i doing wrong please help
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nexus_man12:
What kind of error are you getting when you fastboot flash ? you just do "fastboot flash boot <patched boot img file>. After that you just reboot and check Magisk ,of course :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MariuxReloaded:
D'oh! Thank you very much for your feedback :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Godson777:
Haven't been in the scene for a while, so I apologize for the noob question. Would it be possible for me to flash the entire factory image for the Nov update without wiping (taking off the -w flag in flash-all.bat), and then repeat the steps in the first post to install magisk?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] whezzel:
So I dont know if i did something wrong or if Magisk doesnt fully work with 8.1 yet, but on 8.1 i couldnt use any of the installed modules. I switched back to 8.0 (fresh install) to try the new saturated color mode, and now the magisk modules are working.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] smith8ca:
That is exactly what I did to get root on my Pixel 2 "standard" (November update).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] whezzel:
That should work. I did this all the time on my N6P (well i would dirty flash the system and boot partitions) then apply the magisk patch and never had any problems with it. There is a post a few pages back that has steps for upgrading to the November update patch if you unsure about anything. Also, there is some really good info in the original magisk post (https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] josh90265:
Unable to Flash in Locked state

Hey guys,

Still having issues trying to flash the patched_boot.img file. When I try i get the error message:

FAILED (remote: Flashing is not allowed in Lock State)

How do I get past this? Looking up how to unlock the bootloader perhaps but also coming to a dead end. When typing:

adb reboot-bootloader

I get into Fastboot mode. For some reason both 'Fastboot Mode' and 'DEVICE STATE - locked' are both in red letters. Everything else is white. Then what I has found in order to unlock the bootloader you need to type in:

'fastboot flashing unlock'

I get a list of commands:

usage: fastboot [ <option> ]

commands:

update <filename> reflash device from update.zip

etc.

How do I proceed after this in order to unlock the bootloader? Which will hopefully allow me to root the Pixel 2 XL?

THANK YOU!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
If I may ask, where the heck is this -w flag in the flash-all.bat file. I have no trouble using fastboot for many things, but for the life of me, I just can't seem to find this flag I've seen mentioned many times. Thanks for the help :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Natakranta:
Open the flash-all.bat file and scroll down to the very end. It is in last line, there, you will see it in between commands.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] smith8ca:
Look for this line towards the bottom of the script:

fastboot update -w image-walleye-opd1.170816.025.zip

Though for you, I imagine it will be pointing to a taimen image. Worst scenario, you could look for it using ctrl-f.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Thank you very much my friends. Thanks for helping out an old dog, and teaching him new tricks. The P2XL is a lot different in this regard, only had to do 7-8 files each month on the 6p as opposed to 20. :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jrbxx7:
Did u toggle oem unlocking in developer options? That will allow u to unlock bootloader via fastboot command.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] josh90265:
Yes, both OEM unlocking and USB Debugging
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matt4321:
Thread cleaned up a bit. Please don't be offensive to people, similarly if people are offensive just report them, we'll take care of them!

Have a good day all ;)

Matt

Senior Moderator
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] grilledbacon32:
I used Skipsoft's tool to unlock mine. I like to see what the tools have to offer and it's a pretty good one. You might give it a try, makes it very easy! BTW, don't forget to backup your phone before unlocking as it wipes your device, you can do that with the tool as well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JazzMozz:
Has Mark released the Pixel 2 XL module for his tool? I was waiting for that (yes, I'm a lazy bugger when it comes to rooting[emoji23])
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] grilledbacon32:
Haha same here, do it all for me! Everything worked perfect for me expect when I went to download the latest Nov. OTA. It said it was missing the module for that. I decided I wanted to go ahead and update while unlocking and rooting, so I just downloaded it manually and put it in the correct folder. I only used it to backup, updated, unlock and restore.

https://xdaforums.com/pixel-2-xl/development/tool-skipsoft-android-toolkit-google-t3702028
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Coldfish9507:
which kernel editor is this ? looks great:good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cilraaz:
You need to update your platform tools. This is essentially your version of fastboot not knowing the "fastboot flashing" command. That's why it returns the error help with the command listing.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JaLex77:
OEM Unlock GreyedOut - Fix

Here's the process I had to go through...

I was on the 8.1 beta. My devices "OEM unlocking" was greyed out. I had to roll back to 8.0, enable OEM unlock, then "bootloader flashing Unlock" boot back into 8.0.

Re-enrolled in beta. I attempted to do OTA survival from 8.0 to 8.1 which resulted in a bootloop. Flashed 8.1 stock boot.img - booted right up. Patched the 8.1 boot.img. Booted back to bootloader, flashed patched_boot.img and rebooted.

After all of that, I am enrolled in Beta 8.1 with root!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
I followed the instruction and it's working fine on my pixel 2 xl, but when I check I am still on the Sept and where is the OTA on Nov that I can download? Will I still get OTA update through google after I have magisk installed. Do I have to do this everytime I update the phone?

sorry if this is a Q&A question. Thanks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Edit: actually not sure the more I look at it lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] seagypsy59:
https://xdaforums.com/android/apps-games/app-kernel-adiutor-t2986129

Kernel Adiutor
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] grilledbacon32:
Yes you will still get OTA updates, and yes you will have to do this process again to regain root.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JagXK8:
What did you use to customize your battery
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
You realize the screenshot is from the thread he posted and isn't theirs right
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matthewd769:
Really dude .... NO WAY !!!!OMG i must have missed that ... OR maybe im asking around to see if anyone knows or could contribute to our chances to unlock the BL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] js042507:
Yeah, well I don't follow the S8 scene, but I peeked for a minute and it looks like you guys have root. IDK. Whatever. I have no answer to your question. Sorry.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Guess my first instinct was right then lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jrbxx7:
Kernel auditor in the play store
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rester555:
I searched the threads, but couldn't find an answer. If [MENTION=4470081]topjohnwu[/MENTION] makes a newer version of magisk to update, how do you flash it? Do you need to follow the exact same instructions for each magisk version update?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Not sure if you're talking about app or zip, but either way the process is the same
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] denistina:):
Works perfect on my RN3Pro - Nitrogen OS 8.0r32

Only safetynet fails if I dirty flash new rom build and dirty flashing magisk doesnt help either.

Only clean flash works...or do you have to uninstall magisk completely before rom update? I know in past it worked without that issue.

Perfect job otherwise ;)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Chrisp725:
Magisk crashes when patching system.img

Still having a problem with Magisk Manager, where after choosing system.img I get the message "Magisk Manager has stopped" and it never patches my system.img. I verified I'm using the correct versions of everything for the Pixel 2 XL. Tried downloading Magisk Manager and installing it again. Do I have to patch my system.img on the phone it will be used for or can I try to run it in an emulator to see if it doesn't crash?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] 123SIT:
You want the boot.img my friend, not the system.img :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Wilazn:
Anyone have this problem? I was able to Flash the patched boot image fine and phone was rooted for 8.1.0. Everything was great till I had to restart my phone to apply the Adaway settings. After the reboot my phone became unrooted again. I have to root it every time I restart or did I do something wrong?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] soundneedle:
Somehow I no longer pass the safetynet check. Is there a way I can tell what caused it to fail? I haven't edited in a system folders. Everything I've done is through the magisk manager.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WalrusSneakers:
Has anyone tested build OPD3.170816.023?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Legend4071:
Well RIP I'm new to rooting and this seems impossible

:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dyingearth:
That's my first step out of the box. Just got my phone rooted as well... And I can even use the stupid Android Pay as well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Itachisasuke:
I'm not sure what is "impossible." Using SDKs and Factory Flashing Tools from command line isn't a simple click and go. You have to be willing to do the homework required to achieve your desired end state.

Unlock the Bootloader

Download Android Platform Tools SDK and Drivers.

Download Factory Images from Google.

Unzip the files.

Drop the boot.img on the 2 XL and use the steps from the OP which include sideloading the Magisk Manager apk

Magisk Manager patches the boot.img and creates a "patched_boot.img" which you need to copy back to your PC in a location you can reference for fastboot and then all you need to do is reboot into the bootloader and flash the patched boot image

Commands should be as simple as the below after using Magisk Manager to patch the boot.img

adb reboot bootloader
fastboot flash boot patched_boot.img
fastboot reboot

Enjoy root.

[MENTION=5445011]agtsoul[/MENTION] has a more granular guide in his post here as well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Legend4071:
Ok well I don't understand stand how to get a factory image I have a Mac and I downloaded the sdk platform tool but then it says to add the flash boot tool to your path environment variable which I don't know how to do and to flash a system image I have to download the appropriate system image which I have a pixel 2 xl so I would use fast boot flashing unlock_critical? Or just fast boot flashing unlock and then I don't know

how to unzip it to a safe directory but the rest I should be able to do sooooo yeah I told you I have no clue what I'm really doing
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] hugebulge:
Delete
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Itachisasuke:
Factory Images

Guide for installing SDK Tools

According to everyone in the thread you only need to do

fastboot flashing unlock

Which will wipe your device and allow access to flash the patched_boot.img

In MacOS Terminal you can unzip using

unzip nameoffile.zip

Its great to want to learn how to root but if you aren't familiar with working with Software Development Kits and Terminal command manipulation these early rooting methods aren't for the faint of heart and you always need to keep the thought in your mind something might go wrong and brick or wipe your device so a backup plan is always good to have.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dyingearth:
Be sure to use the right version of the boot.img. I accidentally use the one from November while the rest of my phone was on September. Went back and fix it. And make sure you got Pixel 2 XL.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] damir11:
Guys I need help I was trying to update and I'm getting this message.remote check device console
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Wilazn:
Nevermind lmao. I'm an idiot. I did a temp flash instead of a permanent boot. [emoji28]
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Everything worked and I am rooted. Only 2 issues, which appear to be connected.

When I tried to "fastboot flash boot patched_boot.img" I got an error message that the slot does not exist. So instead I entered "fastboot boot patched_boot.img" which worked, rebooted fine and I was rooted. But when I rebooted after flashing a module I was no longer rooted.

Is this error due to not having an updated adb/fasstboot, or is it something else.

Thanks,

Edit: updated drivers, this time it flashed as per your instructions. Looks like it worked! Thanks,
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] drewski_1:
maybe need to update your Fastboot to the latest version?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
I did and they worked!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] neo_lithic3K:
same here. I was rooted with Magisk and phone was working perfectly on the Oct build, but getting bootloop on the Nov build... no errors encountered during any of the Magisk boot.img steps.. (Unsure if this had anything to do with it, but when I was on Oct build, I tried to install the Nov via OTA (from settings) but it kept on failing on Step 2/2 of OTA install. So, instead, I downloaded the Full OTA image and sideloaded it successfully. Phone booted up with Nov OTA but of course, I lost root so I then proceeded to repeat the Magisk boot.img steps to reacquire root which then led to the bootloop)

I was able to fix my bootloop phone by flashing the Nov factory image (without wipe) ... but when I retry the Magisk boot.img steps, it bootloops again. I then tried it 2 more times but same thing.

I then tried flashing the Oct factory image (without wipe) but after flashing successfully (no errors), I reboot my phone and it would remain on the G logo (with the status bar in motion) for 15 min+ (but no bootloop). Wasn't sure how long to wait, but 15 min seemed too long...

I'm going to reflash the Oct factory image one more time. If it still doesn't work, I'll have to live with Nov factory image without root.

(btw, I was using an old Android SDK when I Magisk-rooted on the Oct build, but I updated to the latest SDK after getting bootloops on the Nov build)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] agtsoul:
Glad you got it worked out.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] whezzel:
I am running magisk on this version of Android. Everything works like it supposed to

Edit: scratch that, I'm on ODP1.170816.25

You could go ahead and try it, worst case you bootloop. All you would need to do to fix the bootloop is flash the stock boot.img back to your phone
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jblanko6:
So ....how do I access the boot image from the Zip file ? Can't find it anywhere in the Zip file. Sorry for the dumb question .
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
I am running OPD3.170816.023 (Verizon build of the Nov security patch update), rooted via the method in the OP... all working perfect.

Unlocked/Google P2XL on the Verizon network.

Thanks to the OP and those involved. These days, the only root app I use regularly is Titanium Backup and I feel much better having it again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] RiffyDivine:
With the new update if I wanted to update my phone I just do the OTA update, remake the boot.img and reflash it right? Or can I just push the update with the modded boot.img inside the zip already?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
The latter may be possible, but I think for safety's sake... I'd go with the former (just perform the rooting process over again once updated). I say this because if you're asking... you're probably asking because you don't want to risk it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] w02justin:
Unzip the zip file within the zip u downloaded off of Google's factory img site. There should a file named boot in there and extract it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] RiffyDivine:
Not so much worried about the risk just wondering if it's been done or even a smart thing to do. Also was thinking of just keep backups of the android builds with the edited boot file in them on my nas if I ever wanted to quickly roll back.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] arh2o:
Anyone else seeing " Uncertified " under Device Certification in Play Store settings? I assume this is because of the unlocked bootloader. Can Magisk hide the unlocked bootloader and if so do I need to use Magisk Hide for the Play Store ( com.android.vending )? Do any other apps need to be ticked? Thanks in advance.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mac796:
If you have magisk installed just clear data in the Play Store app it'll go back to certified
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] arh2o:
Thanks mac that did it! Netflix now shows up in Google Play :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Make sure you use factory image and not OTA
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlokos:
Just got my P2XL. It updated to November security patch .023 verizon. I unlocked bootloader and rooted using method in op. Worked great. I flashed custom kernel and lost root. I forgot I had to go through rooting method again with the custom kernel as the patched boot image. No big deal. Thanks for the great work. Donation on the way: Transaction ID: 95432824N5005271B
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jblanko6:
Could you explain a little more please, My build was the Nov .25 update, so I downloaded the Nov file to use that boot.img. Is that ok?

Now I ran into issues, i was able to root using this method and when I rebooted my phone it now says ,critical condition and something about the system beeing corrupt on a black screen. How can I revive it now ????

can I use the toolkit to flash back to stock ? but my computer wont recognize the phone if its on that scree ! :( any help please
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
Did you unlock critical?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jblanko6:
Yes Sir. Im sure, cause thats why i had to do the two step unlock where they ask, hit the power button to unlock and they ask you again to unlock critical and you hit power button again .
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
Sorry I meant what command did you use?

Fastboot flashing unlock_critical or fastboot flashing unlock
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jblanko6:
I unlocked the bootloader with the toolkid and don't recall what option was is !:( I'm trying to flash the stock OTA with the tool kit but can't get pass this !:(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
I would unlock critical (with the path above) and try again
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] drewski_1:
there's another zip inside the main zip that has all of the paritition images as separate files. you need to extract from there.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jblanko6:
So I was able and flash the stock recovery with the toolkit and THEN flash the Nov OTA file. It's booting up as we speak ?.

Going to try root again. But question. Flashing the boot.img with the toolkit is ok ? And someone mentioned if it was the stock image or the OTA . What does that mean ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] drewski_1:
OTA is a Recovery flashable zip file. This may be incomplete depending on what it's designed to be flashed to (incremental vs. full OTA)

Stock / Factory Image has the partitions to flash in Fastboot. This is a complete, standalone set of files to restore your phone to Factory state. This is where you need to extract the Boot.IMG file to modify for this method . . . not that I've gotten it to work yet . . . :eek:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jblanko6:
Are you on the .025 build as well and haven't gotten it to root ? So I guess I used the worng boot image ? I downloaded it from the OP and the Nov update as well. :rolleyes:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] radionerd:
Unlock critical only needs to be unlocked if you are flashing a modified kernel. It wipes all data. Root needs unlocked bootloader.

I'm on 8.1 beta stock kernel, critical is locked on my device. I'm rooted.

Being on beta I had to extract the proper Boot.img from the 8.1 beta image. I think some folks are making a mistake downloading the wrong version of boot.img for their devices.

If your device fails to boot after flashing the patched boot image, just fastboot the original boot.img back in, reboot, and confirm you have the right one in the first place.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
I was under the impression you couldn't flash a different bootloader without unlocking critical
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] drewski_1:
i'm currently on DP 8.1 build .005.

i've tried on Sept Build && the 8.1 using the correct boot image.

sticks on Boot Animation of the 'G' with the animation below it. gave up after ~20 mintes.

---------- Post added at 01:01 PM ---------- Previous post was at 01:00 PM ----------

this is true for 2 XL bootloader. kernel flashing just needs the regular Unlock

Unlock Critical is not needed for bootloader flash on Pixel 2 non-XL