Advertisement
metalx1000

Android - HTC Amaze - Replace Boot Screen Animation

Jan 11th, 2014
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. #!/bin/bash
  2. #Designed for HTC Amaze
  3. #by Kris Occhipinti
  4. #http://filmsbykris.com
  5. #January 11th, 2014
  6. #GPLv3
  7. #http://www.gnu.org/licenses/gpl-3.0.html
  8.  
  9. dir="aniboot_$(date +%s)"
  10. phone_dir="/system/customize/resource/"
  11. zip="TMOUS_bootanimation.zip"
  12. clear
  13.  
  14. echo "Backup is recommended!"
  15. sleep 2
  16. mkdir "$dir"
  17. cd "$dir"
  18.  
  19. #pull original animation from phone
  20. adb pull $phone_dir$zip
  21. unzip "$zip"
  22. clear
  23.  
  24. rm "$zip"
  25.  
  26. echo "When Ready Press Enter to Repackage and Put Onto Phone."
  27. echo "'q' and enter to quit"
  28. read go
  29.  
  30. if [ "$go" == "q" ]
  31. then
  32.     exit 0
  33. fi
  34.  
  35. zip -0 "$zip" desc.txt TMOUS/* android/*
  36.  
  37. echo "putting zip file onto phone..."
  38. adb push "$zip" /sdcard/
  39.  
  40. echo "Remounting /system as read/write"
  41. adb shell su -c "mount -o remount,rw -t yaffs2 /dev/block/mmcblk0p29 /system"
  42. echo "Moving $zip tp $phone_dir..."
  43. adb shell su -c "cp /sdcard/$zip $phone_dir$zip"
  44. echo "Changing Permissions of $zip"
  45. adb shell su -c "chmod 644 $phone_dir$zip"
  46.  
  47. echo "Would you like to reboot the phone? (y/N)"
  48. read reboot
  49.  
  50. if [ "$reboot" == "y" ]
  51. then
  52.     echo "Phone is Rebooting..."
  53.     adb shell su -c "reboot"
  54.     sleep 3
  55. fi
  56.  
  57. echo "Thank you."
  58. sleep 3
  59. echo "Goodbye."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement