Welcome to the Android O Developer Preview!

Welcome to the Android O Developer Preview! You can download system images for a range of hardware devices that you can use for testing your app, from phones to tablets and TV.

https://developer.android.com/preview/download.html

To flash a system image:

  1. Download the appropriate system image for your device below, then unzip it to a safe directory.
  2. Connect your device to your computer over USB.
  3. Start the device in fastboot mode with one of the following methods:
    • Using the adb tool: With the device powered on, execute:adb reboot bootloader
    • Using a key combo: Turn the device off, then turn it on and immediately hold down the relevant key combination for your device. For example, to put a Nexus 5 (“hammerhead”) into fastboot mode, press and hold Volume Up + Volume Down + Power as the device begins booting up.
  4. If necessary, unlock the device’s bootloader using one of the following methods:
  5. If you are updating a Nexus 5X or Nexus 6P device using the hammerhead or angler builds, update your fastboot tool to the latest available version (>=23.0.1), and then run this command:fastboot flashing unlock
  6. If you are updating an older device, run this command:fastboot oem unlock

    The target device will show you a confirmation screen. (This erases all data on the target device.)

  7. Open a terminal and navigate to the unzipped system image directory.
  8. Execute the flash-all script. This script installs the necessary bootloader, baseband firmware(s), and operating system.

If you need the manual version, then the Nexus 6p steps is as follows:

./fastboot flash bootloader <bootloader file name here>.img
./fastboot flash radio <radio file name here>.img
./fastboot reboot-bootloader
./fastboot flash recovery recovery.img
./fastboot flash boot boot.img
./fastboot flash system system.img
./fastboot flash vendor vendor.img
./fastboot reboot

Once the script finishes, your device reboots. You should now lock the bootloader for security:

  1. Start the device in fastboot mode again, as described above.
  2. Execute:
    fastboot flashing lock
    or, for older devices, run:
    fastboot oem lock

Locking bootloader will wipe the data on some devices. After locking the bootloader, if you want to flash the device again, you must run fastboot oem unlock again, which will wipe the data.