Header Banner
gadgethacks.mark.png
Gadget Hacks Shop Apple Guides Android Guides iPhone Guides Mac Guides Pixel Guides Samsung Guides Tweaks & Hacks Privacy & Security Productivity Hacks Movies & TV Smartphone Gaming Music & Audio Travel Tips Videography Tips Chat Apps
Home
Android

How to Root the Nexus 6P or Nexus 5X on Windows, Mac, or Linux—The Foolproof Guide

Nov 11, 2015 08:47 PM
Nov 22, 2015 10:00 PM
Smartphone with a minimalist design and the brand logo "nexus"

This year, Google released two Nexus phones to glowing reviews, and as we've grown to expect, the Android community wasted no time in coming up with a root method for both. In fact, legendary root developer Chainfire even devised an entirely new "systemless" method for rooting that should make updating a bit less complicated, along with a few other benefits.

The new method roots your device without modifying Android's system partition at all—hence the systemless root moniker. This means that fewer of Android's built-in security measures need to be bypassed in order to gain root access, and in turn, early reports even indicate that Android Pay works with this new method.

Provided you have a PC, Mac, or Linux machine, rooting your shiny new toy is a relatively simple process. There are quite a few steps involved, though, but I'll go over each of them in as much detail as possible to make sure everything goes off without a hitch.

Before You Begin

Rooting an Android 6.0 Marshmallow device requires that you install a modified boot image, which means you'll need to unlock your device's bootloader. The process of unlocking your bootloader will wipe all data on your phone, so make sure you have any important files backed up on an separate storage device.

Additionally, you'll need to connect your phone to your computer to run a few commands. Considering that the Nexus 5X and 6P are among the first devices to ship with a USB type C connector, and most computers still use a USB type A connector, this means that you will likely need a USB-C to USB-A cable. For a list of these types of cables that fully comply with the new USB-C standard, head to this link.

Install the Android SDK on Your Computer

To begin, you'll need to grab a copy of the latest Android SDK. From your computer, head to the official site to download the file for your particular operating system.

SDK Tools download options for Windows and Linux.

The installation process will vary depending on your operating system. Windows users can simply launch the EXE file and follow the provided instructions to install the full Android SDK, which will be saved in the C:\Program Files (x86)\Android\ folder. Linux and Mac users will have to extract the contents of the ZIP to a folder that can be accessed easily. Take note of this folder's location, as you will need to copy some files here later.

How to Root the Nexus 6P or Nexus 5X on Windows, Mac, or Linux—The Foolproof Guide

From here, if you're using a Linux or Mac machine, open a terminal window and change directories to the /android-sdk-linux/tools/ or /android-sdk-macosx/tools/ folder that you just extracted. Next up, type android sdk (Linux) or ./android sdk (Mac) to launch the SDK Manager.

Terminal command line displaying directory navigation for Android tools.

After that, you'll need to download the Platform Tools package if you're using a Linux or Mac computer. Select the "Android SDK Platform-tools" option, then click the install button to take care of that.

Android SDK Manager interface displaying installed and uninstalled packages.

Install the ADB & Fastboot Drivers on Your Computer

Next up, for your computer to be able to fully interact with your Nexus, you'll have to make sure you have the ADB and Fastboot drivers installed on your system.

Windows Users:

If you own a Windows PC, you can download the drivers at this link. Just run the file, then follow the prompts, and you'll be good to go.

Linux Users:

If you're a Linux user, download and extract this ZIP file, then run the script with Terminal.

Mac Users:

For Mac users, the process of installing the proper drivers is a bit more involved. Please see our guide on the topic for more information.

Download the Neccesary Files

It's very important that you download the proper root files for your device and Android version. To make sure you're using the right files, open your phone's Settings menu, then scroll down and select "About phone." From here, make a note of the Build number listed at the bottom of the screen.

Kernel version and build number information from an Android device.

Next, if you're using a Nexus 5X, download the following files to your computer, making sure that the build number shown here matches the one on your phone:

If you're rooting a Nexus 6P, download the following files instead—but again, make sure the build numbers match up:

Then, regardless of your phone model or build number, download the SuperSU ZIP and transfer the file over to your phone:

Enable OEM Unlocking on Your Phone

From here, you'll need to enable Android's hidden "Developer options" menu so that you can then turn on a single option. Check out our full guide to see how to unlock it, if it's not already. In the "Developer options" menu, tap the "OEM unlocking" entry to enable it, then press "OK" when prompted to verify your choice.

Settings menu on a mobile device displaying various options.
Developer options settings screen on a mobile device.
Security settings for device management options with "Allow OEM unlocking" prompt.
Settings menu on a mobile device displaying various options.
Developer options settings screen on a mobile device.
Security settings for device management options with "Allow OEM unlocking" prompt.

Put Your Phone into Bootloader Mode

From here, you'll need to put your phone into bootloader mode. Start by powering your device completely off. When the screen goes black, press and hold the volume down and power buttons simultaneously. Within a few seconds, you'll see Android's bootloader menu (depicted below). From here, connect your phone to your computer using a USB data cable.

Android logo on a smartphone screen during a boot process.

Unlock the Bootloader

With the prep work out of the way, you're ready to get down to business. To begin, open a command prompt window, then change directories until you arrive at the /android-sdk/platform-tools/ folder. Windows users can simply open the C:\Program Files (x86)\Android\android-sdk\platform-tools\ folder, then hold down the shift button and right click any empty space, and choose "Open command window here."

How to Root the Nexus 6P or Nexus 5X on Windows, Mac, or Linux—The Foolproof Guide

Next, type in the following command and press enter:

  • fastboot devices

If this returns a series of letters and numbers, that means your device is connected properly and you're good to go. If it does not return any characters, there's a problem with your drivers, so revisit Step 2 or see our full troubleshooting guide here.

Command line interface displaying Fastboot devices list in Android SDK.

Now you're ready to unlock your device's bootloader, which will allow you to flash images manually. So enter the following command to begin:

  • fastboot flashing unlock
Command prompt window displaying the process of flashing an Android device.

At this point, you'll see a menu on your phone asking if you'd like to unlock your bootloader. Use the volume keys to highlight "Yes" on this menu, then press the power button on your phone to confirm your choice. Once you've done that, your phone will automatically wipe all of its data, then reboot into bootloader mode again.

Unlocking a smartphone with a prompt on the screen.

When you're done here, leave your phone in bootloader mode and keep the command prompt window open, since we'll be using both again later.

Move the Boot Image & TWRP to the Platform-Tools Folder

Next, copy the boot.img and twrp.img files that you downloaded in Step 3, then paste them into the /android-sdk/platform-tools folder on your computer. Again, the exact location of this directory will vary depending on your operating system, but Windows users can find it in C:\Program Files (x86)\Android\android-sdk\platform-tools. Note that you may have to provide administrator credentials to paste the files into this folder.

Folder directory view showing various files and folders on a computer.

Flash the Modfied Boot Image & TWRP

Next, switch over to the command prompt window that you opened in Step 6. From here, type in the following commands, pressing enter after each and waiting 30 seconds between commands:

  • fastboot flash boot boot.img
  • fastboot flash recovery twrp.img
Command line interface displaying fastboot device logs and file transfer status.

Make TWRP Your Permanent Recovery

Next, press your phone's volume down button twice to highlight the "Recovery mode" option on the bootloader menu, then press the power button to select it. From here, your device should boot directly into TWRP. At this point, you'll see a menu asking to make TWRP your permanent recovery, so swipe the slider at the bottom of the screen to do just that.

Android robot in recovery mode interface.
Alternative text: "Android system recovery screen with instructions for fixing the device."
Android robot in recovery mode interface.
Alternative text: "Android system recovery screen with instructions for fixing the device."

Flash the SuperSU ZIP to Root

When that process is finished, you'll be taken to TWRP's main menu. Tap the "Install" button here and use the file browser to select the SuperSU-2.56.zip file that you downloaded in Step 3, then swipe the slider at the bottom of the screen to flash the file.

Android recovery menu options screen.
How to Root the Nexus 6P or Nexus 5X on Windows, Mac, or Linux—The Foolproof Guide
Installation screen for incompatible software with options to add a zip file or cancel the process.
Android recovery menu options screen.
How to Root the Nexus 6P or Nexus 5X on Windows, Mac, or Linux—The Foolproof Guide
Installation screen for incompatible software with options to add a zip file or cancel the process.

When that's finished, tap the "Reboot System" button in the bottom-right corner. At this point, TWRP will say that "Your device does not appear to be rooted." This is because TWRP hasn't been updated to detect the new "Systemless" version of SuperSU, so ignore this message and tap the "Do not install" button.

Boot menu with options for system recovery and data management on an Android device.
Error message on a mobile device indicating that the device does not appear to be rooted, with an option to "Continue."
Boot menu with options for system recovery and data management on an Android device.
Error message on a mobile device indicating that the device does not appear to be rooted, with an option to "Continue."

Verify Root

When you get back up, your device should be fully rooted. To verify this, download an app called Root Checker from developer joeykrim.

Root Checker app interface with options to uninstall or open.

Once you've installed the app, simply open it up and tap "Verify Root." From here, tap "Grant" when prompted to give the app Superuser access, and if everything went off without a hitch, you'll see a message saying "Congratulations! Root access is properly installed on this device!"

Root Checker Basic app interface displaying verify root status and results options.
Root Checker Basic app requesting superuser access on an Android device.
Root Checker Basic app showing successful root verification message.
Root Checker Basic app interface displaying verify root status and results options.
Root Checker Basic app requesting superuser access on an Android device.
Root Checker Basic app showing successful root verification message.

More Information About Systemless Root

The best part about this new root method is that (so far), Android Pay seems to work without a hitch, and applying OTA updates shouldn't be as difficult as it was with previous root methods. In the future, provided you didn't make any significant changes to the system partition using root access, you should only have to flash the stock boot image with the fastboot flash boot boot.img command to get your device ready for a system update.

One downside, though, is that you will lose root access if you perform a factory reset. But getting it back shouldn't be much of an issue, since you'll only have to flash the SuperSU ZIP again in TWRP to re-root.

What are your thoughts on this new systemless root method? Let us know in the comment section below, or drop us a line on Android Hacks' Facebook or Twitter, or Gadget Hacks' Facebook, Google+, or Twitter.

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!