Unlock Bootloader, Install TWRP and Root Nexus 5X


Rooting is highly essential for anyone who wants to associate their Android phone with custom features. But then, rooting your Android has its own pre requirements. On Nexus devices, these requirements are pretty specific.

We have recently seen the two latest Nexus flagships by Google – Nexus 5X and Nexus 6P. We have already covered an article to Unlock bootloader, Install TWRP and Root Nexus 6P, and today turns out to be the day for the Nexus 5X. The first thing would be to unlock the phone’s bootloader and then install TWRP recovery. Thereafter, we will make use of TWRP to flash Chainfire SuperSU root package.

Unlock bootloader, TWRP, and Root Nexus 5X

The LG-built Google Nexus 5X was built to concrete the old foundation laid down by the Nexus 5. The phone has improvised overall in terms of hardware, design, and software, with Android Marshmallow 6.0 out-of-the-box. Without discussing any further, we will move on to unlock the bootloader, install TWRP and root Nexus 5X.


Rooting may void your phone’s warranty. TheCustomDroid shall not be held responsible for any damage to your Nexus 5X. If however, you come across any such issue, we will help you resolve it.


  • Backup your 5X completely, including your internal storage, SMS, contacts, calendars, etc.
  • Make sure your phone is charged to at least 60% battery level.
  • Enable USB debugging on your Nexus 5X. If you don’t know how you can follow the instructions here.
  • Download the platform tools package for ADB and fastboot. Extarct the zip so you have the platform-tools folder containing all the necessary binary files.



STEP 1: Unlock Bootloader & Install TWRP

The major part of rooting the Google Nexus 5X would be covered in this step. Download all the files listed above in the Downloads section of this article.

  1. To begin with the unlocking procedure, you will first need to enable OEM unlocking in Settings > Developer options.
    Enable OEM Unlocking on Android
  2. Power off your Nexus 5X. Press and hold the volume down and power button until you see the bootloader screen.
    Nexus 6P Bootloader Mode
  3. Now that your phone has entered bootloader mode, you can connect it to the PC via the USB Type-C cable.
  4. Copy the TWRP image (twrp-3.1.1-0-bullhead.img) to the platform-tools folder.
  5. Now navigate to the platform-tools folder. On a space inside the folder, press SHIFT key and right-click, and then select Open command window here from the pop-up menu that appears.
    NOTE: Unlocking the bootloader will wipe off everything including internal storage. Make sure you have a backup of everything before you begin.
  6. A new command-line window shall now open and you can enter the following command to start the unlocking process:
    fastboot flashing unlock
  7. A warning prompt will be displayed on the phone’s screen. Now using the volume keys highlight Yes, and select it by pressing the power button.
    Bootloader unlock warning
  8. Now, just keep everything where it is, and flash the TWRP recovery:
    fastboot flash recovery twrp-3.1.1-0-bullhead.img
  9. That would be it. You can now reboot the phone:
    fastboot reboot

STEP 2: Root Nexus 5X

  1. Connect your Nexus 5X to the PC via USB Type-C cable and transfer root package (SuperSU-v2.82-201705271822.zip) to the internal storage.
  2. Disconnect the device and power it off completely.
  3. The next step would be to boot into TWRP recovery mode. So, press the volume down and power keys altogether until you the see the bootloader screen. Now, use the volume buttons to highlight Recovery mode and press the power key to select it.
  4. Your Nexus 5X will now enter TWRP recovery.
  5. Tap on Install. Browse and select the SuperSU-v2.82-201705271822.zip package.
  6. Swipe the ‘Swipe to confirm Flash’ button on the bottom, to start the flashing process.
  7. When it’s done, tap on Reboot system.

Make sure to select Do Not Install if TWRP offers SuperSU installation.

Confirm the root process by downloading and running the Root Check app.

[appbox  com.jrummyapps.rootchecker googleplay ]

You have been successful to root Nexus 5X running Marshmallow 6.0. The process was pretty simple and doesn’t require any kind of expertize in Android. How has rooting benefited you and your Nexus 5X? Let us know via the comments.

Also, read – How to flash Factory Images on Nexus devices

Previous articleInstall Xposed Framework on Android Marshmallow
Next articleInstall Android Marshmallow on Xperia Z using CM13
I come with a background of operating and exploring Android devices since the last 6 years. I dwell on technology and Android to be precise. Its open-source nature and the enormous scope for possibilities have intrigued me ever since I operated my first Android device. All this ultimately led me to start "TheCustomDroid", where Android users can get the latest tips to customize their device. Apart from TheCustomDroid, I spend most of my time mountain biking and gaming on my Xbox.


Please enter your comment!
Please enter your name here