1page.title=Building for an Android Dev Phone 2@jd:body 3 4<!-- 5 Copyright 2013 The Android Open Source Project 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18--> 19<div id="qv-wrapper"> 20 <div id="qv"> 21 <h2>In this document</h2> 22 <ol id="auto-toc"> 23 </ol> 24 </div> 25</div> 26 27<p><em>The information on this page is a bit out of date. We'll update this 28page as soon as we can.</em></p> 29<p>The basic manifest for 1.6 defines which projects are 30needed to do a generic build for the emulator or for unlocked Dream devices 31(e.g. the Android Dev Phone 1). You need to have an appropriate device running 32a matching official image.</p> 33<p>To build donut for dream (your 34device needs to be an ADP1 running an official 1.6 system):</p> 35<ol> 36<li> 37<p>Follow the <a href="downloading.html">normal steps</a> to setup repo and check out the sources.</p> 38</li> 39<li> 40<p>At the root of your source tree, run <code>. build/envsetup.sh</code> like you normally would for an emulator build.</p> 41</li> 42<li> 43<p>Run <code>make adb</code> if you don't already have adb in your path.</p> 44</li> 45<li> 46<p>run <code>adb root</code>.</p> 47</li> 48<li> 49<p>in <code>vendor/htc/dream-open/</code> 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.</p> 50</li> 51<li> 52<p>run <code>lunch aosp_dream_us-eng</code> to specifically configure the build system for dream (the default is the equivalent of "lunch generic-eng", which doesn't contain dream-specific files).</p> 53</li> 54<li> 55<p>run make from the top of the source tree.</p> 56</li> 57<li> 58<p>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 <code>fastboot -w flashall</code>.</p> 59</li> 60</ol> 61<p>Note: these instructions work for the sapphire (ADP2) build target, as 62well. Simply replace "dream" with "sapphire" above.</p> 63