If you’re like most Android users, you probably don’t bother rooting your device. But if you’re looking to customize your Android experience or add some extra security, rooting is the way to go. Here’s how to root your Android Marshmallow device.

  1. If you haven’t already done so, download and install the Android SDK and ADB tools on your computer.
  2. Connect your Android Marshmallow device to your computer using a USB cable.
  3. Open a command prompt window on your computer and type adb reboot bootloader. This will reboot your device into the bootloader mode.
  4. Type fastboot oem get_unlock_code and press Enter to get the unlock code for your device.
  5. Type fastboot flash unlock UNLOCK_CODE where UNLOCK_CODE is the unlock code that you obtained in step 4.
  6. Type fastboot reboot and press Enter to restart your device once the unlock code has been successfully flashed onto your device ..