#!/bin/bash # Written By Brandon Golway (brando56894) clear echo "This will build and flash the recovery image" echo "Then your phone will reboot into recovery" echo echo "Make sure you have your build environment setup correctly" echo "And your phone connected via USB with debugging enabled" echo read -p "Press Enter to continue." cd ~/android/system/ make -j`grep 'processor' /proc/cpuinfo | wc -l`recoveryimage adb push ~/android/system/out/target/product/sholes/recovery.img /sdcard/ adb shell flash_image recovery /sdcard/recovery.img adb reboot recovery