This is a comprehensive, A-to-Z tutorial on unlocking the bootloader of the Google Pixel 6 Pro ("raven"). and Installing Magisk ROOT
This guide is designed for beginners but assumes you are comfortable using a command-line interface (Command Prompt on Windows, Terminal on Mac/Linux).
⚠️ CRITICAL WARNINGS BEFORE YOU START
THIS WILL WIPE YOUR PHONE COMPLETELY. Unlocking the bootloader performs a factory reset. All photos, contacts, apps, and messages not backed up to the cloud will be lost forever. Backup everything first.
Warranty Voiding: While Google is generally lenient with developer devices, technically, unlocking the bootloader may void your warranty depending on your region and carrier.
Carrier Locked Devices: If you bought your Pixel 6 Pro directly from a carrier (like Verizon, T-Mobile, AT&T) on a contract or payment plan, your bootloader is likely hard-locked and cannot be unlocked using this method. You must have a SIM-unlocked/Google Store variant for this to work.
Security Features: Unlocking the bootloader breaks certain security checks (SafetyNet/Play Integrity). Apps like Google Pay/Wallet, banking apps, and Netflix may not work correctly afterward without further modification (like rooting with Magisk).
Prerequisites Checklists
Hardware:
A Google Pixel 6 Pro (must not be carrier-locked).
A computer (Windows, macOS, or Linux).
A high-quality USB-C to USB-A or USB-C to USB-C data cable.
Phone battery charged to at least 60%.
Software/Files:
Android SDK Platform-Tools (ADB and Fastboot).
Google USB Driver (Windows users only).
PHASE 1: Downloading Essential Files
We need the official tools from Google to communicate with the phone's bootloader.
1. Download SDK Platform-Tools
This zip file contains adb and fastboot, the command-line tools we need.
2. Download Google USB Driver (Windows Only)
If you are on a Mac or Linux, skip this step. Windows needs specific drivers to recognize the Pixel in "Fastboot Mode."
Download:
Google USB Driver zip
PHASE 2: Computer Setup
1. Extract Platform-Tools
Take the
platform-tools-latest-*.zipyou downloaded in Phase 1.Extract the contents to an easily accessible folder on your computer.
Recommendation for Windows: Extract it to the root of your C: drive so you have a folder like
C:\platform-tools\.
2. Install Drivers (Windows Only)
Extract the
usb_driver_r13-windows.zipfile.Connect your Pixel 6 Pro to your PC while the phone is powered on normally.
Right-click your Windows Start button and select Device Manager.
Look for "Other Devices" or "Portable Devices." You might see "Pixel 6 Pro" with a yellow exclamation mark.
Right-click it -> Update Driver -> "Browse my computer for drivers".
Point it to the folder where you extracted the USB driver files in Step 1.
Click Next and install.
PHASE 3: Preparing the Pixel 6 Pro
Now we need to tell the phone to allow itself to be unlocked.
1. Enable Developer Options
On your phone, go to Settings > About phone.
Scroll to the bottom and find Build number.
Tap on Build number 7 times rapidly.
You will be asked for your PIN/Pattern. Enter it.
You will see a toast message saying, "You are now a developer!"
2. Enable OEM Unlocking and USB Debugging
Go back to the main Settings menu.
Go to System > Developer options.
Find the toggle for OEM unlocking and turn it ON. You will need to enter your PIN again. Accept the warning.
Troubleshooting: If "OEM unlocking" is greyed out and you cannot turn it on, connect to Wi-Fi and wait a few minutes. If it remains greyed out, your device is carrier-locked and cannot be unlocked.
Scroll down further and enable USB debugging. Click "OK" on the prompt.
PHASE 4: Connection & Verification
Let's ensure the computer can talk to the phone.
Connect your Pixel 6 Pro to your computer via USB cable.
Unlock your phone screen. You should see a prompt saying "Allow USB debugging?"
Check "Always allow from this computer" and tap Allow.
Opening a Command Window:
Windows: Open the
platform-toolsfolder you created in Phase 2. Hold theShiftkey, right-click empty space inside the folder, and select "Open PowerShell window here" or "Open Command window here". (Alternatively, typecmdinto the address bar of the folder and hit enter).Mac/Linux: Open Terminal. Use the
cdcommand to navigate to your platform-tools folder. (e.g.,cd ~/Downloads/platform-tools). Note for Mac/Linux users: You may need to precede commands with./like./adb devices.
Testing the connection:
In your command window, type:
adb devices
If successful, it should return your phone's serial number followed by "device".
Example:
2B021FDH3005YK device
PHASE 5: The Unlocking Process
This is the main event.
1. Reboot into Bootloader (Fastboot) Mode
In the command window, type:
adb reboot bootloader
Your phone will restart and boot into a black screen with red/green/white text. This is the Bootloader interface. It should say "Device state: locked" in green text.
2. Verify Fastboot Connection
We need to make sure the fastboot drivers are working. Type:
fastboot devices
If successful, it should return your serial number followed by "fastboot".
Troubleshooting (Windows): If it returns nothing, your drivers from Phase 2 weren't installed correctly. Go back to Device Manager while the phone is on this black screen. Look for "Android Bootloader Interface" or similar, and try updating the driver manually again pointing to the Google USB Driver folder.
3. Unlock the Bootloader
FINAL WARNING: THIS NEXT COMMAND WIPES ALL DATA.
If you are ready, type this command:
fastboot flashing unlock
Look at your phone screen. It will change to a scary-looking warning page asking if you really want to unlock the bootloader.
Use the Volume Keys on your phone to navigate the menu until it highlights "Unlock the bootloader".
Press the Power Button to confirm the selection.
Your phone will now begin the unlock process and factory reset itself. This may take a minute or two.
Once done, it will return to the Bootloader Menu. The text at the bottom should now say "Device state: unlocked" in red.
PHASE 6: Final Reboot & Setup
Ensure "Start" is highlighted on the bootloader screen (use volume keys if needed).
Press the Power button to select "Start," or type:
fastboot reboot
The Warning Screen: Every time you boot your phone from now on, you will see a warning screen stating: "The bootloader is unlocked and software integrity cannot be guaranteed." This is normal. It will pause there for a few seconds before booting the OS.
First Boot: The initial boot after unlocking will take much longer than usual because it's rebuilding the OS after the wipe. Be patient.
Once it boots up, go through the initial Android setup process. Your Pixel 6 Pro bootloader is now unlocked!
ROOT Pixel 6 Pro Magisk
Critical Prerequisites Before You Begin
Before attempting this guide, you MUST meet these requirements:
Bootloader Unlocked: Your Pixel 6 Pro’s bootloader MUST already be unlocked. If it isn't, stop here. Unlocking the bootloader wipes your data. You cannot root a locked bootloader.
PC/Mac with Platform-Tools: You need a computer with Android ADB and Fastboot tools installed and working.
Current Data Backed Up: While the rooting process itself usually doesn't wipe data, things can go wrong. Always back up important data before flashing anything.
Know Your Build Number: You must know the exact software build currently running on your phone. (Go to Settings > About phone > Build number)
Phase 1: Gathering the Necessary Files
To root the Pixel 6 Pro, we don't use custom recoveries like TWRP anymore. Instead, we take the stock boot image created by Google, patch it with Magisk, and flash it back onto the phone.
Step 1: Download the Matching Factory Image
On your computer, go to the official Google Pixel Factory Images website.
Find the "raven" section (codename for Pixel 6 Pro).
Crucial: Find the exact version that matches the Build Number currently on your phone.
Click the "Link" button to download the factory image ZIP file.
Step 2: Extract the Stock boot.img
Unzip the factory image file you just downloaded.
Inside that folder, you will find several files and another ZIP file (usually named
image-raven-[buildnumber].zip).Unzip that inner ZIP file.
Inside this extracted folder, look for a file named
boot.img.Copy this
boot.imgfile to your phone’s internal storage (e.g., into the "Downloads" folder). You can do this via USB file transfer.
Phase 2: Patching the Boot Image
Now we need to use the Magisk app on your phone to modify that stock boot image.
Install Magisk APK: On your Pixel 6 Pro, download and install the latest Magisk APK from the official GitHub page.
Open Magisk: Open the app. You will see "Magisk" at the top, likely showing "Installed: N/A".
Start Patching: Tap the Install button next to Magisk.
Select Method: Choose "Select and Patch a File".
Locate File: Your file manager will open. Navigate to where you saved the
boot.imgin Phase 1 (e.g., Downloads folder) and select it.Let's Go: Tap "LET'S GO" in the top right corner. Magisk will now download files and patch the image.
Locate Patched Image: Once done, it will say "Output file is written to...". Usually, it saves to your phone's
Downloadfolder with a name likemagisk_patched_[random_strings].img.
Phase 3: Flashing the Rooted Image
Now we need to send that patched image from your phone back to your computer, and then flash it to the phone using Fastboot.
Step 1: Move the Patched Image to PC
Connect your phone to your PC via USB.
Copy the
magisk_patched_[...].imgfile from your phone’s Download folder into the folder on your PC where youradbandfastboottools are located (your platform-tools folder).Tip: Rename this file to something simpler like
patched_boot.imgto make typing easier later.
Step 2: Boot into Fastboot Mode
Open a command prompt/terminal window inside your platform-tools folder on your PC.
Ensure USB Debugging is enabled on your phone.
Type:
adb reboot bootloaderYour phone should restart to a black screen with red/green text (Fastboot Mode).
Verify connection by typing:
fastboot devices(You should see your phone's serial number).
Step 3: Flash the Boot Image
Warning: Do not interrupt this process.
In your command window, type the following command (replace
patched_boot.imgwith whatever your actual filename is):Bashfastboot flash boot patched_boot.imgHit Enter. You should see "Sending 'boot'..." followed by "Writing 'boot'..." and finally "Okay" and "Finished."
Step 4: Reboot
Once the flash is complete, type:
fastboot reboot
Phase 4: Verification
Your phone will reboot normally. It might take slightly longer than usual the first time.
Once unlocked, open your app drawer and launch the Magisk app.
Look at the top section. Where it previously said "Installed: N/A", it should now show a version number (e.g., "Installed: 26.1").
Congratulations! Your Google Pixel 6 Pro is now rooted.
A Note on SafetyNet and Banking Apps
Modern Android security (Play Integrity API) detects root access very easily. After rooting, many banking apps, Google Wallet, and Netflix may stop working.
To fix this, you will need to dive deeper into the Magisk settings, enable "Zygisk," configure the "DenyList," and likely install a Magisk module called "Play Integrity Fix." That process changes frequently and is beyond the scope of this initial installation guide, but be aware that achieving root is often just the first step.