How to: Manually flash Android Marshmallow on Nexus
Google has started rolling the Marshmallow updates to the Nexus devices. If you haven’t got it already, here is how to manually flash it on your Nexus 5. I have done the same on my Nexus 5, but the steps are same for Nexus 6,7, 9 and the Player. There are many ways to flash a ROM. The most popular way is to flash a zip file using a recovery application like the TWRP. The method below does not need a custom recovery image on the mobile. You can use the command prompt on your computer to execute the commands and flash the ROM. It is pretty simple, but not straight forward.
Before you start the process
- Charge your mobile to 100%.
- Take a complete back up of your data.
- Install USB drivers for your Nexus device on the computer.
- Enable USB debugging in your mobile. Go to Settings and open Developer Options to enable USB debugging. If you have not enabled USB debugging, enable it by tapping conitnously on the build number under Device information in Settings.
Files to be downloaded
- Download the Android Marshmallow factory images files, appropriate to your device
- Download the ADB/Fastboot drivers
- Download the Fastboot and ADB files and unzip it to a specific folder in your system. Lets name it <NexusMarsh>. I am using Windows for this exercise. So extract only the contents of the Windows subfolder into <NexusMarsh>.
Unzip the Android Marshmallow Factory image file and extract it to the folder <NexusMarsh>. Connect your Mobile to your computer with the USB cable.
Press Shift button and rightclick from the folder <NexusMarsh> and select “Open Command Window here”. This will open the command prompt from this path. Now type: “fastboot devices”. If you see a device with a random code, you are all set. If you dont, you will need to install the USB drivers for your mobile.
Step 3: Can be skipped if you have already unlocked your bootloader.
Unlocking the bootloader will erase all data. So make sure you have a backup of your data before proceeding. Type in the following commands
adb reboot bootloader fastboot oem unlock
It will take some time. But the bootloader is now unlocked and you can flash any ROM.
Let now flash the Marshmallow on the device. The factory image file you have extracted will have a file called flash-all.bat. This file is a batch file which has all the required commands to flash the image on the device. So type it on the same command window
Step 5: Optional
You can choose to lock your bootloader by typing the following commands.
adb reboot bootloader fastboot oem lock
I keep playing with my mobile and loading new ROMs now and then, so I choose to keep the bootloader unlocked.
After Step 4, your device will reboot and you will see the Marshmallow bootup animation. For the first time, the boot animation may run for long. It ran for 15 min for me. Nothing to panic as it is perfectly normal. Once it is booted up, you have the new version of Android on your mobile. Let me know if you face any challenges.