[HD2 Android Q&A, Help & Troubleshooting and Genera] cmylxgo:
Now for the fun stuff...

1. Download your favorite build of Android

2. Unzip archive

3. Fire up a terminal window and cd to your extracted Android folder

4. Mount system.ext2 so that we can edit and patch the partition

type the following in your terminal window:
su
mkdir patch
mount -o loop,rw system.ext2 patch

Now that you have the partion mounted you can go directly into the patch folder and edit the files. The easy way is to download the attached files and copy them to their respected folders.

default.xml --> \patch\customize\MNS

mm_property.conf --> \patch\etc

apns-conf.xml --> \patch\etc

Or if you want to learn and understand what is going on you can edit the files on your own.

default.xml

With File Browser navigate to <whereever you extracted>\patch\customize\MNS

Find default.xml and right click and edit with gedit

Hit CTRL-F to search for string 'item name="MMS_Msg_Size'

Change the 3 size values to the below and the chosen size...

<item name="MMS_Msg_Size1">300K</item>
<item name="MMS_Msg_Size2">600K</item>
<item name="MMS_Msg_Size3">1200K</item>
<item name="MMS_Msg_Size_Choose">1200K</item>

You can also change your default Home Page while you're in this file.

Hit CTRL-F to search for string '<function name="homepage">'

Change the <item name'"url"> blah blah blah</item> to whatever you want it to be. I set mine to Google.

<item name'"url">http://www.google.com</item>

SAVE and close.

mm_property.conf

With File Browser navigate to <whereever you extracted>\patch\etc

Find mm_property.conf and right click and edit with gedit

Add the following line...

wapprofile=http://www.htcmms.com.tw/gen/Leo-1.5.xml

This line tells your phone to go out to that URL and download your WAP Profile which configues your phone as a Leo device. This tells T-Mobile what type of device you have so it knows how to handle MMS properly.

SAVE and close.

apns-conf.xml

With File Browser navigate to <whereever you extracted>\patch\etc

Find apns-conf.xml and right click and edit with gedit

Hit CTRL-F and search for carrier="T-Mobile US"

If the string is not found add the following line to the end of the list...

<apn carrier="T-Mobile US" mcc="310" mnc="260" apn="epc.tmobile.com" user="" server="" password="" mmsc="http://mms.msg.eng.t-mobile.com/mms/wapenc" mmsproxy="216.155.165.50" type="default,supl,mms"/>

If the string is found replace the entire line with this line. These are the correct settings that I have tested and verify work for sending MMS.

<apn carrier="T-Mobile US" mcc="310" mnc="260" apn="epc.tmobile.com" user="" server="" password="" mmsc="http://mms.msg.eng.t-mobile.com/mms/wapenc" mmsproxy="216.155.165.50" type="default,supl,mms"/>

This line tells your phone what your APN settings should be for T-Mobile USA. This step is optional as you can configure your APN through the Wireless settings menu. However, for MMS to work properly for me on T-Mobile I had to use the above settings. If you wish to manually configure your APN use the following settings.

Name: T-Mobile US
APN: epc.tmobile.com
Proxy: (leave this blank)
Port: (leave this blank)
Username: (leave this blank)
Password: (leave this blank)
Server: (leave this blank)
MMSC: HTTP://MMS.MSG.ENG.T-MOBILE.COM/MMS/WAPENC
MMS Proxy: 216.155.165.50
MMS Port: BLANK
MMS Protocol: WAP 2.0
MCC: 310
MNC: 260
APN Type: default,supl,mms

SAVE and close.

6. Unmount the system.ext2 partition

type the following in your terminal window:
umount /dev/loop0

7. Your system.ext2 is now fully patched and you are now ready to copy the Android Folder to your SDcard and boot.

8. Delete data.img if its in your Android Folder. If you don't this patching process will not work

Good Luck!

-CMYLXGO