Factory Images for Nexus Devices

This page contains binary image files that allow you to
restore your Nexus device's original factory firmware.
You will find these files useful if you have used the
Android Open-Source Project,
flashed custom builds on your device, and
wish to return that device to its factory state.

These files are
for use only on your personal Nexus devices and may not be disassembled,
decompiled, reverse engineered, modified or redistributed by you or used in
any way except as specifically set forth in the license terms that came with
your device.

Flashing Instructions

To flash a device using one of the system images below (or one of your own),
you need the fastboot tool. You can get the fastboot tool either:

Or, from the platform-tools/ directory in the
Android SDK.
Be sure that you have the latest version of the Android SDK Platform-tools
from the SDK Manager.

Once you have the fastboot tool, add it to your PATH environment
variable (the flash-all script below must be able to find it).
Also be certain that you've set up USB access for your device, as described in the
Using Hardware Devices guide.

Caution: Flashing a new system
image deletes all user data. Be certain to first backup any personal data such as photos.

To flash a system image:

Download the appropriate system image for your device below,
then unzip it to a safe directory.

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.

If necessary, unlock the device's bootloader by running:

fastboot oem unlock

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