yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
This will get you back to a working device

I do this because I dont like using the flash-all.sh

This works every time.

Coming from the first Pixel Xl and this devive

Flash Back to stock:

fastboot flash bootloader bootloader-taimen-*.img

fastboot reboot-bootloader

fastboot flash radio radio-taimen-*.img

fastboot reboot-bootloader

fastboot flash boot_a boot.img

fastboot flash boot_b boot.img **ACTIVE SLOT Last)

fastboot flash system system.img (active slot)

fastboot flash system_b system_other.img (Inactive slot )

fastboot flash vendor vendor.img (active slot)

fastboot flash modem modem.img (active slot)

fastboot reboot

To clear all data run: fastboot -w Not needed if you want to keep data.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mackentosh:
Thank you sir, this was exactly my problem
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
I agree that it must be the Fastboot environment that is the problem, since the errors seem to be from Fastboot not knowing how to properly execute the commands that I am issuing. But where exactly is this updated/newest version..?

I've been going to https://developer.android.com/studio/releases/platform-tools.html and clicking "SDK Platform-Tools for Windows". The page says that the link will "always point to the most recent version of the tools". Then I download it and run my command prompt in the folder where Fastboot is...

I have read that Google is now providing the tools as a download with just ADB, Fastboot and Systrace, so not a big 'ol package, but I cannot find any Platform-tools with more utilities for download than that one; a larger package that is... I also have not found a smaller or older one, for that matter...

I did download the entire Android Studio, and use it to install everything I could find, but since I am still running the command prompt from inside the "Platform-Tools-Latest-Windows" folder, I don't know if that would help. And in fact it didn't.

Can someone provide a link or a description of how to get the Updated Fastboot that we should be running..?

I was hopeful that this might work, since I have not installed any drivers since using my 6P, but there were no errors in Device Manager... I appreciate it, though...

Was also hopeful that this could be the problem, as I had actually downloaded and extracted the file on the phone instead of the computer. But when I re-did it on the computer and pushed it to the phone before patching with Magisk, it made no difference. Still would not flash

Thanks everyone for the help so far. You would think that I hadn't been on XDA as long as I have, lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matthewd769:
I know there is root .... if you took the time i asked about BL.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cwalker0906:
When the first pixel came out, I had all types of fastboot problems. I had all types of fastboot and adb folders from multiple devices. I erased everything from my PC and started fresh. I don't know if the prompt was bringing up old fastboot or if my path was wrong, but erasing all of them and then redownloading from Google solved my problem
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mackentosh:
Try a different cable, I'm telling you I was stuck like you for 6 or 7 hours till went and got my cable out my car charger with the USB end on it. The cable that came with my phone would do everything except what I needed it to do. Try unlocking the phone via fastboot again and if your phone doesn't boot up with the option to lock or unlock or say your already unlocked only means you need a different cable
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
Yeah, you're probably right... I wonder if I can just start from scratch on my work computer without IT catching me and getting freaked out, lol...

That could be it too. I've already determined that the USB type C cables don't work connected to my computer, so it has to be a type A connector on the computer side. The only one I have is from my car, but it's probably the most beat up one. I may buy another from Amazon... Thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
[MENTION=2213988]slaydog[/MENTION]

That's where I downloaded mine from (the link you posted).

This is what it looks like. Sorry, not on PC at the moment but downloaded on my phone to see the file structure.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
Thanks. I have all of the same files, but they are slightly different sizes on my computer. Should be the same if we downloaded them from the same place, though... Maybe my computer just displays them differently :eek:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Haha, yeah, might just be the way it's displaying on my phone. They don't look that different.

A couple things to maybe try. Maybe try repatching the boot.img. perhaps something went wrong in the patching method?

Also, you double-checked that you downloaded the factory image/boot.img that matches your current build?

And one last thing, I didn't specify which boot partition to flash when I did it. I simply did: fastboot flash boot patched_boot.img

I doubt that would matter, but it can't hurt to try anyway.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
I had a similar issue today. I finally got fastboot to work after I sideloaded an ota. And the ota failed because it was older than 8.1 I was on. But presto the fastboot worked again. Might be worth a shot. Good luck.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
What are you asking, please elaborate.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Doesn't matter what he's looking for, going around to new devices and trying to get help with a totally different device is laughable. No sense in keeping the conversation around.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
is it really necessary to flash the boot image to slot a and b?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mac796:
I don't think so. I havn't flashed anything to my second slot yet
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] queloo:
Can confirm this also works on 8.1 DP on the OG Pixel (sailfish) using the new method (patched boot.img) .
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Was for me. Any time I tried to flash a patched img without specifically noting the active slot, it bootlooped.

Oddly enough when I'd reflash the stock img without specifying it, it worked fine. Once I told it to flash to slot a, it booted fine

---------- Post added at 12:47 PM ---------- Previous post was at 12:46 PM ----------

The current slot changes between system updates
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mac796:
[/COLOR]

The current slot changes between system updates[/QUOTE]

Not for people like me that don't take the OTA and just always flash the factory image manually
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Not for people like me that don't take the OTA and just always flash the factory image manually[/QUOTE]I hope that we get a working twrp soon to flash roms from there

It will be a pain in the ass to go clean everytime lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WorldOfJohnboy:
OK thanks to the help of others replying to me and reading other posts, I was able to successfully do the Root method found in the OP of this thread. For me, here were my exact steps:

-Downloaded the Pixel 2 XL taimen full image with November Security updates.

-(If not done already) Update your adb and Fastboot files using Android Studio (I had already done so in order to sideload the OTA)

-Extracted the boot.img from that file, copied it to my P2XL storage.

-Installed/ran Magisk 5.4.1 and patched the boot.img file.

-Copied Patched Boot image to my PCs "Platform-Tools" directory

-Rebooted to the Bootloader on my P2XL

-Fastboot wasn't seeing my phone, so updated Windows Drivers using the Zip found at: https://developer.android.com/studio/run/win-usb.html then Restarted the Bootloader

-Ran the Flash command

-Profited!

Just wanted to give some more insight to those that may need it and thank everyone for helping me get through the process. Ad Blocking and Full backups will now commence! :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] metalcated:
Moderator maybe stick these posts? ;)

---------- Post added at 12:03 PM ---------- Previous post was at 12:02 PM ----------

These...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matthewd769:
I was just asking if ANYONE had experience unlocking BL ... the S8 and S8+ are still locked and i know the pixel comes with OEM unlock. Was just looking for some help for our device. One person decided to have his 15 sec of fame to blast me we have our own forum ... anyway i figure if i can spread the word .... never know.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] peter_dk01:
What did you use for a boot image? I can't find an official 8.1 download. I got mine OTA.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matslarson:
*Deleted* false alarm due to Substratum wonkiness, it works
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] corywf:
On the beta site

https://developer.android.com/preview/download.html
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abogrhen:
this "I do not own either Pixel 2 or Pixel 2 XL, so testing is limited. " probably confused him:p

thanks for the good work

and thanks for topjohnwu for magisk :good::good::good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Rooted using the stock boot.img
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jrbxx7:
Transaction id 9R12932460578032M thanks for your efforts!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] corywf:
Worked for me on 8.1 with stock kernel!

edit: AdAway v3.2 works also.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Taebom:
So do we neep to flash the patched boot image in twrp? I installed magisk manager then hit install then patched image then patched boot image and then it creates it and doesn't flash. I then try flash in twrp and i can't get it. .What am i missing?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matslarson:
No, you pull the patched boot image off the phone, then reboot to bootloader

Run "fastboot flash boot patched_boot.img"
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Taebom:
Thank you very much sir! :highfive:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matthewd769:
do you check your messages?? i wanted to ask a question not related to the XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] androidfilesharing:
Magisk manager keeps FC'ing on me. I am using the 8.1 preview which others have stated works. I am also using the Magisk manager from the OP and following the directions to a "T." Is anyone else experiencing this?

Edit: Now it simply says that it is unpacking the boot image, detecting a Sony ELF32 format and then !Please use BootBridge from [MENTION=2233641]AdrianDC[/MENTION] to flash Magisk

Failed!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] busarida123:
Does anyone have a the stock 8.0 img so I dont have to download the whole factory img?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TTA1326:
Ok, my dumb question lol. I've never used Magisk before, only SuperSU. Since this is root, does this enable the standard su command via adb shell? So I can edit build.prop and set my tethering free?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sharkie405:
Just another confirmation that it works on 2 XL 8.1.0! Thank you to all who put in the work and testing to get this up and running! You guys are awesome!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] PhoenixPath:
Really best to have factory image on hand with something like this in case things go sideways. Experience taught me that lesson the hard way. :D
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
I have the same issue.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matt1313:
Ok please confirm as the thread is excitingly bouncing around.

This is just SU through magisk, correct?

Can I also install TWRP after and flash files/adjustments that will stick after reboot?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bryantjopplin:
I would say root through magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
Some Pixel 2s also come without OEM Unlock because they are tied to Verizon. To my knowledge, no one has even figured out how to unlock those Pixels...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Jikenda:
If I'm on the 8.1 DP, can I just extract the boot.img from the Nov security patch update and use that or do I have to use the one from the 8.1 DP? I didn't see anything about this and was curious.

Thanks for any input.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mitchdickson:
The OP states "Select your stock boot image file".
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Nov Security patch was for 8.0 not for 8.1. Use the boot.img from the exact factory image you are running
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Jikenda:
Thanks guys, I don't know where my head is at today. I forgot the patch was for 8.0.

Dumb question, but thanks for answering. I think I would've realized it when I had the images and was about to flash, but you never know because it's a Monday!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Waxillium:
So I'm new to how Magisk works. Rooting the new pixel was successful (thanks for the guide by the way), but I have a couple quick questions.

-I have a notification that a system update is available. Will downloading this update break root, even if it's the same Android version (8.0.0) and appears to be a bug fix patch? My understanding is that magisik modifies only the boot files, so if these files are untouched by the update, is my root status safe?

-Follow up: Are there any updates that are safe to install, or should I simply turn off all updates and update manually by downloading eatch patch from Google then modifying the boot.img as before?

Thanks in advance!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
If your already rooted on November 5th update, then I would just disregard it. It's unlikely that it would download and install anyways. I personally turn off the "Automatic system updates" in the developer options section, and just use fastboot to manually update my phone when the factory images come out. We will have to patch the boot.img's with magisk until TWRP can decrypt our system, allowing us to flash root and roms :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] EXV:
In the bootloader it says my phone is "locked" but I bought the phone unlocked off the Google Store and the switch in Developer Options is ticked for unlocking the bootloader. I can't fastboot the patched image because it's "locked". Do I really need to unlock the bootloader considering I'm on TMobile, bought this off Google Store, and have the option to unlock the bootloader ticked in Developer Settings?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
Yes.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galaxys:
You have to do both Settings and Fastboot!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
I'm rooted! In the end, I guess it was the cable. I had tried a couple of others, but I went out and bought a brand new one from Walmart for three and a half bucks, hooked it up and everything worked. I doubted it, because I had been able to unlock the bootloader and pull files with ADB etc using the old cables, but everything just became easy with the new one. Thank you to everybody for your help, and I hope that this will help someone else in the future :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shindiggity:
Doing it in settings doesn't unlock your bootloader
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
No, you purchased a phone with an unlockable bootloader from Google. The bootloader is locked unless you flip the unlock bootloader switch in Settings/Developer Options and then fastboot unlock your phone. Then you will have a phone with an "unlocked" bootloader.

No, it won't boot, they have different boot.img files. You need to extract and patch the boot.img from the 8.1 DP1 factory image.

Most of us have unlocked the BL, since we purchased a Pixel 2 or Pixel 2 XL from Google with an unlockable bootloader. With our phones, the bootloader is unlockable by flipping a toggle in Developer settings and using fastboot to unlock.

Those unfortunate souls who purchased their phones from Verizon or purchased the Verizon version from Google for some strange reason are stuck with a locked bootloader, probably until they purchase a new phone.

If you own an S8 and you have a locked bootloader, you probably are in the same position. Your bootloader can't be unlocked unless Samsung or your carrier publish the unlock codes for that phone. Probably won't happen. If you want to unlock and root your phone, you need to purchase a phone with an unlockable bootloader. Sorry, but those are the facts!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlokos:
I'm on Verizon and bought my device from Google without the Verizon Sim card. I put my Sim card from my Shamu into the phone and unlocked my device without any issues.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
Yeah, because it DOES have OEM Unlock if you got it from Google...

I was just trying to explain to the other guy that if he came here looking for tips on how to unlock a phone that's not supposed to be unlocked, he's probably out of luck.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mackentosh:
Congrats! A lot of folks don't believe that majority of their problems is due to the cable.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] llee8820:
Sorry if this question has been asked before. I'm interested in rooting (brand new) but unsure how OTA updates will affect the root? From my brief searching, it seems I can't just update normally through the system updates. Is it hard to sideload OTA updates in root? Thank you.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] calbruc:
Has anyone tried this method of installing Magisk for the OTA update? Is there any reason to believe it might not work?

https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mikelikesbikes:
Thank you. That has to be what I did wrong to end in a boot loop.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Yes it worked for me.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Interestingly, I stopped by a Verizon store today and looked at the settings for the Pixel 2 XL. I was not even able to access Developer Settings on that phone. Tried the 5 click trick on the Android version, but it didn't work. Locked down really tight.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Thanks for the update. I am glad you figured it out.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matthewd769:
Thanks for the reply, i know all those facts. Im just looking to spread the word to see if there are peeps on XDA that might be able to help us.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] shag_on_e:
Great work! I was able to easily patch the latest boot.img then flash in bootloader and bam all set. Once again great work and thank you!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Because it's a demo unit
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Humm! Just out of curiosity, what's different about genuine VZW Pixell 2 XLs?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
Locked bootloader
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] snovvman:
Manually flashed to November patch. Installed Magisk Manager from OP. Launched Magisk Manager, shows "Magisk is not installed" and "Not rooted" as expected. However, there is no option to patch the boot. What am I missing? Thanks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] DodoGTA:
That's crazy :eek:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Lawlrus:
Are you asking what's different between the vzw demo unit and a vzw retail unit? Or the difference between a vzw retail unit and the Google non carrier variant ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mcgrabowski:
What do you mean by no option? You have to download the full image for the version you're running from the Google images page and extract the boot.img file, transfer it to your phone to patch, then flash the patched_boot.img file to your phone with fastboot.

Edit: if you're not finding it, you need to click on install, then install again, then patch boot image file and select the boot.img file you transferred to your phone.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] snovvman:
*Where* do I "Press Install > Install > Patch Boot Image File"? I presume Magisk Manager? If so, when I launch Magisk Manager, there is no option to "Install > Install". As my previous post stated, after I install Magisk Manager and launch it, I see two expected messages ("Magisk is not installed" and "Not rooted"). When I tap menu, I see Magisk (which returns me to the previous screen), Settings, and About. Drilling down, there are no options to install.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
Post a screenshot, because it is there and obvious... so you must be seeing something other than what is expected.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mcgrabowski:
Yes, it sounds like something must be messed up with his installation or something.

Should look looks this...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
My thought was that it was better to let them post the screenshot so we don't add to the confusion with those green check marks and stuff.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] snovvman:
Thanks. Images are attached. I scaled them down so they don't look huge.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
Are you doing any "weird" theme type stuff like Substratum or something? Try the silly easy stuff like reboot the phone and/or uninstall and reinstall Magisk from the OP (that is the one from the OP, right?)?

...hey, at least you're not blind! :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] snovvman:
The screenshot you posted would require the zip to be flashed via TWRP, or am I wrong? With the November patch, the alpha TWRP no longer loads properly for me (also observed by others and discussed in the TWRP thread). How would one flash/install the Magisk-v14.4(1444).zip without TWRP/adb sideload?

Geez.... I've been doing this for so long and have always figured things out, I feel like an idiot :eek:

Nothing weird--no Substretum. The phone is off of a fresh November full image flash and wipe. Not yet my daily driver. Yes, the files are from the OP.

I may not be blind, but I seem to be clueless :confused:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
I am new to Magisk, so I am not sure what it checks for in the app. In these cases, it's usually something simple and easy to overlook...

Did you remember to unlock the bootloader? Is USB debugging enabled? Try reinstalling the Magisk APK from the first post?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] snovvman:
Bootloader unlocked, even critical. USB debug enabled. I've tried reinstalling Magisk several times after re-downloading from OP.

The OP has two attached files: The Magisk Manager apk and zip. Based on my experience, the zip is flashed via twrp or adb sideload (which requires twrp).

The screenshot posted by [MENTION=3276020]mcgrabowski[/MENTION], for it to look that way, again based on my experience, would require the zip to be previously flashed.

Let me try to ask the question another way:

From a clean flash and first boot, all I did was to install Magisk Manager. Did I need to do something else?