If you’re a developer and want to get your hands dirty developing for the HTC Desire Z or the T-Mobile G2 (also made by HTC), you’ll be happy to know that HTC has just released the source code for these two devices. As always, the code takes up less than a megabyte of space.

According to the the Open Source Project at Android, the reason for source codes to be made available to the public is to reduce, if not eliminate, fragmentation, and to ensure the greatest amount of compatibility between different builds and devices: “Uncontrolled customization can, of course, lead to incompatible implementations. To prevent this, the AOSP also maintains the Android Compatibility Program, which spells out what it means to be “Android compatible”, and what is required of device builders to achieve that status. Anyone can (and will!) use the Android source code for any purpose, and we welcome all such uses. However, in order to take part in the shared ecosystem of applications that we are building around Android, device builders must participate in the Compatibility Program.”