yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Wilazn:
I'm assuming i flash the patched_boot.img to the Boot A Partition?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] radionerd:
No worries, there were others claiming the same thing earlier in this thread.

I didn't want to have to reset everything, so I rooted without unlocking critical :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dmarden:
If all steps followed and all things setup properly, you don't have to specify...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
Is this still the recommended way to upgrade to OTAs once we have magisk installed?

https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
I fastbooted TWRP and sidloaded the patched_boot.img file on 8.1. I am hanging on the G screen.

Not sure next step. Tried fastboot flash boot patched_boot.img and fastboot flash boot boot.img

both stayed on the boot screen and when I manually rebooted they hung on the G screen after the boot animation completed.

Any suggestions?

Thanks,
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Ahhhhh, so happy right now! Donation incoming.

Thanks [MENTION=4470081]topjohnwu[/MENTION]
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dyingearth:
Sideload the November OTA and redo the entire process by extracting the boot.img from the November factory image. Works great.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Try running, in fastboot getvar current-slot to see what your current active slot is. Then fastboot flash boot_a or _b whatever your active slot is. I was on the 1st Pixel XL and I learned to flash the active slot. Same here. I too have had boot issues, and have surived. On the safe side for the boot.img, I fastboot flash to both slot a and slot b.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Thanks, I got it working by flashing everything in the zip. Then rooted by flashing the Magical 14.4 patched_boot.img
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] AySz88:
Is there confirmation that this procedure preserves SafetyNet passing? I saw one comment about unexpectedly failing but no followup.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
It works.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] neo_lithic3K:
I figured it out. Tried everything I could think of, but nothing worked. Finally, I flashed the Nov factory image and included wipe as well.

I'm now rooted on the Nov build (OPD1.170816.025) with Magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TEFjLONjDON:
does any one know if simply re-locking with fastboot flashing lock_critical will wipe data?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] raw2000j:
Flash the image how? Im used to samsung phones you install apk on phone then youvsaid flash image I dont understand that part can you explain?thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ne0ns4l4m4nder:
Reboot to bootloader open command prompt with ADB, fastboot flash boot boot.img replace boot.img with name of your boot.img
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
You need to flash using a PC using Adb. Install this on your computer.

https://developer.android.com/studio/releases/platform-tools.html

Get Factory Images here

https://developers.google.com/android/images

Beta Images (8.1) here

https://developer.android.com/preview/download.html

Read this

https://www.androidexplained.com/pixel-2-fastboot-mode/

https://android.gadgethacks.com/how...actory-images-android-using-fastboot-0175277/

https://xdaforums.com/showthread.php?t=1752270

Make sure you have unlocked the bootloader. Using ADB (Instructions are in this thread if you need help let me know).

Then follow instructions in OP. It is really pretty simple. Make sure you use the factory image and not the OTA. Get the boot.img by unziping the factory image and then unzip file called image. In that folder is the boot.img. Load to Google drive and download the file to your phone.

Install the magisk APK and install. Then from this app "Press Install > Install > Patch Boot Image File, and select your stock boot image file" You have just downloaded. Now your boot.img has just been patched. Transfer the patch_boot.img to your computer into the same folder that contains ABD Tools.... You can use Google Drive again if you like to do this. On your phone under Settings and then Developer Options turn on USB Debugging. Now connect your phone to the PC and switch from charging to file transfer (MTP) on your phone in Settings and then Developer Options. You will find this under Select USB Configuration. Ok the connection. Hold the shift key and right click and open command prompt here. Then in the terminal type.

"adb devices" press enter (without quotes) and you will see your phone. Now type "adb reboot-bootloader" (without quotes) press enter and then "fastboot flash boot patched_boot.img" (without quotes) and press enter. "flashboot reboot" (without quotes) press enter. (Or you can reboot using the phone controls.) You should now have root.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nekromantik:
So if you cant unlock bootloader then you wont be able to root ever? Is this correct?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TEFjLONjDON:
If any one needs the boot.img for 8.0 or 8.1 and for some reason simply cant extract them correctly for some reason these links might help.. (Verify these are the appropriate .img's that match your build version before downloading.)

This Link also has build details that make it easy to verify.

there are links to the image(s) in Zip or in IMG format and links to full Factory/Developer images respectively.

8.0

https://desktop.firmware.mobi/device...firmware:13747

(Verify these are the appropriate .img's that match your build version before downloading.)

8.1

https://desktop.firmware.mobi/device...firmware:13775

(Verify these are the appropriate .img's that match your build version before downloading.)

remember the above images must still be patched with Magisk on your device. You then need to ADB pull the patched_boot.img to PC to use for Fastboot. (Fastboot flash patched_boot.img)

In my case I was rooted with Magisk then Joined Dev Beta for 8.1 and installed OTA but did not use remember to open Magisk app during step one of the OTA download to patch the new boot.img before first boot. So I lost root and had no way to extract the .img and make a new patched_boot.img.

The real problem was that I could not download the 8.1 beta firmware to extract the boot.img from because google "Pulled the links!" http://www.androidpolice.com/2017/10/30/google-pulled-pixel-2s-android-8-1-developer-preview-factory-images/

---------- Post added at 09:44 ---------- Previous post was at 09:31 ----------

Don't Run the CF Auto Root Tools. It will not work for our device.(yet)

Just a place I found to obtain the stock files from when all else failed.

Big thanks to Chainfire and firmware.mobi

All rights belong to Chainfire and firmware.mobi
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Yes
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nekromantik:
:eek:

Means il be without root for 6 months!

Until I get unlock code from EE.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bggold:
I have had two instances of my pixel 2 xl reboot. Where are the logs located for magisk to help determine the cause?

Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheGeekyNimrod:
Is anyone having trouble with Magisk not completing the patch of the boot.img or not being able to fastboot a patched image? I'm having all kinds of issues right now. Not sure what's up with it. I've never used Magisk before this device.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Please see post 490 and 492.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] wolverbean:
anyone have a mirror for 8.1 image download for pixel 2 xl
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheGeekyNimrod:
Yeah, been there, and done all that already. Not even related to my issue.

I've had no problem flashing any kernel patched by Magisk until today. I uninstalled everything, deleted folders, etc, and reinstalled Magisk. Finally got one to patch again.

Before that today, I would choose the .img I was using and it would go through unpacking image, then just stop there with an option to close or reboot. I would get the Magisk zip that is created but not the patched boot.img.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheGeekyNimrod:
Example
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
That is weird... I am glad you got it to patch.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheGeekyNimrod:
Yeah, I was messaging with the Flash Kernel guys too. Hadn't had that problem before. Seems to be working for now. Gonna give the device a break and then try again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WorldOfJohnboy:
Ok, I'm hella confused here. Trying to follow the OP instructions, downloaded the latest taimen-opd image from link. Then downloaded MM 5.4.1 and opened the APK. When I choose to install, select patch boot and choose the taimen file. When our goes to patch, MM force closes. What am I missing?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Wilazn:
You need to extract the boot.img from the zip.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Are you choosing the boot.img file?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cmo220:
You have to open the zip file you downloaded, then open the zip file inside that. Then you extract the boot.img file and put it on your phone. That boot.img file it the one you select when using Magisk Manager.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WorldOfJohnboy:
Great, thanks everyone for the quick replies... the boot image extraction part wasn't something that jumped out at me!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] km00000:
I tried this but when I run "fastboot flash boot patch_boot.img" it returns back with this message

target didn't report max-download-size

sending 'boot' (25992 KB)...

FAILED (remote: unknown command)

finished. total time: 0.002s

I've done unlock_critical
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Did you flash boot.img or bootloader-taimen-tmz11f.img or bootloader-taimen-tmz10n.img? You need to flash the boot.img.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] km00000:
i haven't flashed anything. I patched the boot.img that i got from 8.1's factory image. then tried to flash it but it would give me this error
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cwalker0906:
Update fastboot
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dyingearth:
https://developer.android.com/studio/releases/platform-tools.html is where you can find the latest platform-tools for adb and fastboot
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matt1313:
Just wanted to say thanks!!!

Just need arise to work and this phone is better then the best
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mngdew:
Has anyone noticed fingerprint scanner not reading finger prints after rooting?

Mine was having a hard time reading my finger prints to unlock the phone and sign in to bank & credit card apps. I tried I everything, factory reset, flashing the factory image and registering finger prints again , but it always gave me the same problem. As a last resort, I didn't root my phone after a factory reset, and the problem went away.

---------- Post added at 08:14 PM ---------- Previous post was at 08:09 PM ----------

Yes, it will.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
I haven't noticed that problem on walleye
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] radionerd:
Someone posted links to 8.0 and 8.1 boot.img, back a page or two.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dyingearth:
The boot.img must match the version you're running. Also, update your platform tools.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] km00000:
Running build OPP5-170921-005.

boot.img that I'm flashing is from the OPP5-170921-005 image

downloaded the newest platform tools just before trying to flash but no luck

however there's a new error message:

target didn't report max-download-size

sending 'boot' (25992 KB)...

FAILED (remote: Requested download size is more than max allowed

)

finished. total time: 0.003s
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] swooperstar:
fastboot flash boot patched_boot.img

target reported max download size of 536870912 bytes

sending 'boot_b' (25572 KB)...

OKAY [ 0.064s]

writing 'boot_b'...

OKAY [ 0.337s]

finished. total time: 0.401s

All the steps work fine but when I start the phone magisk manager still prompts to install magisk zip and says not rooted.

never mind I had 5.4.0 not 5.4.1. All good and rooted now thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mngdew:
https://developer.android.com/preview/download.html
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
Man I've gotten that error more time than I can count now. Latest Fastboot/ADB, changed cables and ports, I've tried everything...

Unlocked easily, pulled the boot_img file no problem, just won't flash it...

Even that Toolkit doesn't do jack. Everytime it goes to flash something, my phone just turns off and boots into Android... So frustrating...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mackentosh:
Same here
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Brian706:
Are you guys using the platform tools that you download directly from the factory images page? I only ask because previously I was using a smaller package (just adb/fastboot) even though it was the latest version and I had issues flashing the factory images. After I downloaded the platform tools from the Android development page with the extra utilities, I was able to flash no problem.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mackentosh:
Ok now I'm using the platform tools after I enter the final command "fastboot flash boot patched_boot.img" it just sits there. Is that normal? Is it supposed to flash right away
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
Had this problem before, had to go to device manager in the pc, look for your android device, if it has a yellow triangle, right click on it and click update driver.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] imaverik:
New to magisk...

Might be wrong forum but a quick link to how to get and use magisk modules would probably help me out a lot.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
They are in the Magisk manager app. Should be in your app drawer of you have Magisk installed...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Chrisp725:
Root permission issues with Magisk

Thanks for all the great posts and help on here, finally got my Pixel 2 XL rooted. Has anyone had any luck getting Wifi Tether router working? I contacted the creator and sent my log file and apparently there are root permission issues using Magisk preventing WiFi Tether Router from working. This is my #1 reason for rooting. Not sure what to do to fix this. I've never found a better tethering app than Wifi Tether Router.

Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Itachisasuke:
Just use something like Root Explorer and go the /system/build.prop and open it with the built in text editor and add the below to the end.

net.tethering.noprovisioning=true

Then run the following commands using adb after saving and closing Root Explorer

adb shell
su
chmod 644 /system/build.prop
settings put global tether_dun_required 0
exit
adb reboot

Built in Android Tethering should be good to go. Hope this helps.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
But since you are altering a system file, doesn't that screw up Magisk?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Itachisasuke:
No. This is how the Magisk Module enables tethering as well to my knowledge.

You could also just download the Tethering Enabler Magisk Module by [MENTION=2226076]stangri[/MENTION] which has been updated to support Magisk 14.4 and you'd be ready to roll.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
See below.

Your problems may be due to your extraction of the factory image and extraction and modification of the boot image by the Magisk manager. Many have repeated these steps and they do work. So try it again and post your steps in detail. Hopefully, someone here can figure out where you went wrong.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
I just tried this module on 8.1 with stock kernel and ended with boot loop.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Itachisasuke:
Interesting. Might want to let the developer know its not working on 8.1. Others have it working with 8.0 according to his thread.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Chrisp725:
Worked perfectly thank you so much. Great information and help in this forum.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
I think I have a problem... I am trying to flash factory image after a bootloop. And I think adb is turned off in the developer setting. Is there a solution to this? I have the latest platform tools downloaded off Google site. Went thru phone key combination to Apply update from ADB and the phone will not connect to the PC.

Thanks for any help.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Can you put your device into bootloader mode?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Yes. I can go into bootloader and in recovery. I can select Apply update from ADB. When I try to Flash-all.bat I get waiting for device. Any ideas? Thank you so much.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bggold:
Sounds like either old fastboot or a cable issue. Make sure you have the latest version.

Sorry saw your first post you are using the current. Try a different cable.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
First what is your active slot?

run fastboot getvar current-slot

This is a great guide for you to read.

https://xdaforums.com/pixel-2-xl/how-to/guide-unlock-flash-root-pixel-2-xl-t3702418

Step by step this will assist you. You will be fine
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
When I run adb devices I can see it. When I run fastboot getvar current-slot it goes back to waiting for any device. Thanks for the article.

Update: THANK YOU!!! I was able to sideload an OTA. THANK YOU!!!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Great.

Keep the How to handy. lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
OK.... so I can sideload an OTA but I am not permitted to sideload an older OTA. I am on 8.1 and there are no OTA's that I am aware of.... Any other ideas? Thank you so much

UPDATE: I was able to use Fastboot after the OTA.zip failed. Up and running again. Thank you so much.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BoomBucks:
First time Magisk user (coming from SuperSU) and I have to say this is pretty smooth and effortless. I was going crazy without AdAway. A million thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Larzzzz82:
Anyone else having issues with Bluetooth? I finally got it working out of the box and was working very nicely until I rooted
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
I have tried the fastboot getvar current-slot command with no result, also flashing to both the a and b slots that you mentioned elsewhere doesn't work. Did you by chance see the log I PM'd you? You seem to have this figured out, was hoping you could see what I'm doing wrong...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Developer knows custom kernel's not working on 8.1, to make it work he needs Google to release the source. Not sure about the magisk module(s) but that would be a Magisk issue for [MENTION=4470081]topjohnwu[/MENTION].
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
It works here.

fastboot getvar current-slot

current-slot: b

finished. total time: 0.001s

This indicates active slot b. Not sure what your issue may be.

Sorry I just saw your PM .
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mikelikesbikes:
so i thought i followed the op correctly, I guess not. Now i am soft bricked. stuck on bootscreen with access to fastboot. havent ever had to revive a pixel or nexus. anyone got any tips? would be much appreciated
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mcgrabowski:
I would reflash the stock boot.img via fastboot. That ought to fix it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mikelikesbikes:
I did too. that was the first thing i tried. currenty tracking down instructions on google

to be clear fastboot flash boot boot.img correct command?

who knew unbricking the pixel was so easy?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
I'll ask you, but really the question is for anyone using AdAway. Every time I try it, there are a bunch of links that are blocked because of google clicks crap. It ends up being really annoying to get to different blocked sites. An I missing something in setup?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Add the things that are getting blocked to your whitelist.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] BoomBucks:
I'm familiar with that. Very annoying on Google Shopping ads. You can whitelist certain ad services, so the analytics links will work.

Another trick (which works on Twitter) is to tap the broken link a second time. First tap shows the blank page. Going back and trying again will open the link without the analytics step.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Try this in fastboot

fastboot getvar current-slot

if your current slot is a or b

run

fastboot flash boot_a

or

fasboot flash boot_b boot.img

I have had the same issues as you and others have had. I fixed it with flashing the boot,img to the active slot.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] slaydog:
Me either. I got this:

fastboot getvar current-slot

getvar:current-slot FAILED (remote: unknown command)

finished. total time: 0.006s

and

fastboot getvar current-slot

getvar:current-slot FAILED (remote: GetVar Variable Not found)

finished. total time: 0.008s

and

fastboot GetVar current-slot

fastboot: usage: unknown command GetVar

All in rapid succession.

Then I tried flashing to both slots, as you had stated you do sometimes and got this:

fastboot flash boot_b patched_boot.img

target didn't report max-download-size

sending 'boot_b' (25788 KB)...

FAILED (data write failure (Too many links))

finished. total time: 0.065s

and

fastboot flash boot_a patched_boot.img

target didn't report max-download-size

sending 'boot_a' (25788 KB)...

FAILED (command write failed (No error))

finished. total time: 0.052s
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cwalker0906:
Update your fastboot
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Download a copy of the factory image zip file and extract with 7 zip, then find the factory image and fastboot flash each file to the appropriate partition. Take your time and reboot every once in a while. I got my phone to re-boot and restore in this manner. Flashed every damn file, some would not fastboot flash because they are in a protected partition, but don't get discouraged, flash the next one and the next one.

For example "fastboot flash system system.img" "fastboot flash boot boot.img" ect...

After it works, refllash the Magisk patched boot image as: "fastboot flash boot patched_boot.img" to root and restore Magisk.

Good luck!