Skip to content

Instantly share code, notes, and snippets.

@RushOnline
Last active March 30, 2017 13:07
Show Gist options
  • Save RushOnline/afb1d43c439a76855918630046b47927 to your computer and use it in GitHub Desktop.
Save RushOnline/afb1d43c439a76855918630046b47927 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
FB="fastboot -S 512M"
#adb reboot bootloader
# Boot TWRP recovery
#${FB} oem unlock
#${FB} boot recovery_twrp_yd201_alpha2.img
# Erase userdata and cache
${FB} -w
# Firmware
${FB} flash aboot emmc_appsboot.mbn
${FB} flash boot boot.img
${FB} flash system system.img
${FB} flash recovery recovery.img
${FB} flash cache cache.img
${FB} flash userdata userdata.img
# Modem
${FB} flash modem radio/NON-HLOS.bin
${FB} flash sbl1 radio/sbl1.mbn
${FB} flash rpm radio/rpm.mbn
${FB} flash tz radio/tz.mbn
${FB} reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment