[Google Pixel 2 Questions & Answers] ashman84:
Hey Everyone,

It's been a while since I've flashed a phone but I recently bought the pixel 2 and I was having a lot of freezing + restarting issues right from the start. I thought it was probably because the latest December update may be causing issues. Rather than return it, I thought I'd at least try to flash a clean factory image and see if that helped. My phone is a stock Pixel 2 64GB (not tied to any service provider). I first downloaded the latest adb drivers and installed them:

Android Debug Bridge version 1.0.39

Version 0.0.1-4500957

Then I downloaded the latest stock image from the Android website :

8.1.0 (OPM1.171019.011, Dec 2017)	- f74dd4fd9c7816a694901b01ba922c5033acb972f5fe5e51630400e4bfb07700

unpacked the zip file

Ran adb reboot bootloader

It loaded into Bootloader successfully

Then ran fastboot flashing unlock

that unlocked the bootloader successfully. Details in first picture:

Then went to the folder in which the image was unpacked and ran flash-all.bat.

Here I ran into an error with vendor_b

Here's the dump:

target reported max download size of 536870912 bytes

sending 'bootloader_b' (38644 KB)...

OKAY [ 0.968s]

writing 'bootloader_b'...

(bootloader) Updating: partition:0 [MENTION=702555]0000[/MENTION]2000 sz=0000B000

(bootloader) Updating: partition:1 [MENTION=702555]0000[/MENTION]D000 sz=0000B000

(bootloader) Updating: partition:2 [MENTION=5431947]00018[/MENTION]000 sz=0000B000

(bootloader) Updating: partition:3 [MENTION=564588]000[/MENTION]23000 sz=0000B000

(bootloader) Updating: partition:4 [MENTION=564588]000[/MENTION]2E000 sz=0000B000

(bootloader) Updating: partition:5 [MENTION=564588]000[/MENTION]39000 sz=0000B000

(bootloader) Updating: cmnlib64 [MENTION=564588]000[/MENTION]44000 sz=00048000

(bootloader) Updating: cmnlib [MENTION=564588]000[/MENTION]8C000 sz=00037000

(bootloader) Updating: devcfg [MENTION=564588]000[/MENTION]C3000 sz=0000F000

(bootloader) Updating: hyp [MENTION=564588]000[/MENTION]D2000 sz=00040000

(bootloader) Updating: keymaster [MENTION=4422149]0011[/MENTION]2000 sz=00046000

(bootloader) Updating: lockbooter [MENTION=290768]001[/MENTION]58000 sz=00016000

(bootloader) Updating: pmic [MENTION=290768]001[/MENTION]6E000 sz=0000D000

(bootloader) Updating: rpm [MENTION=4848019]0017[/MENTION]B000 sz=0003A000

(bootloader) Updating: tz [MENTION=290768]001[/MENTION]B5000 sz=001DB000

(bootloader) Updating: xbl [MENTION=2077256]003[/MENTION]90000 sz=003A2000

(bootloader) Updating: apdp [MENTION=262411]0073[/MENTION]2000 sz=00004000

(bootloader) Updating: msadp [MENTION=262411]0073[/MENTION]6000 sz=00004000

(bootloader) Updating: hosd [MENTION=262411]0073[/MENTION]A000 sz=01E1E000

(bootloader) Updating: abl @02558000 sz=00065000

OKAY [ 0.902s]

finished. total time: 1.873s

rebooting into bootloader...

OKAY [ 0.002s]

finished. total time: 0.003s

target reported max download size of 536870912 bytes

sending 'radio_b' (60428 KB)...

OKAY [ 1.915s]

writing 'radio_b'...

(bootloader) Updating: modem [MENTION=6558468]00001[/MENTION]000 sz=03B01000

OKAY [ 0.540s]

finished. total time: 2.459s

rebooting into bootloader...

OKAY [ 0.002s]

finished. total time: 0.002s

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

extracting boot.img (32 MB) to disk... took 0.627s

target reported max download size of 536870912 bytes

archive does not contain 'boot.sig'

archive does not contain 'boot_other.img'

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

archive does not contain 'dtbo.sig'

archive does not contain 'dt.img'

archive does not contain 'recovery.img'

extracting system.img (1920 MB) to disk... took 13.534s

archive does not contain 'system.sig'

extracting system_other.img (568 MB) to disk... took 4.217s

archive does not contain 'system.sig'

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

archive does not contain 'vbmeta.sig'

extracting vendor.img (347 MB) to disk... took 2.421s

archive does not contain 'vendor.sig'

archive does not contain 'vendor_other.img'

wiping userdata...

mke2fs 1.43.3 (04-Sep-2016)

Creating filesystem with 13933563 4k blocks and 3489792 inodes

Filesystem UUID: f11aec18-ea16-11e7-baf7-f7ba65016da5

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

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

Bootloader Version...: mw8998-002.0066.00

Baseband Version.....: g8998-00164-1710262031

Serial Number........:

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

checking product...

OKAY [ 0.001s]

checking version-bootloader...

OKAY [ 0.003s]

checking version-baseband...

OKAY [ 0.003s]

sending 'boot_b' (32768 KB)...

OKAY [ 0.710s]

writing 'boot_b'...

OKAY [ 0.002s]

sending 'dtbo_b' (8192 KB)...

OKAY [ 0.475s]

writing 'dtbo_b'...

OKAY [ 0.002s]

erasing 'system_b'...

OKAY [ 0.245s]

sending sparse 'system_b' 1/4 (524284 KB)...

OKAY [ 11.908s]

writing 'system_b' 1/4...

OKAY [ 0.002s]

sending sparse 'system_b' 2/4 (524284 KB)...

OKAY [ 14.046s]

writing 'system_b' 2/4...

OKAY [ 0.001s]

sending sparse 'system_b' 3/4 (524284 KB)...

OKAY [ 13.996s]

writing 'system_b' 3/4...

OKAY [ 0.002s]

sending sparse 'system_b' 4/4 (393508 KB)...

OKAY [ 11.145s]

writing 'system_b' 4/4...

OKAY [ 0.001s]

erasing 'system_a'...

OKAY [ 1.916s]

sending sparse 'system_a' 1/2 (524284 KB)...

OKAY [ 11.917s]

writing 'system_a' 1/2...

OKAY [ 0.002s]

sending sparse 'system_a' 2/2 (57592 KB)...

OKAY [ 3.716s]

writing 'system_a' 2/2...

OKAY [ 0.002s]

sending 'vbmeta_b' (4 KB)...

OKAY [ 0.264s]

writing 'vbmeta_b'...

OKAY [ 0.001s]

erasing 'vendor_b'...

OKAY [ 0.111s]

sending 'vendor_b' (355428 KB)...

FAILED (data write failure (Unknown error))

finished. total time: 79.559s

Press any key to exit...

Now I'm facing the issue in the second screen.

I still have access to fastboot. I've tried to re-flash the image but same error. Can someone please help me here. I can't use my phone anymore.