[Google Pixel 2 XL Questions & Answers] swapavi:
I tried to root using magisk on a brand new 2xl, so i unlocked the bootloader and then booted to twrp, like the instructions say to.

Inside twrp, I flashed magisk 16 and then flashed the twrp installer zip right after. I then rebooted my phone, but instead of booting up into the system, it kept rebooting to twrp.

Also, when first unlocking bootloader, I used the unlock critical command and rebooted, but it showed my bootloader still being unlocked afterward (even though it wiped my data) so I went back to fastboot and did flashing unlock.

I tried to do the fastboot unlock critical again but it keeps saying my device is already unlocked (because it is)

I'm afraid to relock bootloader and then try the unlock critical again because the phone won't boot up to allow to check oem unlock in Dev settings

So I downloaded the latest factory image and tried to flash it (using my macbook) and it keeps giving me an error when I try to use the flash-all.sh

There's so much in the image zip file to flash individually and idk the commands for them all.

There error I'm getting is this

./flash-all.sh

target reported max download size of 536870912 bytes

sending 'bootloader_b' (36344 KB)...

OKAY [ 0.935s]

writing 'bootloader_b'...

OKAY [ 0.389s]

finished. total time: 1.324s

rebooting into bootloader...

OKAY [ 0.000s]

finished. total time: 0.000s

./flash-all.sh: line 19: ./sleep: No such file or directory

ERROR: could not clear input pipe; result e00002eb, ignoring...

ERROR: could not clear output pipe; result e00002d8, ignoring....

ERROR: usb_write failed with status e00002d8

ERROR: usb_write failed with status e0004061

ERROR: usb_write failed with status e0004061

ERROR: usb_write failed with status e00002d9

ERROR: usb_write failed with status e00002d9

ERROR: usb_write failed with status e00002c0

target didn't report max-download-size

sending 'radio' (60428 KB)...

ERROR: usb_write failed with status e00002c0

FAILED (command write failed (Invalid argument))

finished. total time: 0.000s

< waiting for any device >

rebooting into bootloader...

OKAY [ 0.000s]

finished. total time: 0.000s

./flash-all.sh: line 22: ./sleep: No such file or directory

ERROR: could not clear input pipe; result e00002eb, ignoring...

ERROR: could not clear output pipe; result e00002d8, ignoring....

ERROR: usb_write failed with status e00002d8

ERROR: usb_write failed with status e0004061

ERROR: usb_write failed with status e0004061

extracting android-info.txt (0 MB) to RAM...

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

extracting boot.img (40 MB) to disk... took 0.703s

ERROR: usb_write failed with status e00002c0

target didn't report max-download-size

ERROR: usb_write failed with status e00002c0

archive does not contain 'boot.sig'

ERROR: usb_write failed with status e00002c0

extracting dtbo.img (8 MB) to disk... took 0.033s

ERROR: usb_write failed with status e00002c0

archive does not contain 'dtbo.sig'

ERROR: usb_write failed with status e00002c0

archive does not contain 'dt.img'

archive does not contain 'recovery.img'

extracting system.img (1936 MB) to disk... took 42.801s

ERROR: usb_write failed with status e00002c0

archive does not contain 'system.sig'

ERROR: usb_write failed with status e00002c0

extracting vbmeta.img (0 MB) to disk... took 0.000s

ERROR: usb_write failed with status e00002c0

archive does not contain 'vbmeta.sig'

ERROR: usb_write failed with status e00002c0

extracting vendor.img (346 MB) to disk... took 8.384s

ERROR: usb_write failed with status e00002c0

archive does not contain 'vendor.sig'

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

ERROR: usb_write failed with status e00002c0

--------------------------------------------

ERROR: usb_write failed with status e00002c0

getvar:version-bootloader FAILED (command write failed (Invalid argument))

finished. total time: 0.000s

Anyone able to help with this?

I came from a Nexus 6p and it was dead easy to flash the firmware. There was only system, vendor, boot, and recovery..

But for this pixel 2 xl there's at least 20 different images that I don't know how to flash.