The HTC Dream is the only supported Android development device. But, it is possible to do development on other devices, by cannibalizing the various drivers that you can find on them. This usually involves modifying/repacking an official update.zip. However, with a little work, it is possible to use the Android build system to create legitimate fastboot images!
After following the instructions to retrieve the MyTouch build configuration and extracting the proprietary bits from a running device, you can do the following to build images for the MyTouch:
. build/envsetup.sh
lunch htc_mytouch-eng
make
There is also a mkupdatezip script available in the Downloads section of the repository to assist in creating update.zip files as well!
The images will then be found in out/target/product/mytouch-open. A build configuration for the Magic will be coming soon! (It is the same board as the MyTouch, a Sapphire, but different enough to need a separate config.)
Note:
The general process in creating this board makefile was basically the following:
- Start with the Dream build config (dream-open).
- Extract the kernel from a running device and replace it.
- Modify the extract-files.sh script to adb pull the correct proprietary files.
- Modify the .mk files to reference the proper proprietary files.
- Grab the wlan.ko off the device and replace the one at the repository root.