Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame^] | 1 | # Building for an Android Dev Phone # |
| 2 | |
| 3 | *The information on this page is a bit out of date. We'll update this |
| 4 | page as soon as we can.* |
| 5 | |
| 6 | The basic manifest for 1.6 defines which projects are |
| 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 |
| 9 | a matching official image. |
| 10 | |
| 11 | To build donut for dream (your |
| 12 | device needs to be an ADP1 running an official 1.6 system): |
| 13 | |
| 14 | 1. Follow the [normal steps](downloading.html) to setup repo and check out the sources. |
| 15 | |
| 16 | 2. At the root of your source tree, run `. build/envsetup.sh` like you normally would for an emulator build. |
| 17 | |
| 18 | 3. Run `make adb` if you don't already have adb in your path. |
| 19 | |
| 20 | 4. run `adb root`. |
| 21 | |
| 22 | 5. 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. |
| 23 | |
| 24 | 6. 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). |
| 25 | |
| 26 | 7. run make from the top of the source tree. |
| 27 | |
| 28 | 8. 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`. |
| 29 | |
| 30 | Note: these instructions work for the sapphire (ADP2) build target, as |
| 31 | well. Simply replace "dream" with "sapphire" above. |
| 32 | |