How to Download and Install Android M Developer Preview on Your Nexus Device
Google has announced the next version of Android operating system, code-named Android M, at its Google I/O developer conference in San Francisco. Though the OS will bring a number of new features including Android Pay, App links and Now on tap – to name a few – Android M focuses on improving the stability and usability of the Android ecosystem.
With that said, it is unlikely that the final version of Android M will reach consumers until November at the earliest. However, if you have a Nexus 5, Nexus 6, Nexus 9 or Nexus Player and you’re can’t wait to get your hands on Android M, the first Developer Preview is now available for download. Follow this guide to know how to install Android M on your Nexus device.
Be warned however, as the software is in its very early stages and it’s going to be buggy with janky performance. Also, keep in mind that installing a system image on your device will wipe all data from it. Please make sure that you backup your data and settings on the device before you proceed.
Note: This guide assumes that you already have Fastboot and ADB installed on your system. If you don’t, head over and download the Android SDK.
Disclaimer: TechFrag will not be held liable for any potential damage caused to your device as a result of following this guide. So users are advised to proceed at their own risk.
Install Android M Developer Preview on the Nexus 5, 6, 9, or Player
Unlock your bootloader in Developer options. Go into Settings -> Developer options on your device. Once there, look for “OEM unlocking” and make sure that it is enabled.
Download the Android M preview images from below links.
Extract the contents of the downloaded Android M file to a new folder on your desktop. We recommend you to use the free 7-Zip utility to achieve this. Now, copy the extracted files into the ADB Tools folder: C:\Program Files (x86)\Minimal ADB and Fastboot.
Open Developer Options and enable USB Debugging on your device.
Now, plug your Nexus device into your Windows PC via USB cable.
Restart your phone into the bootloader mode by following the command below:
adb reboot bootloader
Go to the unzipped system image directory and issue the following command there:
This will run all of the fastboot commands needed to flash the complete image on your device.
Once the installation is finished, your device will reboot into Android M.
If the flash-all.bat fails and you get an error message saying the system.img file is missing, then do the following.
Unzip the image.zip, copy and paste the content into the unzipped system image directory (ADB Tools folder). Then open a command window there and issue the following commands:
fastboot flash bootloader < bootloader-filename >.img
fastboot flash radio < radio-fileame >.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
Your device should then restart running Android M. Enjoy!