Dan Morrill | 55de681 | 2009-11-15 15:46:36 -0800 | [diff] [blame] | 1 | page.title=Building for an Android Dev Phone |
Dan Morrill | 3cd199f | 2009-11-06 14:04:16 -0800 | [diff] [blame] | 2 | doc.type=source |
| 3 | @jd:body |
Dan Morrill | 55de681 | 2009-11-15 15:46:36 -0800 | [diff] [blame] | 4 | <p><i>The information on this page is a bit out of date. We'll update this |
| 5 | page as soon as we can.</i></p> |
Dan Morrill | 98620ee | 2010-04-13 14:48:25 -0700 | [diff] [blame] | 6 | <div>The basic manifest for 1.6 defines which projects are |
Dan Morrill | a9788cd | 2009-11-15 11:49:30 -0800 | [diff] [blame] | 7 | needed to do a generic build for the emulator or for unlocked Dream devices |
| 8 | (e.g. the Android Dev Phone 1). You need to have an appropriate device running |
Dan Morrill | 98620ee | 2010-04-13 14:48:25 -0700 | [diff] [blame] | 9 | a matching official image.<br><br>To build donut for dream (your |
Dan Morrill | a9788cd | 2009-11-15 11:49:30 -0800 | [diff] [blame] | 10 | device needs to be an ADP1 running an official 1.6 system):<br><ol><li>Follow |
| 11 | the <a href="{@docRoot}source/download.html">normal steps</a> |
Dan Morrill | 3cd199f | 2009-11-06 14:04:16 -0800 | [diff] [blame] | 12 | to setup repo and check out the sources. |
| 13 | </li> |
| 14 | <li>At the root of your source tree, run ". build/envsetup.sh" like you normally would for an emulator build. |
| 15 | </li> |
| 16 | <li>Run "make adb" if you don't already have adb in your path. |
| 17 | </li> |
| 18 | <li>run "adb root".<br></li> |
| 19 | <li>in vendor/htc/dream-open/ there is a script called "extract-files.sh" that must be run (from that directory) to extract some proprietary binaries from your device (*). You only need to do this once.<br></li> |
| 20 | <li>run "lunch aosp_dream_us-eng" to specifically configure the build system for dream (the default is the equivalent of "lunch generic-eng", which doesn't contain dream-specific files).<br></li> |
| 21 | <li>run make from the top of the source tree. |
| 22 | </li> |
| 23 | <li>from this point, the fastboot tool (which is put automatically in your path) can be used to flash a device: boot the device into the bootloader by holding the back key while pressing the power key, and run "fastboot -w flashall".<br></li> |
| 24 | </ol> |
Dan Morrill | 98620ee | 2010-04-13 14:48:25 -0700 | [diff] [blame] | 25 | <p>Note: these instructions work for the sapphire (ADP2) build target, as |
| 26 | well. Simply replace "dream" with "sapphire" above.</p> |
Dan Morrill | 3cd199f | 2009-11-06 14:04:16 -0800 | [diff] [blame] | 27 | </div> |