Install Android 6.0 Marshmallow on Your Nexus Right Now
In this article
Yes, you can install Android 6.0 Marshmallow on your Nexus device right now, but the exact steps depend on whether you want the official over-the-air (OTA) update or a manual flash. The OTA is the easiest and safest route, but it may not have reached your device yet. The manual method gives you immediate control and works even if the OTA hasn't arrived. Before you start, back up your data—flashing can wipe your device. You'll also need a computer, a USB cable, and your Nexus model's specific factory image from Google's official developer site.
What You'll Need
- A Nexus device (Nexus 5, 6, 7, 9, or Nexus Player) that supports Android 6.0
- A computer (Windows, Mac, or Linux) with a USB port
- A USB cable that can transfer data (not just charge)
- Your device's bootloader unlock code (if you plan to unlock the bootloader)
- Google's official factory image for your specific Nexus model—download from developers.google.com/android/images
- ADB and Fastboot tools installed on your computer—these come with the Android SDK Platform Tools
Step-by-Step
- Back up your data. Use the built-in backup (Settings > Backup & reset) or copy photos and files to your computer. Flashing can erase everything.
- 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!”
- Enable USB debugging. Go to Settings > Developer options and turn on “USB debugging.”
- Install ADB and Fastboot on your computer. Download the official Platform Tools from Google and extract them to a folder. On Windows, you may need to install the correct USB drivers.
- Unlock the bootloader (only if it's locked). Connect your device, open a command prompt/terminal in the Platform Tools folder, and run
adb reboot bootloader. Once in fastboot mode, runfastboot oem unlock(orfastboot flashing unlockon newer devices). This wipes your device, so do it before you start. Accept the warning on screen. - Download the correct factory image. On Google's images page, find your Nexus model and download the Marshmallow (6.0) image. Make sure it matches your exact model (e.g., hammerhead for Nexus 5, shamu for Nexus 6).
- Extract the factory image. Unzip the downloaded file. Inside, you'll find another zip (often named
image-*) and a few scripts (flash-all.bat for Windows, flash-all.sh for Mac/Linux). - Place the extracted files in the same folder as ADB/Fastboot. This makes it easy to run the flash script.
- Boot your device into fastboot mode. With the device off, hold Power + Volume Down for a few seconds. Or use
adb reboot bootloaderif you're already connected. - Run the flash script. On Windows, double-click
flash-all.bat. On Mac/Linux, open a terminal in that folder and run./flash-all.sh. This will flash the bootloader, radio, and system, then reboot automatically. - Wait for the process to finish. It takes a few minutes. When it's done, your device will reboot into Android 6.0. Do not unplug during this.
- Set up your device. If you unlocked the bootloader, you'll need to go through the initial setup again. Restore your backup if you made one.
Common Mistakes
- Downloading the wrong image. Using a Nexus 6 image on a Nexus 5 will fail or brick your device. Double-check the model name and codename.
- Not unlocking the bootloader first. If you skip step 5, the flash script will fail with an error like “FAILED (remote: not allowed).” You must unlock before flashing.
- Using a USB cable that only charges. Data transfer won't work, and ADB won't see your device. Try a different cable.
- Interrupting the flash. Pulling the cable or closing the window mid-flash can leave your device in a broken state. Be patient.
- Not enabling USB debugging. Without it, ADB commands won't work. Make sure it's on before connecting.
Tips
- If you want to keep your data, do not unlock the bootloader—it wipes everything. Instead, wait for the OTA update, which preserves your apps and settings.
- After flashing, you can relock the bootloader with
fastboot oem lock(orfastboot flashing lock). This wipes data again, so do it only if you're sure. - Use the official factory image, not a custom ROM or a random download. Google's images are signed and safe.
- If you're not comfortable with command lines, consider using the OTA update instead. Go to Settings > About phone > System updates and check for updates. It may take a few days to reach your device.
- Keep your device charged above 50% before flashing to avoid a shutdown mid-process.
Troubleshooting
If the flash script fails with “device not found”: Make sure your device is in fastboot mode (you should see “Fastboot” on the screen). Reinstall the USB drivers, try a different USB port, and check that you're running the command from the correct folder.
If you see “FAILED (remote: not allowed)” during flashing: Your bootloader is locked. Run fastboot oem unlock first, then re-run the flash script. This will wipe your data.
If the device boots into a boot loop (stuck on the Google logo): This usually means the flash didn't complete. Reboot into fastboot mode and run the flash script again. If that doesn't work, try a factory reset from recovery mode (Power + Volume Down, then select “Recovery” and wipe data).
If ADB doesn't recognize your device: Check that USB debugging is enabled, and on Windows, install the Google USB driver from the SDK Manager. Also try a different USB cable.
If the OTA update doesn't appear: Google rolls out updates in stages. You can force it by going to Settings > About phone > System updates and tapping “Check for updates.” If it's not there, you can manually flash as described above.
Frequently Asked Questions
Will installing Marshmallow erase my data?
Yes, if you unlock the bootloader or use the factory image flash, it wipes your device. The OTA update preserves your data.
Can I go back to Android 5.1 after installing Marshmallow?
Yes, you can flash the older factory image from Google's site, but it will wipe your data again. You'll also need to re-lock the bootloader if you want to restore warranty.
Is it safe to install on a Nexus 5?
Yes, the Nexus 5 is officially supported. Just make sure you download the correct image (hammerhead).
Do I need to root my device to install Marshmallow?
No. The factory image works on a stock, unrooted device. Rooting is a separate step and not required.
What if I get a “signature verification failed” error during OTA?
This usually means the OTA file is corrupted or your device is not fully stock. Try re-downloading the OTA or wait for the next update. If you've modified your system, you'll need to restore it first.
How long does the manual flash take?
Usually 5–10 minutes, depending on your computer and USB speed. The device will reboot once or twice.