Building the HTC Dream Platform

From Android Wiki

Revision as of 04:59, 7 November 2008 by RyeBrye (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, searcha

To build your own version of the Open Source HTC Dream platform to run in an emulator, or to do other things with, you must first get the source.

Download the Android Source and follow Google's instructions for your platform, with a few additional notes:

  • If you are on a Mac, you can use a case-sensitive disk image instead of reformatting a partition.

Once you have downloaded the entire git tree (it's huge. Go make Mario noises on your phone or something while you wait) - you will need to add the following to a local_manifests.xml file inside the 'mydroid/.repo/' directory:

 <?xml version="1.0" encoding="UTF-8"?>
 <!-- this is commented out because it's breaking
      the build for now. In the future, it will build
      various open-source pieces needed for the HTC dream
 <!-- <project path="hardware/msm7k"
 /> -->
 <project path="vendor/htc/dream"

Once you have put that file in place, you need to update your repo again:

repo sync

Once you have synced your repo, you should see a directory structure called 'vendor/htc/dream'

You will have to go into the dream directory, and run the "extract files" shell script once you add these two lines to it to get stuff that is not present in the dream, and the msm7k doesn't build properly yet.

 adb pull /system/lib/ proprietary/
 adb pull /system/lib/ proprietary/
cd vendor/htc/dream/

You will also want to edit the file to contain references to copy those two files over:

	$(proprietary)/ \
	$(proprietary)/ \
        $(proprietary)/ \
        $(proprietary)/ \
	$(proprietary)/akmd:system/bin/akmd \

Once this is done, you can edit the file in the mydroid/ to tell it to have TARGET_PRODUCT=htc_dream - or you can run make in this way:

make TARGET_PRODUCT=htc_dream 

Once the build is complete, you will have an open-source build.

Please update this page to include any additional information you need to build on your system

Personal tools