How to Install TWRP Custom Recovery on Your Pixel or Pixel XL
When it comes to modifying Android, the single, most powerful tool available is TWRP custom recovery. It's even more capable than simple root access when it comes to changing the look and feel of your software, and you can even use TWRP to root your device in a few simple steps.
Thanks to some hard work from lead developer Ethan Yonker, TWRP recovery is now available for the Google Pixel and Pixel XL. With this one installed, you'll be able to flash ZIPs, make full system backups, and even install a custom ROM on your Pixel—so I'll show you how to set it up below.
If you've already rooted your Pixel or Pixel XL, you will have to flash the stock boot image for your device before you install TWRP. This process will un-root your device, but it's easy to re-root once you've installed TWRP, and I'll show you how to do that at the bottom of this article.
So first up, if you're rooted, download the factory images package for your Pixel or Pixel XL directly from Google. Then, extract the contents of the ZIP and open the folder this creates. From there, extract the second archive you'll find in this folder, then open that folder and copy the boot.img file.
Next, paste the boot.img file into the platform-tools folder inside of your ADB and Fastboot installation directory. For Windows users, this can be found at C:\Program Files (x86)\Android\android-sdk. For Linux and Mac users, it depends on where you installed ADB and Fastboot in the first place, so if you're not sure about the folder's location, search your computer for "platform-tools."
After that, Windows users can hold down the shift button on their keyboard, then right-click any empty space in the platform-tools folder and choose "Open command window here." Mac and Linux users will have to open a Terminal window and change directories to the platform-tools folder.
When you're done there, turn your Pixel or Pixel XL off. When the screen goes black, press and hold the volume down and power buttons simultaneously, and your phone will enter Bootloader Mode. From here, connect the phone to your computer with a USB data cable, then type the following command into the Terminal window:
- fastboot flash boot boot.img
Note that Mac users will have to add a period and a slash (./) to the beginning of the above command, and Linux users will have to add a slash (/).
When you're done there, press the power button to restart your phone, because you're now ready to install TWRP.
Because of the Pixel's new file-based encryption system, TWRP will need to temporarily decrypt your phone in order to allow you to flash ZIPs and create NANDroid backups. The only way it can do this is if you have already set a PIN or password as your lock screen security.
If you haven't already done that, head to the Security menu in Settings, then tap the "Screen lock" option. From here, select either "PIN" or "Password," then simply follow the prompts.
Next, you'll need to download a flashable ZIP version of TWRP and make sure it's saved to your phone. So from your Pixel or Pixel XL, tap one of the following links, making sure to download the right ZIP for your particular device.
After that, download the TWRP image file for Pixel or Pixel XL, but make sure to save this one to a folder on your computer that you can access easily.
Next up, copy the TWRP image file that you just downloaded, then paste it in the platform-tools folder inside of your ADB and Fastboot installation directory. For Windows users, this folder can be found at C:\Program Files (x86)\Android\android-sdk.
For Mac and Linux users, it depends on where you saved the ADB and Fastboot files when you installed the utility in the first place, so search your computer for the platform-tools folder if you don't remember.
Once you've moved the file to this folder, rename it to twrp.img to simplify things.
In order to run the commands that will install TWRP on your device, your phone will need to be in Bootloader Mode. So next, power your Pixel completely off. When the screen goes black, press and hold the volume down and power buttons simultaneously. Within a few seconds, you should be greeted by Android's Bootloader menu, which looks like this:
When you see this screen, plug your Pixel into your computer using the USB data cable that came with the device. Aside from that, leave the phone alone, as it's time to do some work on the computer side of things.
If you're using a Windows PC, hold down the shift button on your keyboard, then right-click any empty space inside of the platform-tools folder and choose "Open command window here." If you're using a Mac or a Linux machine, open Terminal, then change directories to the platform-tools folder.
Before we get into this next part, you should note that I'll be listing the commands for Windows users. Mac users will have to add a period and a slash (./) to the front of all commands shown here, and Linux users will have to add a slash (/) to the beginning (example: ./fastboot devices for Mac, or /fastboot devices for Linux).
So from the command prompt, enter the following command to verify that everything's connected properly:
- fastboot devices
If that returns a series of letters and numbers followed by the word "fastboot," then your device is connected properly and you're good to go. Otherwise, refer to this guide to check your ADB and Fastboot installation, and ensure that your Pixel is in Bootloader Mode as shown in Step 6.
Next, you'll be booting your phone off of the TWRP image file. This will temporarily run TWRP on your device, which will then allow you to flash the ZIP file and make TWRP your permanent recovery. So enter the following command into the prompt:
- fastboot boot twrp.img
At this point, your phone will boot into TWRP, but the custom recovery isn't permanent just yet. TWRP will automatically prompt you to enter your password or PIN so that it can decrypt your storage and modify system files, so use the on-screen keyboard to do just that.
Once you've entered your PIN or password, swipe the slider at the bottom of the screen when prompted. Then, once you make it to TWRP's main menu, tap the "Install" button and navigate to your device's Download folder. From here, select the twrp-pixel-installer.zip file that you downloaded in Step 3, then swipe the slider at the bottom of the screen to install it.
Once you've done that, tap the "Reboot System" button to wrap things up. At this point, TWRP is now permanently installed as your custom recovery, so you'll be able to flash ZIPs and create backups, along with all of the other cool things that a custom recovery can do.
If you were previously rooted, or if you'd simply like to take this time to root your device, it's a really simple process now that you've got TWRP installed. To start, download the SuperSU flashable ZIP from your Pixel:
After that, boot your phone into Bootloader Mode by powering it off, then holding the volume down and power buttons simultaneously (like you're taking a screenshot). From there, press the volume down button twice to highlight the "Recovery Mode" option, then tap the power button to select it.
Next, from TWRP's main menu, tap the "Install" button, then navigate to your device's Download folder. From here, select the SuperSU ZIP file, then swipe the slider at the bottom of the screen to install it. When that's finished, just tap "Reboot System," and when you get back up, you'll be fully rooted.