Last active
March 30, 2017 13:07
-
-
Save RushOnline/afb1d43c439a76855918630046b47927 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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