page.title=Setting Up Hardware and AVDs @jd:body

The Android L developer preview provides you with 32-bit system images to flash the following devices:

In addition, you also get the emulator system images, which includes experimental 64-bit system images along with standard 32-bit system images.

Installing the L Preview System Image

Warning: This is a preview version of the Android system image, and is subject to change. Your use of this system image is governed by the Android SDK Preview License Agreement. The Android preview system image is not a stable release, and may contain errors and defects that can result in damage to your computer systems, devices, and data. The preview Android system image is not subject to the same testing as the factory OS and can cause your phone and installed services and applications to stop working.

  1. Download and extract the Android Developer Preview package to a directory (which we'll call <l_download_dir> in these instructions).
  2. Connect your powered-off Android device to your development machine. Put the device in fastboot mode by pressing and holding the following buttons:

    Alternatively, you can enter fastboot mode by booting up the device and running adb reboot bootloader with USB debugging turned on.

  3. Follow the instructions at developers.google.com/android to set up your system for flashing devices.
  4. Run the <l_download_dir>/flash-all script corresponding to your platform. This script flashes all of the system data onto the phone.
  5. (Optional) After flashing is complete, lock your device's bootloader by putting it in fastboot mode and running fastboot oem lock. (This does not wipe your device.) Once you do this, you will not be able to flash your device until you run run fastboot oem unlock, which unlocks the bootloader and wipes your device. We recommend you leave the bootloader unlocked until you are done with flashing the device.

Reverting a Device to Factory Specifications

If you want to uninstall the L Preview and revert the device to factory specifications, go to developers.google.com/android and download the image you want to flash to for your device. Follow the instructions on that page to flash the image to your device.

Setting up an AVD

You can set up Android Virtual Devices (AVD) and use the emulator to build and test apps with the L Preview.

To create an AVD with the AVD Manager:

  1. Install the L Preview SDK in your development environment, as described in Setting Up the Preview SDK.
  2. Follow the steps in Managing AVDs with AVD Manager. Use the following settings: