How to Install Android M Developer preview

Pin It

Android M preview images have dropped for the Nexus devices and the mad scramble has ensued among all the Android enthusiasts to flash them on to their devices. If you want to join in on the fun and frenzy , our article today is what you need to read. Read on after the break to know more!


Pre Requisites

  • You need to have your bootloader unlocked for this procedure.
  • You must have a Nexus 5,6 or 9 to install the developer preview
  • Your PC needs to have ADB installed on it.


  • The Nexus 5 download images can be had here.
  • The nexus 6 images can be downloaded form here.
  • The HTC Nexus 9 preview images can be found from here.
  • The Nexus Player images can be also downloaded from here.

Step 1

If you want to preserve your data then head on over to this article before you progress. Follow all the steps one by one. Once you’re done come back here. Alternatively if you’re not worried about loosing data, head on over to the next step!

Step 2

you need to boot into your bootloader to flash the factory image. Run the command “adb reboot bootloader” again to get there. Alternatively, you could start up the device while holding the volume down and power keys simultaneously to boot into the bootloader.

Step 3

Now point your command line to the file directory with the flash-all script. (Ex: cd /Users/<yourusername>/Downloads/hammerhead-lrx21o).

Step 4

Once you’ve pointed to the correct directory, run your script.

  • On Unix, run ./
  • On Windows, run flash-all.bat

Step 5

Now you should see the script running on-screen. It’ll take a little over five minutes for the image to install. Once the image is installed, the script will automatically reboot your phone. The first boot usually takes a while, so wait about 10 minutes before assuming you’ve entered a bootloop.

Maunal Flashing

Some users have had issues with the flash-all script not working on the Nexus 5, 6, and other devices. If that’s the case with you, you’re going to need to flash all of the images manually. It’s not a hard process, though, and only requires a few extra steps. Make sure your device is in the proper bootloader state, and then follow these instructions:

First, flash the bootloader and the radio, and then reboot the bootloader (radio only applies to some devices):

fastboot flash bootloader <bootloader file name here>.img
fastboot flash radio <radio file name here>.img

fastboot reboot-bootloader

Flash the recovery, boot, system, and vendor images (vendor only applies to the Nexus 9):

fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img

Recommended: For a full wipe, flash cache and userdata as well (userdata only applies to some devices):

fastboot flash cache cache.img
fastboot flash userdata userdata.img

Reboot your device:

fastboot reboot

After the phone/tablet boots, you should have Android M and, if you opted to modify the flash-all script, all of your data should be intact.

Subscribe To Get Latest Rooting Guides

Subscribe us to get all latest rooting guides and custom ROMs directly in your inbox.

Android VPN

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge