Fastboot Flash-all Bat -
fastboot flash boot boot.img fastboot flash dtbo dtbo.img fastboot flash system system.img fastboot flash vbmeta vbmeta.img fastboot reboot
Most stock firmware requires an unlocked bootloader. Exceptions: "Locked" flashing using signed images from the OEM (rare for end users). fastboot flash-all bat
# Place device in bootloader mode adb reboot bootloader fastboot flash boot boot
When you download a factory image for a Google Pixel (or similar AOSP devices), the file is usually a compressed archive containing various .img files (system, boot, vendor, radio, etc.) and a script file. to reduce risk)
If you only want to reflash the system (not the bootloader, to reduce risk), comment out those lines by adding :: at the beginning of the line:
At the end, the device should automatically reboot into the fresh OS.
