How to Download and Install Android M on Your Nexus 5, 6, 9, and Player

sundar_pichai_google_io_2015.jpg

While only a fraction of Android phones are running Android Lollipop yet, Android M, the latest version of India’s most popular mobile operating system, was announced at Google I/O 2015 on Thursday. While Android M is still some away from being ready for rollout, the preview version for developers is now available.

(Also see: Android M: Top New Features in the Next Major Android Release)

This version of the OS is not ready for most people and we strongly suggest that you do not try installing this on your primary device as there is a good chance that there are bugs to iron out at this stage. If you have a spare Nexus device that you want to try the Android M preview on, then you can go ahead and follow the steps described later in this article. Before you do that, it’s vital to take a full backup of your Android smartphone.

(Also see: Google Photos With Free, Unlimited Storage: 10 Things You Need to Know)

Android M preview is currently available on just four devices – Google Nexus 5, Google Nexus 6, Google Nexus 9, and GoogleNexus Player.

(Also see: Google Maps to Get New Offline Search, Turn-by-Turn Navigation Features)

Here’s how to manually download Android M preview and install it on your Google Nexus devices.

  1. Download and install the latest Android Studio Preview on your Windows computer. This installs the ADB and Fastboot programmes, which can be accessed through the command terminal on your PC.

  2. Add the SDK folder to the PATH by following these steps:

  3. Right click My Computer and click on Properties.

  4. Click on Advanced System Settings.

  5. Click on System Properties > Advanced > Environment Variables.

  6. In the Window, select Path, then click on Edit, and then type in the name of the directory where you installed the SDK, and remember that each entry is separated by a semi-colon.

  7. Enable USB debugging on your device. First, go to Settings > About Phone > Software information.

  8. Tap Build number seven times.

  9. Go to Settings > Developer options. Tick USB debugging.

  10. Download the correct factory image for your device.

    Android M for Nexus 5

    Android M for Nexus 6

    Android M for Nexus 9

    Android M for Nexus Player

  11. Extract the image on your computer.

  12. Connect your device to your computer over USB.

  13. Start the device in fastboot mode.

The easiest way to do this is to hold a key combination while powering up the device. For Nexus 5, hold the volume up, volume down and power buttons while powering on the device. The full list of key combinations for different devices is here.

(Also see: Chromecast Gets New Autoplay, Gaming, Second Screen Features, and More)

You can also boot into fastboot mode using the ADB tool: With the device powered on, go to the command terminal and execute the following: adb reboot bootloader

If needed, unlock the device’s bootloader through your computer using the command terminal and executing: fastboot oem unlock

  1. Open a command terminal and navigate to the unzipped system image directory.

  2. Execute flash-all.bat, which was a part of the unzipped image file. This script installs the necessary bootloader, baseband firmware(s), and operating system. For this to work, you need to have added the folder where ADB and Fastboot are installed to the system’s path as described in step 2.

  3. When this is done, Google recommends that you lock the bootloader for security. You can do that by booting the device in fastboot mode while still connected via USB, and using the command terminal to execute: fastboot oem lock.

(Also see: Android Wear to Get Always-on Apps, Wrist Gestures, and More; Now With Over 4,000 Apps)

That will install Android M preview on your Nexus device. Android M will receive monthly OTA updates until the final version ships, according to a report, so you won’t have to repeat this complicated process again. We still recommend that you just wait a while until the OTA update arrives on your device, unless you want to stay on the bleeding edge of smartphone OS development.

For more tutorials, head to our How To section.

Full coverage of Google I/O 2015.