Last active
October 21, 2023 15:00
-
-
Save roblav96/0f90f2457ec63df8d6ff17a7f022d180 to your computer and use it in GitHub Desktop.
Skip reboot while flashing Android Factory Images to dual slot Google Pixel devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "🌕 Flashing -> SLOT B" | |
fastboot --set-active=b | |
sleep 1 | |
fastboot reboot-bootloader | |
sleep 10 | |
fastboot flash bootloader bootloader-*.img | |
fastboot reboot-bootloader | |
sleep 10 | |
fastboot flash radio radio-*.img | |
fastboot reboot-bootloader | |
sleep 10 | |
fastboot -w --disable-verity --disable-verification --skip-reboot update image-*.zip | |
fastboot reboot-bootloader | |
sleep 10 | |
echo "✅ SLOT B" | |
echo "🌕 Flashing -> SLOT A" | |
fastboot --set-active=a | |
sleep 1 | |
fastboot reboot-bootloader | |
sleep 10 | |
fastboot flash bootloader bootloader-*.img | |
fastboot reboot-bootloader | |
sleep 10 | |
fastboot flash radio radio-*.img | |
fastboot reboot-bootloader | |
sleep 10 | |
fastboot -w --disable-verity --disable-verification --skip-reboot update image-*.zip | |
fastboot reboot-bootloader | |
sleep 10 | |
echo "✅ SLOT A" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment