[Hero CDMA Themes and Apps] ChrisDos:
Scripts to Remove Apps for Linux Users

I wrote some scripts to remove the apps, startup sound, busybox install, new boot animation, etc. Use what you need, delete what you don't.

Install_Boot_Animation.sh:

#!/bin/bash

echo "Mounting /system"

adb shell mount -v /system

sleep 3

adb push bootanimation-dancing_droid.zip /system/customize/resource/bootanimation.zip

sleep 3

echo "Unmounting /system"

adb shell umount -v /system

Install_Busybox.sh:

#!/bin/bash

echo "Mounting /system"

adb shell mount -v /system

echo "Mounting /data"

adb shell mount -v /data

sleep 3

adb push /home/chris/Android/EVO/Root/busybox /data

adb shell chmod 755 /data/busybox

adb shell /data/busybox --install -s /system/xbin

sleep 3

adb shell umount -v /system

adb shell umount -v /data

Remove_Boot_Sound.sh:

adb shell mount /dev/block/mtdblock4 /system

adb pull /system/customize/resource/SPC_animation_final.mp3 /home/chris/Android/EVO/Root/Removed_Apps/

adb shell rm /system/customize/resource/SPC_animation_final.mp3

sleep 3

adb shell umount /system

Remove_Apps.sh:

#!/bin/bash

APPBACKUP=/home/chris/Android/EVO/Root/Removed_Apps/

echo "Mounting /system"

adb shell mount -v /system

sleep 3

echo "Removing SprintTV Widget"

adb pull /system/app/SprintTVWidget.apk $APPBACKUP

adb shell rm /system/app/SprintTVWidget.apk

echo

echo "Removing Sprint TV"

adb pull /system/app/Sprint_TV.apk $APPBACKUP

adb shell rm /system/app/Sprint_TV.apk

echo

echo "Removing SprintA_Nascar"

adb pull /system/app/Sprint_NASCAR.apk $APPBACKUP

adb shell rm /system/app/Sprint_NASCAR.apk

echo

echo "Removing Sprint NFL"

adb pull /system/app/Sprint_NFL.apk $APPBACKUP

adb shell rm /system/app/Sprint_NFL.apk

echo

echo "Removing Sprint Zone (Promotion)"

adb pull /system/app/Sprint_Promotion.apk $APPBACKUP

adb shell rm /system/app/Sprint_Promotion.apk

echo

echo "Removing Stocks app"

adb pull /system/app/Stock.apk $APPBACKUP

adb pull /system/app/Stock.odex $APPBACKUP

adb shell rm /system/app/Stock.apk

adb shell rm /system/app/Stock.odex

echo

echo "Removing Amazon MP3"

adb pull /system/app/amazonmp3.apk $APPBACKUP

adb shell rm /system/app/amazonmp3.apk

echo

echo "Removing Facebook"

adb pull /system/app/Facebook.apk $APPBACKUP

adb pull /system/app/HtcFacebook.apk $APPBACKUP

adb pull /system/app/HtcFacebook.odex $APPBACKUP

adb shell rm /system/app/Facebook.apk

adb shell rm /system/app/HtcFacebook.apk

adb shell rm /system/app/HtcFacebook.odex

echo

echo "Removing HTC Twitter"

adb pull /system/app/HtcTwitter.apk $APPBACKUP

adb pull /system/app/HtcTwitter.odex $APPBACKUP

adb shell rm /system/app/HtcTwitter.apk

adb shell rm /system/app/HtcTwitter.odex

echo

echo "Removing PDFViewer"

adb pull /system/app/PDFViewer.apk $APPBACKUP

adb pull /system/app/PDFViewer.odex $APPBACKUP

adb shell rm /system/app/PDFViewer.apk

adb shell rm /system/app/PDFViewer.odex

echo

echo "Removing Social Network Provider"

adb pull /system/app/SocialNetworkProvider.apk $APPBACKUP

adb pull /system/app/SocialNetworkProvider.odex $APPBACKUP

adb shell rm /system/app/SocialNetworkProvider.apk

adb shell rm /system/app/SocialNetworkProvider.odex

echo

echo "Removing WiFiRouter"

adb pull /system/app/WifiRouter.apk $APPBACKUP

adb pull /system/app/WifiRouter.odex $APPBACKUP

adb shell rm /system/app/WifiRouter.apk

adb shell rm /system/app/WifiRouter.odex

echo

echo "Removing HTC Friend Stream Widget"

adb pull /system/app/com.htc.FriendStreamWidget.apk $APPBACKUP

adb pull /system/app/com.htc.FriendStreamWidget.odex $APPBACKUP

adb shell rm /system/app/com.htc.FriendStreamWidget.apk

adb shell rm /system/app/com.htc.FriendStreamWidget.odex

echo

echo "Removing Stock Widget"

adb pull /system/app/com.htc.StockWidget.apk $APPBACKUP

adb pull /system/app/com.htc.StockWidget.odex $APPBACKUP

adb shell rm /system/app/com.htc.StockWidget.apk

adb shell rm /system/app/com.htc.StockWidget.odex

echo

echo "Removing Friend Stream"

adb pull /system/app/FriendStream.apk $APPBACKUP

adb pull /system/app/FriendStream.odex $APPBACKUP

adb shell rm /system/app/FriendStream.apk

adb shell rm /system/app/FriendStream.odex

echo

echo "Removing Flickr"

adb pull /system/app/Flickr.apk $APPBACKUP

adb pull /system/app/Flickr.odex $APPBACKUP

adb shell rm /system/app/Flickr.apk

adb shell rm /system/app/Flickr.odex

echo

echo "Removing Footprints"

adb pull /system/app/HtcFootprints.apk $APPBACKUP

adb pull /system/app/HtcFootprints.odex $APPBACKUP

adb shell rm /system/app/HtcFootprints.apk

adb shell rm /system/app/HtcFootprints.odex

echo

echo "Removing Footprints Widget"

adb pull /system/app/HtcFootprintsWidget.apk $APPBACKUP

adb pull /system/app/HtcFootprintsWidget.odex $APPBACKUP

adb shell rm /system/app/HtcFootprintsWidget.apk

adb shell rm /system/app/HtcFootprintsWidget.odex

echo "Wating for /system to stablize for unmounting..."

sleep 3

adb shell mount -v /system