Last active
July 1, 2021 02:48
-
-
Save francioshu/1f6b9dc0f9f5a8d65e777ce381f80940 to your computer and use it in GitHub Desktop.
flash-all.sh
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 | |
adb reboot fastboot | |
fastboot flashing unlock_critical | |
fastboot flashing unlock | |
fastboot flash bootloader bootloader.img | |
fastboot flash bootloader-boot0 bootloader.img | |
fastboot flash bootloader-boot1 bootloader.img | |
fastboot erase env | |
fastboot reboot-bootloader | |
sleep 5 | |
fastboot flashing unlock_critical | |
fastboot flashing unlock | |
fastboot flash dts dt.img | |
fastboot flash dtbo dtbo.img | |
fastboot -w | |
fastboot erase param | |
fastboot erase tee | |
fastboot flash vbmeta vbmeta.img | |
fastboot flash odm odm.img | |
fastboot flash logo logo.img | |
fastboot flash boot boot.img | |
fastboot flash system system.img | |
fastboot flash vendor vendor.img | |
fastboot flash recovery recovery.img | |
fastboot flash product product.img | |
fastboot flashing lock_critical | |
fastboot flashing lock | |
fastboot reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment