Robert Ly | 2055529 | 2014-06-13 23:28:19 -0700 | [diff] [blame^] | 1 | page.title=Setting Up Hardware and AVDs |
| 2 | |
| 3 | @jd:body |
| 4 | |
| 5 | <p>The Android 5.0 developer preview provides you with 32-bit system images |
| 6 | to flash the following devices: |
| 7 | </p> |
| 8 | |
| 9 | <ul> |
| 10 | <li>Nexus 5</li> |
| 11 | <li>Nexus 7 Wi-Fi (version 2, released in 2013)</li> |
| 12 | </ul> |
| 13 | |
| 14 | <p>In addition, you also get the emulator system images, which includes |
| 15 | experimental 64-bit system images along with standard 32-bit system images. |
| 16 | </p> |
| 17 | |
| 18 | <h2>Flashing Devices</h2> |
| 19 | |
| 20 | <p class="warning"><b>Warning</b>: This is a preview version of the Android |
| 21 | system image, and is subject to change. Your use of this system image is |
| 22 | governed by the Android SDK Preview License Agreement. The Android preview |
| 23 | system image is not a stable release, and may contain errors and defects that |
| 24 | can result in damage to your computer systems, devices, and data. The preview |
| 25 | Android system image is not subject to the same testing as the factory OS and |
| 26 | can cause your phone and installed services and applications to stop working. |
| 27 | </p> |
| 28 | |
| 29 | <p> |
| 30 | Click through Terms of Service: |
| 31 | https://docs.google.com/a/google.com/document/d/1OixnM1Q890ExOzDB3Z-FDD6Sb2kF4uZQiMxsYVII8F0/edit?usp=sharing |
| 32 | </p> |
| 33 | |
| 34 | <h3>To the Developer Preview</h3> |
| 35 | <ol> |
| 36 | <li>Download and extract the Android Developer Preview package to a directory |
| 37 | referred to as <code><extracted_images></code>.</li> |
| 38 | <li>Connect your powered-off Android device to your development machine and |
| 39 | press and hold the following buttons until your device is in fastboot mode: |
| 40 | <ul> |
| 41 | <li>For Nexus 5: vol down + vol up + power</li> |
| 42 | <li>For Nexus 7: vol down + power </li> |
| 43 | </ul> |
| 44 | <p class="note">Alternatively, run <code>adb reboot bootloader</code> |
| 45 | with USB debugging turned on to enter fastboot mode. |
| 46 | The device must be booted up if you’re using this method.</p> |
| 47 | </li> |
| 48 | <li>Follow the instructions at |
| 49 | <a href="https://developers.google.com/android/nexus/images">developers.google.com/android</a> |
| 50 | to set up your system for flashing devices.</li> |
| 51 | <li>Run the <code><extracted-images>/flash-all</code> script |
| 52 | corresponding to your platform. This script flashes all of the system data |
| 53 | onto the phone.</li> |
| 54 | <li>(Optional) After flashing is complete, run <code>fastboot oem lock</code> |
| 55 | with the device in fastboot mode to lock it again. This does not wipe your |
| 56 | device, but if you want to flash again, you need to run <code>fastboot oem |
| 57 | unlock</code>, which wipes your device. We recommend you leave the |
| 58 | bootloader unlocked until you are done with flashing the device.</li> |
| 59 | </ol> |
| 60 | |
| 61 | <h3>To factory specifications</h3> |
| 62 | |
| 63 | <p>Go to <a href="http://developers.google.com/android/nexus/images">developers.google.com/android</a> |
| 64 | and download the image you want to flash to for your device. |
| 65 | Follow the instructions there to flash the image to your device.</p> |
| 66 | |
| 67 | |
| 68 | <h2>Setting up an AVD</h2> |
| 69 | You can set up Android Virtual Devices (AVD) and use the emulator to |
| 70 | build and test apps with: |
| 71 | |
| 72 | <ol> |
| 73 | <li></li> |
| 74 | <li></li> |
| 75 | <li></li> |
| 76 | <li></li> |
| 77 | <li></li> |
| 78 | <li></li> |
| 79 | <li></li> |
| 80 | <li></li> |
| 81 | </ol> |