How do I reflash both partitions of a Google Pixel 6 Pro device in one go?
If I follow the instructions at https://developers.google.com/android/images, I have to:
- reflash the first, default partition (a or b) using flash-all.bat
- return to the bootloader (which means either (A) turning the device off after it automatically reboots and booting back into the bootloader using the hardware buttons or (B) doing a "false setup" of the device (after it automatically reboots) and returning to the bootloader via Android's Developer Options screen and the
adb reboot bootloader
command - set the inactive partition to the active partition using
fastboot set_active a
orfastboot set_active b
- reflash the second, remaining partition using flash-all.bat
Is there a way to combine these reflashing steps to make reflashing both partitions less troublesome?
(Note: My goal with reflashing both partitions instead of one is to eliminate malware, so simply nuking and regenerating both partitions from scratch would also be a workable solution, but I don't know how to do that either.)