blob: 9ffe9f4cb2bc5d095ec3001e1c18ec5ee321231f [file] [log] [blame]
Robert Ly20555292014-06-13 23:28:19 -07001page.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
6to 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
15experimental 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
21system image, and is subject to change. Your use of this system image is
22governed by the Android SDK Preview License Agreement. The Android preview
23system image is not a stable release, and may contain errors and defects that
24can result in damage to your computer systems, devices, and data. The preview
25Android system image is not subject to the same testing as the factory OS and
26can cause your phone and installed services and applications to stop working.
27</p>
28
29<p>
30Click through Terms of Service:
31https://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>&lt;extracted_images&gt;</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 youre 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>&lt;extracted-images&gt;/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>
69You can set up Android Virtual Devices (AVD) and use the emulator to
70build 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>