notes/Android HTC Amaze Replace Boot Screen Animation-LuXnWJ3P.sh
#!/bin/bash
#Designed for HTC Amaze
#by Kris Occhipinti
#http://filmsbykris.com
#January 11th, 2014
#GPLv3
#http://www.gnu.org/licenses/gpl-3.0.html
dir="aniboot_$(date +%s)"
phone_dir="/system/customize/resource/"
zip="TMOUS_bootanimation.zip"
clear
echo "Backup is recommended!"
sleep 2
mkdir "$dir"
cd "$dir"
#pull original animation from phone
adb pull $phone_dir$zip
unzip "$zip"
clear
rm "$zip"
echo "When Ready Press Enter to Repackage and Put Onto Phone."
echo "'q' and enter to quit"
read go
if [ "$go" == "q" ]
then
exit 0
fi
zip -0 "$zip" desc.txt TMOUS/* android/*
echo "putting zip file onto phone..."
adb push "$zip" /sdcard/
echo "Remounting /system as read/write"
adb shell su -c "mount -o remount,rw -t yaffs2 /dev/block/mmcblk0p29 /system"
echo "Moving $zip tp $phone_dir..."
adb shell su -c "cp /sdcard/$zip $phone_dir$zip"
echo "Changing Permissions of $zip"
adb shell su -c "chmod 644 $phone_dir$zip"
echo "Would you like to reboot the phone? (y/N)"
read reboot
if [ "$reboot" == "y" ]
then
echo "Phone is Rebooting..."
adb shell su -c "reboot"
sleep 3
fi
echo "Thank you."
sleep 3
echo "Goodbye."
syntax highlighted by Code2HTML, v. 0.9.1