If you have been living under a rock, this would probably come as a shock to you: Android M aka Android 6.0 is out for all Nexus devices. Now, you can simply sit around and wait for the OTA to take you to the land of Marshmallows or you can be like us and manually flash Android 6.0 onto your Nexus phone by following Google’s simple flashing guide linked here.
The guide itself is quite well detailed and doesn’t really need any further explanation. However, if the method presecribed by Google doesn’t work for you, we have come up with a troubleshooting guide that will circumvent any errors that might arise during the problem.
ADB Commands do NOT work:
If you can’t boot to the bootloader as adb commands return various errors, make sure that there are no conflicting driver softwares present on your computer. Also, make sure that your Nexus is the only Android device plugged into the computer and you have no virtual Android software such as BluStacks running on your computer.
The Script Says “You’re Missing System.IMG”:
If this happens, first ensure that the download wasn’t corrupted in any way. After you have confirmed this, simply extract the image.zip file and place them in the folder containing the adb and fastboot binaries (alternatively, you can always drag and drop the files after typing the command) and type 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
- fastboot reboot
You’re Stuck in a BootLoop:
Boot into the device’s Recovery by pressing and holding Power + Vol. UP key as the device reboots and do a full delvik cache and cache wipe as well as a factory reset. After you have done that, do a system reboot and you will be fine. If it doesn’t help, simply rerun the script after ensuring that your download wasn’t corrupted in anyway.