How to Root Pixel 2 and 2 XL running Android 11 without TWRP

In this tutorial, we will show you the steps to root Pixel 2 and 2 XL, running the latest Android 11, without using TWRP. We would be using the latest Magisk Manager app v8 that is fully compatible with the latest Android 11. Then we would patch the stock boot.img file via it. After this, we would be flashing this patched boot image file via Fastboot commands onto your device. With this, you would have successfully rooted your Pixel 2 and 2 XL, running the latest Android 11, without using TWRP. [Update 1: Added a Fix for Android 11 Boot.img patch issues].

The open-source nature of Android beholds a plethora of customizations. To begin with, you could unlock the device’s bootloader, install custom ROMs like Pixel Experience, AOSP, etc and install a custom recovery like TWRP, LinegeageOS among others. Along the same lines, you could even gain administrative rights or access to the system partition. The latter is also known as rooting a device. Earlier SuperSU was the preferred tool to root your device. But the biggest issue was the fact that it made direct changes to the system partition.

However, with Magisk, things stand different, and for good. It carries out the entire tasks ‘systemlessly’, that is without making any modification to the system partition. Furthermore, it regularly gets updated. And as of now, the latest Magisk v8.0.2 is now live with tons of new features. Most importantly, it is now fully supported on devices running the latest Android 11. Now that rooting isn’t just limited to the tech enthusiasts (refer to our survey for surprising results: Rooting Poll: Is it Worth the Risk? You Decide and let us know), this guide is going to help the newcomers as well. With that said, here are the steps to root Pixel 2 or 2 XL, running the latest Android 11, without using TWRP.

How to Root Pixel 2 and 2XL running Android 11 without TWRP

before we begin with the instructions steps, there are a few requirements that you need to meet. Please go through the prerequisites section and make sure you checkmark all the necessities.


That’s it. You may now proceed with the steps to root Pixel 2 or 2 XL, running the latest Android 11, without using TWRP.

STEP 1: Extract Stock boot.img

To begin with, download the stock boot.img file corresponding to the firmware version installed on your Pixel device. For that, download the stock firmware for your Pixel device from Google’s website. If you are going to download the OTA package then upon extraction you will find the payload.bin file. In that case, refer to our guide on How to Extract payload.bin and get the stock boot image file.


On the other hand, if you download the factory image, then you will find a couple of files, including a zipped image file. You will have to decompress that file and there you will find the stock boot image file.


STEP 2: Patch Stock Boot.img file

UPDATE 1: Quite a few Android 11 users are facing issues while patching the stock boot.img file via Magisk manager. Well, I have found the fix to this issue, please refer to our detailed guide on the same: Fix Magisk patched boot.img issue while Rooting Android 11. If you wish to save a click, then here’s the explanation in short: You have to install the Magisk Canary build instead of the stable and then change the update channel to Canary from within the app itself. Once you have done the said change, you may then proceed with the below steps to patch the stock boot image file using Magisk and flash it via Fastboot commands to root Pixel 2 or 2 XL running Android 11.

  1. Launch the Magisk Manager app on your Pixel device.
  2. Then tap on the Install button situated next to Magisk.
  3. From the Method section, choose Select and Patch a file.
    patch stock boot.img magisk root pixel 2 2xl android 11
  4. Browse to the extracted boot.img file and select it.
  5. Then tap on the Let’s Go option situated at the top right.
  6. Magisk will now load the boot.img file and will patch it accordingly. Once that is done, you would get the Download Complete message.
    patch stock boot.img root pixel 2 xl magisk android 11
  7. The patched boot image file will be saved in Internal Storage > Downloads. The name of the file will be magisk_patched.img

STEP 3: Flash Patched Boot.img file via Fastboot

In this final section, you just have to flash this patched boot.img file to root the Pixel 2 or 2 XL, running the latest Android 11, without using TWRP.

  1. First off, move the magisk_patched.img file to the platform-tools folder on your PC. This is the folder where you have installed the Android SDK.
  2. Now connect your device to PC via USB cable. Make sure you have enabled USB Debugging.
  3. Head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  4. Execute the below command to boot your device to Fastboot Mode:
    adb reboot bootloader
  5. It’s now time to flash the patched boot.img file onto your Pixel device. Type in the below command and hit Enter
    fastboot flash boot magisk_patched.img
  6. Finally, you could now boot your device to the OS. Use the below command for that:
    fastboot reboot

That’s it. With this, we conclude the guide on how to root Pixel 2 and 2 XL, running the latest Android 11, without using TWRP. If you have any queries, do let us know in the comments section below We will get back to you with a solution as soon as possible.