[Google Pixel 2 XL Questions & Answers] flyoffacliff:
EDIT: I ran this tool and it brought the phone back to life! Not sure why the flash all script is broken.

I will keep this thread open and post the log that this tool generated and hopefully the community can figure out what happened.

I noticed the all-in-one tool flashed some additional partitions like "dtbo" that the flash all script did not.

Just got a used device, figured i'd unlock bootloader and update it via fastboot instead of OTA. Unlocked bootloader, ddownloaded image from Google site, ran flash-all.bat. Now when device starts, right after the bootloader unlocked warning, I get the Google logo, then device is corrupt and untrusted warning, then a bootloop. Trying to clear the cache does not work (see error in output below). Clearing data via recovery works, but does not help. I have a fair amount of experience with this. What am I missing!?

What I have already tried:

* Update fastboot to latest version:

> fastboot --version
fastboot version eac51f2bb6a8-android

* Try Different Cable/USB Port

* Try running "fastboot flashing unlock_critical":

* Using the July 2019 update instead of the latest

* Google research

Sometimes I get this from the flash all command. Sometimes writing user-data works, but clearing cache gives "Error: Check device Console":

target reported max download size of 536870912 bytes
sending 'bootloader' (36356 KB)...
OKAY [ 0.795s]
writing 'bootloader'...
OKAY [ 0.556s]
finished. total time: 1.354s
rebooting into bootloader...
OKAY [ 0.002s]
finished. total time: 0.003s
target reported max download size of 536870912 bytes
sending 'radio' (60388 KB)...
OKAY [ 1.285s]
writing 'radio'...
OKAY [ 0.408s]
finished. total time: 1.872s
rebooting into bootloader...
OKAY [ 0.002s]
finished. total time: 0.004s
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.img'
archive does not contain 'system.sig'
W/ ( 7216): Zip: unable to truncate file to 357556432: File too large
failed to extract 'vendor.img': I/O Error
Creating filesystem with parameters:
Size: 56946044928
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 13902843
Block groups: 425
Reserved block group size: 1024
Created filesystem with 11/3481600 inodes and 264598/13902843 blocks
error: file_write: write: No space left on device
Erase successful, but not automatically formatting.
Can't determine partition type.
FAILED (remote: GetVar Variable Not found)
--------------------------------------------
Bootloader Version...: TMZ30l
Baseband Version.....: g8998-00020-1912122233
Serial Number........: 906KPJP2073036
--------------------------------------------
checking product...
OKAY [ 0.002s]
checking version-bootloader...
OKAY [ 0.002s]
checking version-baseband...
OKAY [ 0.003s]
sending 'boot' (40960 KB)...
OKAY [ 0.865s]
writing 'boot'...
OKAY [ 0.250s]
sending sparse 'system' (524284 KB)...
OKAY [ 12.159s]
writing 'system'...
OKAY [ 3.249s]
sending sparse 'system' (524284 KB)...
OKAY [ 12.145s]
writing 'system'...
OKAY [ 3.265s]
sending sparse 'system' (524284 KB)...
OKAY [ 12.331s]
writing 'system'...
OKAY [ 3.247s]
sending sparse 'system' (524284 KB)...
OKAY [ 12.289s]
writing 'system'...
OKAY [ 3.262s]
sending sparse 'system' (340228 KB)...
OKAY [ 7.984s]
writing 'system'...
OKAY [ 2.102s]
erasing 'userdata'...
OKAY [ 1.127s]
sending 'userdata' (138830 KB)...
OKAY [ 2.923s]
writing 'userdata'...
FAILED (remote: buffer overreads occured due to invalid sparse header)
finished. total time: 78.283s
Press any key to exit...

Log from successful flash with all-in-one tool:

Sending 'bootloader_a' (36356 KB) OKAY [ 0.792s]
Writing 'bootloader_a' OKAY [ 0.547s]
Finished. Total time: 1.412s
Rebooting into bootloader OKAY [ 0.000s]
Finished. Total time: 0.005s
Sending 'radio_a' (60388 KB) OKAY [ 1.325s]
Writing 'radio_a' OKAY [ 0.397s]
Finished. Total time: 1.897s
Rebooting into bootloader OKAY [ 0.000s]
Finished. Total time: 0.006s
--------------------------------------------
Bootloader Version...: TMZ30l
Baseband Version.....: g8998-00020-1912122233
Serial Number........: 906KPJP2073036
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.001s]
Checking 'version-bootloader' OKAY [ 0.001s]
Checking 'version-baseband' OKAY [ 0.001s]
Setting current slot to 'a' OKAY [ 0.009s]
extracting boot.img (40 MB) to disk... took 0.277s
archive does not contain 'boot.sig'
Sending 'boot_a' (40960 KB) OKAY [ 0.891s]
Writing 'boot_a' OKAY [ 0.253s]
extracting dtbo.img (8 MB) to disk... took 0.023s
archive does not contain 'dtbo.sig'
Sending 'dtbo_a' (8192 KB) OKAY [ 0.178s]
Writing 'dtbo_a' OKAY [ 0.057s]
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.001s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta_a' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_a' OKAY [ 0.002s]
archive does not contain 'vbmeta_system.img'
archive does not contain 'super_empty.img'
archive does not contain 'boot_other.img'
archive does not contain 'odm.img'
archive does not contain 'product.img'
archive does not contain 'product_services.img'
extracting system.img (2380 MB) to disk... took 13.415s
archive does not contain 'system.sig'
Sending sparse 'system_a' 1/5 (524284 KB) OKAY [ 11.907s]
Writing 'system_a' OKAY [ 3.243s]
Sending sparse 'system_a' 2/5 (524284 KB) OKAY [ 11.848s]
Writing 'system_a' OKAY [ 3.248s]
Sending sparse 'system_a' 3/5 (524284 KB) OKAY [ 12.040s]
Writing 'system_a' OKAY [ 3.243s]
Sending sparse 'system_a' 4/5 (524284 KB) OKAY [ 11.884s]
Writing 'system_a' OKAY [ 3.252s]
Sending sparse 'system_a' 5/5 (340228 KB) OKAY [ 7.723s]
Writing 'system_a' OKAY [ 2.115s]
extracting system_other.img (306 MB) to disk... took 2.303s
archive does not contain 'system.sig'
Sending 'system_b' (313556 KB) OKAY [ 7.041s]
Writing 'system_b' OKAY [ 1.940s]
extracting vendor.img (340 MB) to disk... took 2.480s
archive does not contain 'vendor.sig'
Sending 'vendor_a' (349176 KB) OKAY [ 7.777s]
Writing 'vendor_a' OKAY [ 2.166s]
archive does not contain 'vendor_other.img'
Erasing 'userdata' OKAY [ 1.376s]
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 13902843 4k blocks and 3481600 inodes
Filesystem UUID: 09419b40-81a8-11ea-8938-4b5d199bc358
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424

Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'userdata' (4400 KB) OKAY [ 0.095s]
Writing 'userdata' OKAY [ 0.063s]
Rebooting OKAY [ 0.001s]
Finished. Total time: 122.672s
Press any key to exit...