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

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

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


  • 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.


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 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.


  1. I did all the steps, but I get always this error:

    FAILED (remote: ‘Error verifying the received boot.img: Invalid Parameter’)


    1. Hello. TWRP doesn’t support Android 10 or Android 11 on Pixel 3 and above. More details on this were published by TWRP lead developer on the official blog here.

  2. I did all the steps, but I get always this error:

    FAILED (remote: ‘Error verifying the received boot.img: Invalid Parameter’)

    1. Dom, are you trying to install TWRP? Is your Pixel 3 OR Pixel 3 XL running Android 11 or Android 10?

  3. I’ve followed these instructions twice now; after installing the Magisk zip my Pixel 3XL just hangs at the boot screen and will not load the OS.

    Any suggestions?

    1. Hi Jordan. Is you Pixel 3 XL running Q Beta? And did you use V18.0 of Magisk or the newer?

  4. hey nice tut. my problem is i have moved the files to the root of my phone(sdcard folder) and when i view my files on my pc i see them. when i boot the temporary twrp to flash the files they don’t show up on the phone. i have tried with and without a passcode on the phone. i am also on the android q developers preview so don’t know if that is what the problem is

    1. Hi Nathan. When you open the Install menu in TWRP, do you see all other folders on your /sdcard (Internal storage) or do you see random folders?

      Also, which version of TWRP are you using?

    1. Hi again Scot! While it is mentioned (Right above the ‘Requirements’), I have updated the article and added it to the ‘Requirements’ too. I hope that our guide on how to unlock the bootloader is simple enough too.

      Thanks again!

  5. Hi, thanks for the clear tutorial. One confusing bit is that your download link labels are wrong. The pixel 3 xl points to blueline and the pixel 3 points to crosshatch.

    1. Hi Scot. Thanks for the heads up! Really! That was a drastic mistake. I have corrected the links. Pixel 3 should now point to Blueline and the XL to Crosshatch now.

      And thanks for the kind words too! Most people wouldn’t be forgiving as you are and still show appreciation.

  6. Hello,

    When I go to the Platform Tools folder and hold shift and right click, there is no option that comes up for me to “open power shell” etc. It just has the View, Sort by, Group by, Refresh, Paste, Paste shortcut, Undo New, Extract all pop up….What am i doing wrong?

    1. Hi David, which Windows OS version are you using?

      Also, in that folder, you have to hold the SHIFT key and right-click on an empty space. Not on a file.

  7. Dhananjay,

    Thank you for this post. I followed your instructions and got into a bootloop. Then I simply got out of the bootloop by installing the TWRP again from the recovery mode, but when going to the OS I see that my Pixel 3 is NOT rooted, but the bootloader is Unlocked. How do I root my phone without getting into bootloop?

    1. Hi Ammar. I am sorry for the inconvenience. Recently, I saw some reports on XDA about the same, but not everyone experienced the same.

      First off, do you have TWRP permanently installed on your Pixel 3?

    2. Pixel 3 xl
      I can flash the TWRP image file. Boots into TWRP screen fine. But won’t mount /system (invalid argument) same with vendor
      Unable to mount storage /date
      Full SELinux support is present
      Failed to mount/data/media/TWRP/.twrps
      WTP enabled

      When I select storage I can only select internal storage (0mb)
      Can’t select Storage (0mb)
      When I go to the top file level I get all the folders and I think subfolders, but all empty
      Have tried TWRP 3.3.1-0- crosshatch.img & 3.3.1-3 also and might have used a couple of earlier ones. All exactly same result

      Any advice

    3. Yes Security patch Nov 5 2019.

      Can’t install latest one as bootloader is unlocked. I tried to lock it but it wouldn’t reboot. Said it couldn’t find operating system. Unlocked boot loader and was fine. Trying to figure out next step

    4. Hi again.

      An unlocked bootloader will not prevent you from getting OTA updates. But any other sort of modifications like TWRP and Magisk Root will. Although, you can still take OTAs on a rooted device by following a specific set of instructions (You can read more about it here).

      As for TWRP, it doesn’t support Android 10 due to the significant changes it brings, especially ‘scoped storage’. The lead dev of TWRP already posted about this (Read here).

      Leaving TWRP aside, you can still root your Pixel 3 XL on Android 10 with Magisk. I already have my P3XL rooted the same way.

    5. Thanks shame about TWRP. I used it years ago in my Samsung days. Looks like TWRP has made some modifications to my phone. Will try and install fresh OS and them will try and root with magisk. One step at a time. Will get back when I have more problems. No rush

      Thanks again

  8. Google pixel 3 doesn’t support sd cards, so I’m super confused as to how you had the choices shown in the screenshots… I can’t find these files at all, how were you able to access the download file?? You said go to navigate to the location where the TWRP installer zip was transferred, and I transferred it to my download file. I go to the sdcard location and all that’s there are a bunch of folders with long gibberish names.

    1. Hi Aiden, the gibberish folder names you are seeing is because the storage is encrypted. When you boot into TWRP, you will be asked to enter the password to decrypt, which is the PIN/Password of your lockscreen. Just enter that and you shall see the files/folders as they actually are.

      Oh, and I didn’t mention SD card anywhere, did I?

    2. Okay, I’m a giant bonehead. My phone pin worked, but after finally being able to install Magisk, my phone bricked up completely. ADB won’t recognize it, and I can’t access recovery mode, and all it says at the bootloader menu is “error booting from boot.img” and “invalid slot to boot from”. Pretty sure there’s nothing I can do now. I tried to flash it back to stock, but nothing was specific enough to point me to the exact right one. This is why I should’ve meant it when I swore I’d never root a phone again.

      And, you didn’t mention an SDcard, I was just losing my mind because I wasn’t seeing what was in the screenshots. And I saw the folder SDcard. That’s completely my bad.

    3. Hi Aiden. I can totally understand your situation, the frustration, and fear as well. But don’t let it stop you from rooting. Once you start to understand the complete process and how everything works, you will be rooting any phone in a jiffy.

      So, I will try my best here to explain what happened here.

      You flashed Magisk on your device, which basically modifies the boot.img (kernel). In case it doesn’t work, you can always recover your device by flashing the stock boot.img.

      So, start by downloading the stock factory image from here. Once downloaded, extract the zip file and let me know what files have been extracted.

      NOTE: Make sure that you download the factory image corresponding to the software version installed on your Pixel currently. For example: If your Pixel was on November security patch before performing this, then you should download the Nov factory image.

Leave a Reply

Your email address will not be published. Required fields are marked *