Monday 13 July 2015

Filled Under:
,

Install Android M Developer Preview into Your Nexus 5,6,9 here's how

After being released at Google I/O 2015 in late May, the Android M Developer Preview has just seen the first of three planned updates prior to its final release. In this tutorial we'll show you how to install Android M Developer Preview 2 on your Nexus 5, Nexus 6, Nexus 9 or Nexus Player.

Note: The Android M developer preview has only been released for the Nexus 5, Nexus 6, Nexus 9 and Nexus Player right now, so if you do not have one of those devices do not try to flash the firmware or you will be in for a world of pain. Or at least you won't get very far. In any case, this process will wipe your device, so make sure you have a backup before you proceed.

AndroidPIT Google I O 2015 Android M Developer Preview teaser

How to get the Android M developer preview 2

If you want to know how to flash Android M, it couldn't be simpler. The Android M preview works just like any other Nexus factory image - simply download the file and flash it.

Prerequisites

  • Download ADB Tools and unpack the zip file
  • Download Android M preview for your Nexus (and unpack it in the ADB Tools folder):
  • Nexus 5 | Nexus 6 | Nexus 9 | Nexus Player
  • An unlocked bootloader
  • USB Debugging enabled
  • The relevant drivers installed on your computer

Install Android M on your Nexus now

1. Turn your Nexus off.

2. Press and hold Power and Volume Down to restart your Nexus to the bootloader (see image below).

AndroidPIT Nexus5 Fastboot Start

3. Connect your Nexus to your computer with a USB cable.

4. Open a Windows Explorer window and find the unpacked firmware you downloaded to the ADB Tools folder.

5. Double click the flash-all.bat file and let it do its thing.

6. Your Nexus will reboot and be running the Android M preview, version 2. If it doesn't, check the troubleshooting section below
AndroidPIT flash all bat nexus 5 hammerhead

Troubleshooting

If you have a problem before installation, make sure you have USB Debugging enabled and an unlocked bootloader as described in the linked guide above.
Bootloop
If you get stuck in a bootloop (your Nexus sticks on the loading screen at startup), you can try to clear the cache partition first by going back to the bootloader and using the volume keys to enter Recovery Mode (use the Power button to confirm your selection). Once you've wiped the cache partition you can try to reboot.
If you still don't get past the boot screen, go back to Recovery and select wipe data/factory reset and press the Power button to confirm. This should clear things right up.
ADB problems
If you get an error message in the command prompt window telling you you're missing the system.img file, do the following: unpack the image.zip file as well and copy and paste those files into the same place as the rest of the unpacked files (this should be the ADB Tools folder alongside the as adb.exe and fastboot.exe). 
Then, open a command window (hold Shift and right click, select ''Open command window here'') and enter the following commands:
  • fastboot flash bootloader <bootloader-filename>.img
  • fastboot reboot-bootloader
  • fastboot flash recovery recovery.img
  • fastboot flash boot boot.img
  • fastboot flash system system.img
  • fastboot flash cache cache.img
  • fastboot flash vendor vendor.img
Once your Nexus reboots it should be running the Android M preview. You won't have full functionality, but you'll get a good look at what everyone else will be getting in a few months time.
Have you installed the Android M preview yet? What do you like so far?




0 comments:

Post a Comment