How to Install TWRP Recovery and Root Google Pixel 3 (XL)

How to Root Google Pixel 3 (XL) - Enable OEM Unlocking

With an unlocked bootloader, it is now possible to root Pixel 3 with Magisk. The instructions in this tutorial will help you easily install TWRP recovery and simultaneously root Google Pixel 3/Pixel 3 XL.

Note: The instructions provided on this page are only compatible with the said Pixel devices running Android Pie. The new Dynamic Partition layout introduced in Android 10 on Pixel phones poses a roadblock in TWRP’s development. For more information & a detailed explanation, please visit this page.

This year’s Google Pixel phones are everything you’d need from a flagship standard device, be it the hardware, the design, or the software. Talking of the software, the Pixel 3 and Pixel 3 XL come with a clean AOSP software experience that offers some very interesting features. At the same time, Pixel devices are also the most developer-friendly Android devices out there. A bunch of root tweaks and you can modify a lot when it comes to the software.

But ever since the first Pixel phones were released in 2016, we have seen some difficulties when it came to the rooting scene. Things like the all-new A/B partition system and certain security features in the kernel have hindered the developers from gaining root access for a long time. Similarly, the 2018 Google flagships come with a rather small change in the kernel, that prevented users from rooting their phone.

Table of Contents

Boot Image Header v1 in Google Pixel 3 (XL)

The small change that we just mentioned above is the new Boot Image Header version. The Google Pixel 3/Pixel 3 XL comes with Boot Image Header v1. According to Google – “Versioning the boot image header allows future modifications to the header while maintaining backward compatibility.” and every smartphone that comes with Android 9 Pie must come with Boot Image Header of v1.

Earlier versions of Magisk (The popular Android root solution) followed the legacy boot image header v0. This means rooting the Pixel 3 with previous versions of Magisk failed rigorously. However, it didn’t take long for XDA developer topjohnwu to implement the same and push an update to Magisk that supports the new Boot Image Header version.

To sum up, you can now easily root Google Pixel 3 and Pixel 3 XL by flashing the latest version of Magisk through TWRP recovery. The instructions below will take you through the complete process in a step-by-step manner.

Also Read: How to Hide the Notch on Google Pixel 3 XL

Requirements

  • First and foremost, you must take a full backup of all your personal data stored on the phone. Everything including the internal storage, apps, and related data will be wiped when you unlock the bootloader on your Google Pixel 3 (XL). We also have a comprehensive guide on how to backup Android phones completely.
  • Next, you must enable Developer Options in device settings. Once enabled, go to Settings -> System -> Developer options and enable the ‘OEM Unlocking’ toggle.
    How to Root Google Pixel 3 (XL) - Enable OEM Unlocking
  • Your Pixel 3/3 XL’s bootloader must be unlocked. If you haven’t unlocked it yet, then we suggest you follow our tutorial on how to do it.
  • You must download Android platform tools (ADB and Fastboot) and extract them on the PC. Alternatively, you can also use Minimal ADB and Fastboot Tool. Once installed, you will need to open the PowerShell/Terminal window inside the extracted ‘platform-tools’ folder.
    • On Windows: Go to the ‘platform-tools’ folder that you extracted earlier. Now, while holding the SHIFT key, right-click on an empty space inside this folder. Select ‘Open PowerShell window here’ from the menu.
    • On Linux/macOS: Open the ‘Terminal’ and cd to the location of the ‘platform-tools’ folder. Example:
      cd /Users/Dhananjay/Desktop/platform-tools
  • Charge your Pixel 3 to a sufficient battery level. This shall help avoid any sudden shutdowns during the unlocking/rooting process due to low battery.

Downloads

Below, you will find the links to download all the files you’d need while performing the instructions.

Install TWRP Recovery on Google Pixel 3 and Pixel 3 XL

  1. Download TWRP recovery image and Installer ZIP files for your Google Pixel 3/Pixel 3 XL.
  2. Transfer the Installer ZIP from your PC to your phone’s internal storage.
  3. Power off the phone completely and boot it into Fastboot Mode by holding the Volume Down and Power keys together.
  4. Your Pixel phone should now enter Fastboot Mode, which should look as shown in the figure below.      Boot Google Pixel 3 XL into Bootloader Mode
  5. Connect your phone to the PC while it is in Fastboot Mode.
  6. Next, copy the downloaded TWRP recovery image file inside the ‘platform-tools’ folder (where ADB and Fastboot are installed) on your PC.
  7. Enter the following fastboot command to temporarily boot the TWRP recovery image on your Google Pixel 3:
    .\fastboot boot twrp-3.3.0-0-blueline.img

    On Google Pixel 3 XL:

    .\fastboot boot twrp-3.3.1-0-crosshatch.img
  8. Your phone should now boot into TWRP recovery and you shall see the ‘Unmodified System Partition’ screen. Choose the “Keep Read Only” option.
  9. Now, tap on ‘Install’ and navigate to the location where you transferred the TWRP Installer ZIP earlier.
    Install TWRP Recovery on Google Pixel 3 XL - Flash TWRP Installer Zip
  10. Select the TWRP installer zip file and swipe the button on the bottom to permanently flash TWRP on Google Pixel 3 (XL)
  11. Once the flashing process finishes, tap on the ‘Reboot System’ button.

Your Pixel 3 device should now boot into the OS.

Now that you have succeeded to install TWRP recovery on Google Pixel 3 (XL), follow the rooting instructions below.

Instructions to Root Google Pixel 3 and Pixel 3 XL

  1. Download the latest Magisk flashable ZIP file.
  2. Connect your Google Pixel 3 to the PC and enable ‘Transfer files’ mode
  3. Transfer the downloaded Magisk-20.4.zip file to your phone’s storage.
  4. Disconnect the phone and power it off completely.
  5. Now, hold the Volume Down and Power buttons together to enter Bootloader Mode on Pixel 3.
  6. Tap the volume buttons until you see ‘Recovery Mode’ on the screen and then press the Power button to boot into TWRP recovery.
  7. In TWRP, tap on the ‘Install’ button and select the Magisk flashable ZIP file from your phone’s internal storage.
    How to Root Google Pixel 3 XL using Magisk
  8. Finally, swipe the button on the screen to flash Magisk and root your Google Pixel 3 (XL).
  9. Once the installation is complete, press the ‘Reboot System’ button.

Your Pixel 3 should now be rooted. Once it boots back into the OS, you shall see ‘Magisk Manager’ in the app drawer.

So now that you have been able to install TWRP recovery and root your Google Pixel 3 (XL), you have a lot of different ways to customize your phone. For starters, you can use root applications like Titanium Backup.

 

With Magisk, you have the ability to install mods such as ViPER4Android without modifying the /system partition. You can also use MagiskHide to hide root from apps/games like Pokemon Go and pass SafetyNet. Overall, there are a lot of things you can do on your rooted phone, so go ahead and enjoy it.

This was our tutorial on how to install TWRP recovery and root Google Pixel 3 and Pixel 3 XL using Magisk. If you have any questions, please leave them down in the comments. We will try the best of our knowledge to help you.