[G2 and Desire Z Android Development] Stryder5:
Here you go.

For those who don't know how to use ADB (which you should learn should the phone get fully rooted in the future), or don't like typing out the command to disable a package one by one, here's a script that'll disable a few in one go. You can easily modify it yourself to add/remove packages you want disabled.

Prerequisites:

- Install Terminal Emulator from market place.

- Install Superuser from market place.

- Rooted

Instructions:

1. Copy the file (from the attachment) to the root of your SD card.

2. Temp root your phone (using Visionary or some alternative)

3. Open Terminal and type "su" (without the quotes)

4. This will bring up a Superuser prompt asking for permission. Allow it. You should now see a "#" sign (instead of the previous "$" sign, indicating you have root permissions in Terminal)

5. Type "cd /sdcard" (without the quotes)

6. Type "dos2unix disabler.txt" (without the quotes)

7. Type "sh disabler.txt" (without the quotes)

My little script will disable the following packages. I'll probably update the script to add more later but this was just a preliminary removal of the ones I saw in the app drawer that I don't use.

Web2Go, Photobucket, Finance, GenieWidget (news/weather widget), T-Mobile's My Account/Device, Earth, Talk, My Tracks, Quick Search Box, Listen, Unveil (think this is part of Listen but not sure), Latin IME Tutorial (tutorial to use the stock android keyboard, not the swype tutorial), Setup Wizard, Translate, Shopper

You can easily modify the list as you see fit by adding or removing these lines with the proper package names:

pm_pkg_list=$pm_pkg_list" com.package.name"

If you need to enable the packages, just uncomment the lines towards the bottom (the text file indicates which ones to uncomment), then run the script again. It will enable ALL the packages listed in the file.

Here's the code if anyone is interested (or download the attached file):

#!/system/bin/sh
#Package Disabler v1
#Created by Stryder5 on XDA (Oct. 21, 2010)
#This is to disable apps (not remove/uninstall them). Useful for temp roots.
#Run "dos2unix scriptname.ext" before running the script itself to correctly format it
#Run "sh scriptname.ext" to actually execute

#List of apps to Enable/Disable
#You can change this as you see fit.
pm_pkg_list=$pm_pkg_list" com.photobucket.android"
pm_pkg_list=$pm_pkg_list" com.google.android.apps.finance"
pm_pkg_list=$pm_pkg_list" com.google.android.apps.genie.geniewidget"
pm_pkg_list=$pm_pkg_list" com.tmobile.selfhelp"
pm_pkg_list=$pm_pkg_list" com.google.earth"
pm_pkg_list=$pm_pkg_list" com.google.android.talk"
pm_pkg_list=$pm_pkg_list" com.google.android.maps.mytracks"
pm_pkg_list=$pm_pkg_list" com.google.android.googlequicksearchbox"
pm_pkg_list=$pm_pkg_list" com.google.android.apps.listen"
pm_pkg_list=$pm_pkg_list" com.google.android.apps.unveil"
pm_pkg_list=$pm_pkg_list" com.google.android.latinimetutorial"
pm_pkg_list=$pm_pkg_list" com.htc.android.htcsetupwizard"
pm_pkg_list=$pm_pkg_list" com.google.android.latinimetutorial"
pm_pkg_list=$pm_pkg_list" com.google.android.apps.translate"
pm_pkg_list=$pm_pkg_list" com.google.android.apps.shopper"

#Start of disabling script
echo "Disabling Packages in 2 Seconds"
sleep 2
for pkg in $pm_pkg_list; do
echo "Disabling $pkg"
pm disable $pkg
done

echo "Package Disabling Complete"

#Start of enabling script
#To enable all the disabled packages, remove the pound sign (#) from the beginning of each line below. This will undo all the changes this file has done.
#echo "Enabling Packages in 2 Seconds"
#sleep 2
#for pkg in $pm_pkg_list; do
# echo "Enabling $pkg"
#	pm enable $pkg
#done
#
#echo "Package Enabling Complete"

echo "Please reboot the phone or restart Launcher to take effect"
sleep 2
echo "Script Completed"