Created
August 25, 2015 06:10
-
-
Save shihyu/f903396896ea243efc6d to your computer and use it in GitHub Desktop.
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/bash | |
platformROM="aa" | |
PARTIAL_NAME="2PQ9IMG_HIA_AERO_UHL_M60_SENSE7GP_testonly_0.70.999.50_Radio_0.0.U00266.1@50820_16.00_F_release_449132_partial_2.zip" | |
BOOT_NAME="2PQ9IMG-BOOT_HIA_AERO_UHL_M60_SENSE7GP_testonly_0.70.999.50_test_449132_2.zip" | |
SIGN_NAME="2PQ9IMG_HIA_AERO_UHL_M60_SENSE7GP_testonly_0.70.999.50_Radio_0.0.U00266.1@50820_16.00_F_release_449132_signed_2.zip" | |
PARTIAL_PATH="$platformROM""/""$PARTIAL_NAME" | |
BOOT_PATH="$platformROM""/""$PARTIAL_NAME" | |
SIGN_PATH="$platformROM""/""$SIGN_NAME" | |
adb reboot bootloader | |
htc_fastboot oem rebootRUU | |
echo "PARTIAL ROM[++++++++++++]" | |
htc_fastboot flash zip "$platformROM""/""$PARTIAL_NAME" | |
while [ $? = 1 ]; do | |
sleep 3 | |
htc_fastboot flash zip "$platformROM""/""$PARTIAL_NAME" | |
done | |
echo "PARTIAL ROM[------------]" | |
htc_fastboot oem rebootRUU | |
echo "BOOT ROM[++++++++++++++]" | |
htc_fastboot flash zip "$platformROM""/""$BOOT_NAME" | |
echo "BOOT ROM[--------------]" | |
htc_fastboot oem rebootRUU | |
echo "SIGN ROM[++++++++++++++]" | |
htc_fastboot flash zip "$platformROM""/""$SIGN_NAME" | |
echo "SIGN ROM[--------------]" | |
htc_fastboot reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment