How to root Google Pixel 6, 6 Pro, and Pixel 6a

It is a step-by-step guide on how to safely root your Google Pixel 6, 6 Pro, and Pixel 6a using Magisk v25.2. First, we’ll unlock the bootloader using adb commands and then install the Magisk apk and patch init_boot.img file and copy to your device and flash it.

Rooting your Android device allows you to take full control of your device and unlock its hidden capabilities. If you’re looking to root their Google Pixel 6 or 6 Pro running Android 13, the process has never been easier thanks to the latest version of Magisk, version 25.2. Magisk is a popular rooting solution that offers a simple and straightforward way to root your device without compromising its stability or security.

Whether you’re a seasoned Android enthusiast or a newbie just starting out, this post is the perfect starting point for unlocking the full potential of your Google Pixel 6, 6 Pro, and 6a.

Also read: How to install LineageOS 20 on Pixel 6 Series


Before rooting your Google Pixel there are some requirements you need to fulfill,

Download Files:

Download the following files and keep them in a separate folder on your PC;

Instructions to Root Google Pixel 6, 6 Pro, and Pixel 6a with Magisk

Before you follow the instructions, it is really important to unlock the bootloader. If your device is carrier-locked, you won’t be able to enable OEM unlock from Developer options and therefore you cannot root your device.

Disclaimer: Unlocking the bootloader will void the warranty and wipe all data of your device so it is recommended to backup your important data before unlocking the bootloader.

To root a Google Pixel device using Magisk, you’ll need to follow these steps:

Step 1: Unlock the bootloader

I hope you’ve already unlocked the bootloader, you can follow our step-by-step guide on how to unlock bootloader on a Google Pixel.

Step 2: Download Factory Image File

You’ll need to download the factory image file for your device. All pixel devices have their respective code names, bluejay for Pixel 6a, Oriole for Pixel 6 and raven for Pixel 6 Pro so download the factory image build that is already installed on your device. You can confirm this from phone Settings > About device > Build Number. On the Google official website you’ll also find the factory images with build number mentioned.

Download link is given in the above download section.

Step 2: Download and Install Magisk apk

Download the latest version of Magisk from the official website and transfer it to your Google Pixel device. Link is given in the above download section, download the latest apk file and install it on your device, it will prompt you to enable install from unknown sources, accept it.

Step 3: Unzip the factory image file

Unzip the factory image file you have downloaded for your phone. In the same folder you’ll get another zip file, unzip it too to get the init_boot.img file and copy it to your Pixel device.

Step 4: Patch init_boot.img file

Open Magisk app on your device, tap on install and tap again on “Select and Patch a file” and browse the init_boot.img file you’ve just copied. It will patch the file and save it in the same folder. Now you’ve to transfer patched init_boot.img file to your PC to flash it using an adb command.

Step 5: Reboot the device in Fastboot

After Magisk is installed, Power off your phone and Press the Power + Volume Down keys together to boot into fastboot mode.

Step 6: Open Command Prompt

On your PC, open the plaform tools folder, hold the Windows button and right click in the folder and select open command here. Type the following commands to flash the patch boot file;

fastboot devices
fastboot flash init_boot C:\Users\Imran\Desktop\Pixel 6 Root\platform-tools_r33.0.3-windows\platform-tools\magisk_patched-25200_xgjAS.img

(fastboot flash init_boot is the command and rest is the boot file location, you can drag the file after entering the command or paste the location directory)

Step 7: Verify root access

You can verify root access by downloading the root checker app from the Google Play Store.

Congratulations! You’ve successfully rooted Google Pixel 6, Pixel 6 Pro or Pixel 6a. Let me know in the comment section about your feedback, also make sure to check our Pixel 7 rooting guide, Google Pixel Android 13 Google Account Bypass, and how to factory reset Pixel 7 Pro and subscribe to our YouTube channel for guides and tutorials.

Share it with friends
Imran Aftab

Hello, I'm Imran Aftab, a tech enthusiast using Android, iOS, and Windows. Hardware expert for Gaming & Crypto mining rigs. I have been writing on tech since 2013, starting with ohguideme, then Androidcentral. I have written and published several guides and tutorials on how to root Android, flash custom ROM, recovery, and jailbreak iPhone, and have written several guides on how to bypass FRP. I also worked in a phone repair shop, so I have pretty good experience with mobile software and troubleshooting. So, all the guides you see here have been tested and confirmed to work.

Click Here to Leave a Comment Below 0 comments