Google Nexus 5X is the one of the two Nexus devices that were launched last month with huge show and pomp. The Nexus range of devices have immense popularity among the smartphone lovers, thanks to the smooth vanilla Android OS that comes with near zero junk apps. The Nexus 5X and Nexus 6P comes with the latest Android 6.0 Marshmallow software out-of-the-box. As expected, rooting a new Android version is really a nightmare for the developers but finally a rooting procedure for Nexus 5X is out.
With Chainfire’s new SuperSU v2.52 build, the Android 6.0 Marshmallow firmware can now be rooted on Nexus 5X with a modified boot image. Before rooting your Nexus 5X, you need to unlock the bootloader of the device in order to install a custom recovery like TWRP or a custom boot image using ADB and Fastboot commands. Once you have a working custom recovery, you can simply flash the SuperSU file to root your device.
So, without any further ado, let’s see how to unlock bootloader, install TWRP and root Nexus 5X in a simple yet detailed manner. Before we begin with the rooting tutorial, we recommend you to follow the below knowledge articles to learn about rooting, custom recoveries and their pros & cons.
To disable encryption: To disable encryption, skip through all the setup when asked for wiping after unlocking the bootloader. Select Allow modifications when you first boot into TWRP recovery and then format data. Reboot the device once before you flash the SuperSU file to check the encryption status of your phone . To check it, open Settings » Security » Encrypt phone, if it show option to encrypt your device, then it’s not encrypted currently. Finally, reboot the device to recovery mode and then flash SuperSU file to attain root.
Rooting a device and installing custom modules is deemed hazardous and you might end up with a bricked device in worst case scenario. Warranty may be void of your device either temporarily or permanently if you follow the procedure in this tutorial. You alone are responsible for the consequences, we won’t be liable if any damage occurs to your device even though we’re confident that the process works and is tested by many users. However, you can reach us for assistance in the comments section.
- Charge your device above 60% to make sure it doesn’t die in the middle of the process which may be fatal sometimes.
- Make a backup of everything on your device so that you can restore the files if something goes wrong. Here’s the usual checklist:
- Install proper drivers on your PC. If you haven’t installed them already, you can follow our detailed USB driver installation guide.
- Setup ADB and Fastboot files on your PC. If you don’t know how, follow our detailed guide on how to setup ADB and Fastboot on your PC.
- Prepare your device:
- Enable developer options: Go to your device’s Settings » About phone » Scroll to the bottom and tap on “Build number” seven times to enable developer options.
- Enable USB Debugging: Go to your device’s Settings » Developer options » tick the “USB debugging” check-box (sometimes listed as Android Debugging)
- Enable OEM Unlock: Go to your device’s Settings » Developer options » tick the “OEM Unlock” checkbox.
- Nexus 5X Modified Boot image → Download Link
- Download the latest TWRP recovery for Nexus 5X → Download Link
- Download SuperSU v2.52 zip → Download Link
Step-By-Step Installation Guide
In this guide, first we will unlock the bootloader on your Nexus 5X and install modified boot image and TWRP recovery. Then we will install the SuperSU file to root Nexus 5X. So, without any ado, let’s start with the guide.
Phase 1: Unlock the Bootloader
Unlocking the bootloader on the Nexus 5X would wipe the entire device, so it’s important that you take a thorough backup of your device before proceeding with this guide.
- Connect your Nexus 5X to the PC using a USB cable and make sure it’s detected. If not make sure that you’ve installed proper USB drivers and enabled USB debugging.
- Once detected, tap on the USB icon in the notifications panel and select MTP file transfer mode.
- Open the command prompt in the PC and type the below command:
- To confirm that your device is recognized by ADB, a message will appear “List of devices attached” along with your device serial number.
- Once you find your device’s serial number appearing in the message then type the below command in the command prompt to reboot into fastboot mode.
adb reboot bootloader
- Now, type the below command to unlock the bootloader.
fastboot oem unlock
That’s it. You have successfully unlocked the bootloader of your Nexus 5X. Reboot your device once and skip all the setup to avoid encrypting the device.
Phase 2: Install TWRP Recovery and Modified boot image
- Connect your Nexus 5X device to PC via USB cable.
- Open the command prompt in your PC and type the below command to confirm your device was detected by the PC.
If everything is good, a message will appear “List of devices attached” along with your device’s serial number. If your device is not visible, then try reconnecting your device again and type the above command.
- Now type the below command in the command prompt to enter into fastboot/bootloader mode on your device.
adb reboot bootloader
- Download the TWRP file and modified boot image from the download section above and rename the downloaded recovery image file to recovery.img and modified boot image to boot.img for convenience.
- Navigate to the path where you’ve placed the TWRP image & boot image and open a command prompt in that folder by pressing Shift +Right click in any empty space inside the folder, and select Open command window here from the Windows context menu.
- Type the below command to flash modified boot image on your device.
fastboot flash boot boot.img
- Now type the below command to flash TWRP recovery on your device.
fastboot flash recovery recovery.img
- Now you can reboot the device using the below command.
Phase 3: Root your Device
Now all you need to do is to flash the SuperSU binary from the custom recovery to root your device. If you don’t know how, follow the step-by-step from below.
- Download the latest SuperSU zip from the downloads section and transfer it to your device’s storage.
- Now boot your device into the recovery mode. To do this, execute this command in the CMD window.
adb reboot recovery
- Now that you’re in recovery, it’s best to make a nandroid backup of your device. If you’re not sure of the procedure, follow our definitive guide on how to take a nandroid backup on various recoveries.
- In the recovery, tap the Install ZIP button and select the SuperSU zip to flash it. For more detailed instruction for flashing zips on different recoveries, follow our definitive guide here.
- Once the SuperSU zip is flashed, reboot your device by selecting the Reboot system option from the recovery menu.
- To verify if the device is rooted or not, install the below app and open it to verify.
That’s all! Reach us in the comments section below for any queries or assistance regarding the process in the tutorial. Also, do suggest any modifications or additions to this simple guide, your feedback is important to improve our content and services.
If you find our tutorial useful, kindly share this tutorial with others using the share buttons below. Remember, Sharing is Caring!