Despite having ancient phones still running strong with the latest LineageOS, Oneplus 9 is the only device that managed to brick both on it's own and during initial setup.
Both events appear to be operator error.
The device (seemingly) bricked on it's own during the middle of use.
Brick Symptoms:
Pre-requisites (notes from brick #1)
bash
./payload-dumper-go OnePlus9Oxygen_22.O.13_OTA_0130_all_2111112106_03a66541157c4af5/payload.bin
Problem
The culprit
bash
fastboot flash dtbo dtbo.img
fastboot flash vendor_boot vendor_boot.img
Fix
Messages encountered during the unbrick process
angela@debian$ ~/Downloads: fastboot -w
Erasing 'userdata' FAILED (remote: 'Erase of userdata is not allowed in snapshotted state')
fastboot: error: Command failed
fastboot snapshot-update cancel
Wipe everything (per the instructions):
angela@debian$: fastboot -w
Erasing 'userdata' OKAY [ 0.206s]
/usr/lib/android-sdk/platform-tools/make_f2fs failed with status 1
fastboot: error: Cannot generate image for userdata
Invalid sparse file format at header magic
I already knew the partitions were jacked up, so I ignored this and waited for the images to process. It occurred on these steps, but the flash of the images were still successful:
fastboot flash product product.img
fastboot flash system system.img
fastboot flash system_ext system_ext.img
Now, when I booted back into the OS it was stuck on the boot animation. I waited about 5 mins, boot into fastboot > then recovery and wiped everything -- cache, system, files, etc.
Boot animation took about a minute the next run and then boot into Oxygen OS.
Note to self: Apparently the 'first boot' can take a while, but typically no more than 15 mins.
Phone was fully operational and running on it's original version of Oxygen OS / Android 11.
Boot into fastboot (unplug from all USB sources, hold both volume buttons down first, then begin holding power button down)
Once in Lineage recovery, I saw it was using slot b
bash
adb reboot bootloader
bash
fastboot devices
Now, check the active slot:
fastboot getvar current-slot
current-slot: b
Finished. Total time: 0.004s
Set it back to a and see what happens:
fastboot --set-active=a
Click the power button to boot normally
... I watched it and saw it clearly looped - something is wrong with slot a!
After doing an OTA update, slot a was "repaired" Magisk app was still present, but root was lost & had to be redone
After fixing brick #1, I should have done a factory reset.
My operating system of choice is Debian, Lineage's wiki explicitly states older versions of fastboot don't auto push to slot a & b simultaneously.
Manual a/b flashing for Magisk setup (proper commands for older fastboot versions):
fastboot flash boot_a magisk_patched-[random keystrokes].img
fastboot flash boot_b magisk_patched-[random keystrokes].img
fastboot flash vbmeta_a --disable-verity --disable-verification vbmeta.img
fastboot flash vbmeta_b --disable-verity --disable-verification vbmeta.img