sodcalculator

10 Tech How-To

Install Android N Preview on Nexus Devices

Guide 10-51592 · Updated · Step by step

This guide walks you through installing the Android N Developer Preview on a compatible Nexus device. It covers both the simple Factory Image method and the OTA (Over-the-Air) method, so you can choose the one that fits your comfort level. Before starting, back up your device data, as the factory image method will wipe everything.

What You’ll Need

  • A compatible Nexus device (Nexus 5X, 6P, 6, 9, Player, or Pixel C).
  • A computer (Windows, macOS, or Linux) with a USB cable.
  • For the Factory Image method: the Android SDK Platform Tools installed (includes adb and fastboot).
  • For the OTA method: a stable internet connection on the device.
  • Your device battery at least 70% charged.
  • Unlock the bootloader (required for the factory image method; the OTA method does not require this).

Step-by-Step

Method 1: Factory Image (Full Wipe)

  1. Enable Developer Options: On your Nexus, go to Settings > About phone and tap Build number seven times until you see “You are now a developer!”.
  2. Enable USB Debugging: Go to Settings > Developer options and toggle on USB debugging.
  3. Install Platform Tools: Download the official Android SDK Platform Tools from the Android developer website and extract them to a folder on your computer (e.g., C:\platform-tools).
  4. Download the Factory Image: Visit the Android Developer Preview page, find your device, and download the factory image for the Android N Preview you want (e.g., Preview 1, 2, etc.).
  5. Unlock the Bootloader (if not already): Connect your device to the computer, open a command prompt/terminal in the platform-tools folder, and run adb reboot bootloader. Once in fastboot mode, run fastboot flashing unlock (or fastboot oem unlock on older devices). Confirm on the device screen. This erases all data.
  6. Extract the Factory Image: Unzip the downloaded file. Inside, you’ll find another zip file (e.g., image-shamu-n4f26j.zip) and some scripts (flash-all.bat for Windows, flash-all.sh for Mac/Linux).
  7. Flash the Image: With the device still in fastboot mode, run the flash-all script. On Windows, double-click flash-all.bat; on Mac/Linux, run ./flash-all.sh in the terminal. This will flash the bootloader, radio, and system images automatically.
  8. Wait for Reboot: The script will reboot the device automatically. The first boot may take several minutes—be patient.
  9. Set Up Your Device: Once booted, you’ll see the Android N setup wizard. Follow the prompts to complete the setup.

Method 2: OTA Update (No Wipe)

  1. Enroll in the Beta Program: Visit the Android Beta Program website on your Nexus device and sign in with the Google account linked to the device.
  2. Opt-In: Find your device in the list and tap Enroll. Accept the terms.
  3. Check for Updates: Go to Settings > About phone > System updates and tap Check for update. The Android N Preview OTA will appear (may take a few minutes).
  4. Download and Install: Tap Download and wait for it to finish. Then tap Restart & install. The device will reboot and install the update. Your data remains intact.
  5. Optional: Opt-Out Later: To leave the beta program, return to the beta website and tap Unenroll. You’ll receive a final OTA that returns you to the stable Android version (this wipes your data).

Common Mistakes

  • Skipping the backup: The factory image method wipes everything. Always back up photos, contacts, and app data before starting.
  • Using the wrong image: Downloading a factory image for a different device model (e.g., Nexus 6 vs. Nexus 5X) will fail or brick the device. Double-check the device codename.
  • Not installing Platform Tools: If you get “adb is not recognized,” you haven’t installed the SDK tools correctly. Ensure the platform-tools folder is in your PATH or run commands from that directory.
  • Forgetting to unlock the bootloader: If you skip step 5 in the factory image method, the flash will fail with a “remote: not allowed” error.
  • Interrupting the flash: Unplugging the USB cable during flashing can brick the device. Keep it connected until the script finishes.

Tips

  • Use a short, high-quality USB cable and a direct USB port on your computer (not a hub) to avoid connection drops.
  • If you’re new to this, start with the OTA method—it’s safer and doesn’t require unlocking the bootloader.
  • After flashing, you can re-lock the bootloader by running fastboot flashing lock, but this wipes data again. Only do this if you’re sure.
  • Keep the factory image zip file until you’re sure the preview is stable; you may need to reflash if something goes wrong.
  • Join the Android Beta community forums to report bugs and get help from other testers.

Troubleshooting

  • Device not recognized by adb/fastboot: Install the correct USB drivers (for Windows) or use a different cable. On macOS/Linux, ensure you have the proper permissions (e.g., udev rules on Linux).
  • Flash fails with “remote: not allowed”: Your bootloader is locked. Unlock it first using the fastboot command in step 5.
  • Device stuck on boot animation: This can happen after a dirty flash. Boot into recovery (hold Power + Volume Down) and select Wipe data/factory reset, then reboot.
  • OTA update not showing: Ensure you’re enrolled in the beta program and your device is compatible. Sometimes it takes a few hours—check again later.
  • Battery drains fast after update: This is normal for the first day as the system optimizes apps. If it persists, clear the cache partition from recovery mode.
  • Apps crashing: Some apps aren’t compatible with the preview. Check the Play Store for updates, or uninstall/reinstall the app.

Frequently Asked Questions

Will I lose my data?

Yes, with the factory image method, your device is wiped. The OTA method preserves your data.

Can I go back to the stable Android version?

Yes. You can flash a stable factory image (which wipes data) or unenroll from the beta program to receive a stable OTA (also wipes data).

Is the Android N Preview stable enough for daily use?

It’s a developer preview, so bugs and performance issues are expected. It’s not recommended for your primary phone unless you’re comfortable troubleshooting.

Do I need to unlock the bootloader for the OTA method?

No, the OTA method works with a locked bootloader.

What if my Nexus device is not listed on the beta site?

Only certain devices (Nexus 5X, 6P, 6, 9, Player, Pixel C) are eligible. If yours isn’t listed, it’s not supported.

Will I get future preview updates automatically?

Yes, if you’re enrolled in the beta program, you’ll receive subsequent preview OTA updates automatically.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →