[Google Pixel 3a XL Questions & Answers] pongolo:
Need help!

I've tried several times to flash the factory image with the same results each time (flash-all without -w). I've downloaded the factory image again to make sure it wasn't corrupted.

I booted into fastboot via ADB and it got me into fastbootd mode and I tried doing flash-all from there but it rebooted back into regular fastboot after flashing the bootloader and failed again with the same error. I rebooted back into fastbootd and did the update command (fastboot update image-bonito-qp1a.191005.007.zip) directly from there and looks like it went through flashing system_a but failed when writing system_b (Operation not allowed). The phone now reports that the phone is corrupt (Your device is corrupt. It can't be trusted and may not work properly). It just displays the Google logo but nothing else happens. I can get to fastboot but unsure how to get past this issue.

Here's the output when flashing the factory image...

flash-all
target reported max download size of 268435456 bytes
sending 'bootloader_a' (8349 KB)...
OKAY [ 0.691s]
writing 'bootloader_a'...
(bootloader) Flashing Pack version b4s4-0.2-5736883
(bootloader) Flashing partition table for Lun = 0
(bootloader) Flashing partition xbl_a
(bootloader) Flashing partition xbl_config_a
(bootloader) Flashing partition tz_a
(bootloader) Flashing partition aop_a
(bootloader) Flashing partition hyp_a
(bootloader) Flashing partition keymaster_a
(bootloader) Flashing partition cmnlib_a
(bootloader) Flashing partition cmnlib64_a
(bootloader) Flashing partition abl_a
(bootloader) Flashing partition devcfg_a
(bootloader) Flashing partition qupfw_a
(bootloader) Flashing partition storsec_a
OKAY [ 0.607s]
finished. total time: 1.303s
rebooting into bootloader...
OKAY [ 0.070s]
finished. total time: 0.072s
target reported max download size of 268435456 bytes
sending 'radio_a' (73196 KB)...
OKAY [ 5.316s]
writing 'radio_a'...
(bootloader) Flashing Pack version SSD:g670-00025-190805-B-5781381
(bootloader) Flashing partition modem_a
OKAY [ 0.469s]
finished. total time: 5.790s
rebooting into bootloader...
OKAY [ 0.070s]
finished. total time: 0.071s
extracting android-info.txt (0 MB) to RAM...
extracting boot.img (64 MB) to disk... took 0.583s
target reported max download size of 268435456 bytes
archive does not contain 'boot.sig'
archive does not contain 'boot_other.img'
extracting dtbo.img (8 MB) to disk... took 0.047s
archive does not contain 'dtbo.sig'
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting system.img (782 MB) to disk... took 32.955s
archive does not contain 'system.sig'
extracting system_other.img (119 MB) to disk... took 3.449s
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 (462 MB) to disk... took 19.669s
archive does not contain 'vendor.sig'
archive does not contain 'vendor_other.img'
--------------------------------------------
Bootloader Version...: b4s4-0.2-5736883
Baseband Version.....: g670-00025-190805-B-5781381
Serial Number........: XXXXXXXXXX
--------------------------------------------
checking product...
OKAY [ 0.060s]
checking version-bootloader...
OKAY [ 0.057s]
checking version-baseband...
OKAY [ 0.057s]
sending 'boot_a' (65536 KB)...
OKAY [ 2.447s]
writing 'boot_a'...
OKAY [ 0.631s]
sending 'dtbo_a' (8192 KB)...
OKAY [ 0.410s]
writing 'dtbo_a'...
OKAY [ 0.109s]
sending sparse 'system_a' 1/4 (262140 KB)...
OKAY [ 7.744s]
writing 'system_a' 1/4...
FAILED (remote: Partition should be flashed in fastbootd)
finished. total time: 12.159s
Press any key to exit...

Appreciate any help!