How to Flash and Root Android 6.0 Marshmallow on Nexus

As promised, Google delivered the Android 6.0 – Marshmallow Factory Images for Nexus devices. All the Nexus forums have been buzzing with threads and posts ever since the image was posted online.

Most of the queries are regarding the Flashing procedure and then how to Root Android 6.0 – Marshmallow. In this post, I will cover the flashing and rooting process for Marshmallow on Nexus 6.

The process can be broken down to 4 simple steps.

  1. Backup & Setup.
  2. Unlock Bootloader.
  3. Flash Factory Image.
  4. Root.

Here we go.

1. Backup & Setup.

Unlocking Bootloader and Flashing the Userdata in the Factory Image erases your entire device so make sure you copy everything. I mean everything from Photos to Music on your device. Keep a copy of it on your hard disk.

In order to Flash and Root, you need to setup the Android SDK (not the complete sdk) & your device drivers. So download SDK Installer or Zip from here : Android SDK Tools.

Open SDK Manager once its done, Install the Google USB Drivers from the list.

Once that is done, find a folder named platform-tools in the SDK folder. You need to keep this folder handy as we will be using it a lot.

2. Unlock Bootloader.

Step 1. Open Settings > About phone. Tap 6 times on the Build Number option, you have now enabled the Developer options.

Step 2. Open Developer Options from the Settings > Enable USB Debugging & Enable OEM Unlock. Connect your device to your computer, your device will ask if you want to allow the connection, check always allow.

Step 3. Go to the platform-tools folder and open a command prompt in the folder (hold shift right click > Open command window here). Type in

adb devices

If your device is detected in there, proceed. Else reinstall the drivers.

Step 4. Next type in this command to reboot to bootloader mode.

adb reboot bootloader

Step 5. Once you see a screen with the Android robot, type in:

fastboot oem unlock

Step 6. A bootloader unlock confirmation page will appear. Press Volume Up to highlight Yes, and Power button to select it.

Step 7. Now your phone will reboot soon and undergo Factory reset. Next time it reboots, you will see an unlock icon below the Google logo while booting up.

Flash Factory Image.

Step 1. Download the Android 6.0 – Marshmallow factory image from here : Nexus 6 Marshmallow Factory Image.

Step 2. Extract it till you get a folder named “shamu-mra58k”. You might need 7Zip to extract the TGZ image file.

Step 3. Open the platform-tools folder and copy everything from there into the “shamu-mra58k” folder.

Step 4. Reboot into fastboot mode (adb reboot bootloader) and then go to shamu folder.

Step 5. Run the batch file named : flash-all.bat

Step 6. Let the command prompt run completely and then it will reboot your phone into Marshmallow. Woot woot!

Rooting.

Rooting your Nexus 6 running Marshmallow is a bit different than previous versions because now you need to have a Custom Kernel that has disabled System Write Protection. So this is how you do it.

Step 1. Download the following:

  1. TWRP Recovery.
  2. HellsCore Kernel.
  3. SuperSU.

Step 2. Copy the TWRP file into platform-tools and reboot your phone into fastboot mode.

Step 3. Run the following command:

fastboot flash recovery twrp.img

followed by

fastboot reboot

Replace twrp.img with the filename of the twrp image you downloaded.

Step 4. Now copy the Hellscore kernel and Supersu zip files into your Internal Storage on your device and reboot to recovery using the following command.

adb reboot recovery

Step 5. Once in TWRP recovery, navigate to Install and find the Hellscore kernel zip file. Swipe to Confirm Flash, then do the same with the SuperSu zip file.

Step 6. Reboot to System and you are rooted.

Hope this guide worked well for you. Do visit XDA to stay updated with new updates to Kernels, Recoverys and other news.

Do share it on Facebook, Twitter and Google Plus if it worked well for you.

Continue reading here: Netflix India Review and List of All Shows & Movies

Was this article helpful?

0 0

Readers' Questions

  • ARLO
    How to root nexus 5 marshmallow?
    1 year ago
    1. Download the latest version of SuperSU from <a href="https://www.supersu.com/download." >https://www.supersu.com/download.</a>
    2. Transfer the file to your device's storage.
    3. Boot your Nexus 5 into recovery mode by pressing and holding the Volume Down and Power buttons at the same time.
    4. From the recovery mode, select the install zip from sdcard option.
    5. Find the SuperSU zip file you downloaded and select it to install.
    6. Once the installation is complete, select the reboot system now option to reboot your device.
    7. Your Nexus 5 should now be rooted.
    • Mari
      How to root any android 6.0 marshmallow devices?
      1 year ago
      1. Check Your Device's Compatibility: The first step to rooting any Android Marshmallow device is to ensure that it is actually compatible with the process. Check to make sure your device is compatible with a specific rooting method before proceeding.
      2. Download the Required Files: To begin rooting your device, download the necessary software and files for the particular rooting method you plan to use.
      3. Enable USB Debugging: Once you have the required files, you’ll need to enable USB debugging on your device. This will allow you to connect your device to your computer and begin the rooting process.
      4. Install the Rooting Software: After enabling USB debugging, you should then be able to install the rooting software on your computer, and then connect your phone or tablet to that computer via USB.
      5. Follow the On-Screen Instructions: The rooting software should then provide you with a list of steps to follow on your device. Make sure to follow every step closely and carefully.
      6. Reboot Your Device: Finally, once the rooting process is complete, it is recommended to reboot your device. This will ensure that your device is free from any potential errors that may have occurred during the rooting process.
      • Sauli
        How to flash marshmallow?
        1 year ago
        1. Make sure your device is fully charged, and that you have backed up all of your important data.
        2. Download the latest version of the firmware package for your device from the manufacturer's website.
        3. Install the firmware package by following the onscreen instructions.
        4. Reboot your device once the installation is complete.
        5. Once your device is back up, head to the Settings menu and check that the version of Android has been updated to Marshmallow.