This post will be about how to download and install the developer preview for Android M. On Thursday Google unveiled new version of their android operating system under the code name Android M. Although it will be quite awhile before the update will be released (probably in Q3 of this year) you can still download the developer preview and try out an early build of the OS for your self. Note that the preview is currently available for only four devices the Nexus 5, 6, 9 and the Nexus Player.
Be aware this update is not intended for the “average user” and is meant for developers. We highly suggest that you DON’T install this preview on your main device and be aware that this it is only a preview and could have bugs and issues that the team at Google has yet to fix. Also, if you don’t be careful you run the risk of bricking your device! If after this warning you have a spare Nexus device and want to try to install the preview please proceed to the rest of the post.
How to install Android M
- Download the latest Android Studio Preview on your Windows computer. This will install ADB and fast boot which you can use from the command prompt.
- Add the SDK folder to the PATH using the following steps
- Right click on My Computer and click on properties
- Click on advanced system settings
- Click on System Properties > Advanced > Environment Variables.
- A window will pop up. Select path, then click on edit and type in the name of the directory where you installed the SDK. (each entry is separated by a semi colon ; )
- Make sure to enable USB debugging on your device if it isn’t already by going to Settings > About Phone > Software Information.
- Tap build number 7 times to activate developer mode and then go to Settings > Developer Options and turn on USB debugging.
- Download the latest factory image for your Nexus device: Android M for Nexus 5, Android M for Nexus 5, Android M for Nexus 9 or Android M for Nexus Player.
- Extract the image on to your desktop
- Connect your device to your computer
- Start your device in fastboot mode. To do this you must do a key combination that is specific to each device. Click here to view the full list of key combos.
- Open a cmd prompt and find the unzipped image. (Remember Cd followed by the name of the directory is how you access the directory you want and dir is to list all the files that are in the directory)
- Execute flash-all.bat. This command will install all the necessary boot loader, base band firmware’s and OS. If this is not working make sure you did step 2 correctly.
- When this is done you should lock the boot loader for security reasons. To do that boot the device into fastboot mode while it is still connected to your computer and using the command terminal execute: fastboot oem lock
- Congratulations you are done! Android M will be receiving OTA every month with bug fixes and some new features until the final version is released to the public.