Rooting nexus 5X/6P

so a while back i promised that i would write a tutorial on rooting the nexus 5x and nexus 6p, the method of rooting any device is reasonably similar but don’t follow this guide for any devices other than the nexus 2015 brothers.

DISCLAIMER: I will not be held responsible for any bricked devices, follow guide with caution. this process will delete ALL data on the device, i suggest you back up anything important.

so the rooting process is the same for the nexus 5x and 6p so you don’t have to try to find the right part of the guide. YAY 😀

There are 2 types of root, the system root and the system-less root. What this means is that the system root will be modifying the /system partition and the system-less root modifies the /boot partition, now if you don’t know what this means then rooting is probably not for you. the system root will trigger a process called safety net, what this does is detect that the device has had its software modified and disables features like android pay to prevent fraud. system-less tries to avoid this but google has caught on to the system-less root process and worked out a way to detect it, this was applied by an OTA update which you may or may not have so I’m going to cover system-less anyway.

To start off with you want to download the right version of TWRP or CWM for your device, for this tutorial, we will be using TWRP.

You’ll want to download the latest version of TWRP for your device.
Nexus 5x
Nexus 6p

You’ll also need SuperSU and the appropriate ADB tools for your computer (google this for the latest ones)

First, you’ll need to allow OEM unlocking, what this does is disables a security mechanism that would otherwise break your phone if you try to do this. to enable OEM unlocking go to settings>About Phone, scroll all the way down and repeatedly tap on build number until a message comes up saying you are now a developer.

Second, you need to enable ADB debugging, go to settings>developer options and enable ADB debugging

Third, plug your phone into a your computer, open a command line and type “adb devices” it should say it’s starting a daemon and a message should pop up on your phone asking if you want to trust this computer, click yes.

If you don’t see a popup or the command says your device is offline, you need a newer version of the ADB command, this is because google has a security key in the command that needs to be present in order for the command to work.

Fourth type “ADB reboot bootloader” what this does is reboot the device into the bootloader and allowing the insertion of custom code.

Fifth type “Fastboot OEM unlock” WARNING THIS IS THE PART THAT DELETES EVERYTHGIN, NO GOING BACK NOW. another popup will display on your phone asking if you want to continue, use the volume keys to select yes and the power button to continue

Sixth type “fastboot flash recovery path to TWRP this could be “fastboot flash recovery ~\Downloads\twrp-3.0.2-0-bullhead.img” what this is doing is installing the custom recovery.

NOTE: If you want systemless root make the TWRP file read-only before flashing. if you are doing this you will need a patched boot image.

Seventh type “fastboot reboot-bootloader” then use the volume keys to select recovery mode and the power button to enter

You should now be in the recovery mode

Eighth type “ADB push path to SuperSU \sdcard” this will copy the SuperSU zip file to your phone.

Ninth, on your phone press install then press the SuperSu zip file, swipe to install and let it do its magic.

That’s it, you should now be rooted, if you are using the systemless root, it should automatically patch the boot image, if not patched boot images can be found
here for the 5x (build numbers MDB08I, MDB08L, & MDB08M)
here for the 6p (build numbers MDB08K, MDB08L, & MDB08M)

Leave a comment

Your email address will not be published.