Pixels are the easiest phones to root, because Google publishes the unlock steps and every factory image. The one hard stop is carrier-locked units. This guide follows Google's own pages: Flashing devices, Locking and unlocking the bootloader and Factory images, plus the official Magisk install guide.
Can your Pixel be unlocked?
Open Developer options and look at OEM unlocking. If the switch works, you can unlock. If it is greyed out, connect to the internet and let the phone check in, then look again. Google's page says that if it stays unavailable, "your device might be SIM locked by your carrier and the bootloader can't be unlocked."
In practice that means Pixels sold by some carriers, Verizon above all, cannot be unlocked. Paying off the phone and getting it carrier-unlocked for other SIMs does not change this: SIM unlock and bootloader unlock are separate. Owners have also reported the switch staying grey on some non-Verizon units. Before you buy a Pixel to root, check that it is an unlocked model and that OEM unlocking can be turned on. Do not use paid unlock services or exploits; buy a phone that unlocks officially.
From the bootloader you can ask the phone directly: fastboot flashing get_unlock_ability returns 1 when unlocking is allowed.
Which image to patch
- Pixel 7 and newer (launched with Android 13 or later): patch
init_boot.img. - Pixel 6 series and older: patch
boot.img. - Not sure? The Magisk app's home screen shows a Ramdisk field. The Magisk guide explains how to read it.
Steps
- Back up the phone. Unlocking wipes it.
- Turn on Developer options, then OEM unlocking and USB debugging.
- Run
adb reboot bootloader, thenfastboot flashing unlock, and confirm on the phone. It wipes and reboots. - Download the factory image for the exact build the phone runs from Google's factory images page. Settings → About phone → Build number tells you which. Unzip it, then unzip the inner image zip to get
init_boot.imgorboot.img. - Copy that image to the phone and keep a copy on your computer. In Magisk, tap Install → Select and Patch a File. On Pixels the Magisk app can also fetch the factory image itself.
- Pull the patched file back with
adb pull, reboot to the bootloader and flash it. - Reboot, open Magisk and let it finish setup.
adb reboot bootloader
fastboot flashing unlock
# later, after patching:
fastboot flash init_boot magisk_patched.img # Pixel 7 and newer
fastboot flash boot magisk_patched.img # Pixel 6 and older
fastboot rebootIf it doesn't boot
A boot loop after flashing almost always means the image came from a different build than the one installed. Hold power and volume down to reach the bootloader, flash the stock image you saved, and the phone boots as before. Then check the build number again and download the matching factory image. If a Magisk module causes the loop instead, booting into Safe Mode starts the phone with modules disabled, so you can remove it.
Monthly updates
Pixels update every month, and each update replaces the image you patched. To keep root, download the new factory image (or full OTA), extract the new init_boot or boot, patch it and flash it. Always patch from the build you are moving to, never an older one.
What you lose
- Warranty questions. Google warns that unlocking makes the phone less secure; check your region's warranty terms.
- Google Wallet tap to pay can stop working, because it relies on device integrity.
- Strong Play Integrity. Google's
MEETS_DEVICE_INTEGRITYverdict needs hardware proof of a locked bootloader on Android 13 and later, andMEETS_STRONG_INTEGRITYbuilds on it (Play Integrity verdicts). Some banking, payment and streaming apps check this and refuse to run. - Painless updates. Every system update replaces the boot image and removes root. You re-patch the new image each time.
- Some security. Any app you grant root can read everything on the phone. Use a phone dedicated to the job and grant root only to apps you trust.
How to unroot
- Easiest: flash the stock
init_boot.imgorboot.imgyou saved, and reboot. - To go fully stock, flash the whole factory image (its
flash-allscript) or use Google's Android Flash Tool. This wipes the phone. - Then relock with
fastboot flashing lock. Only relock on fully stock software. Relocking wipes the phone again.
After root: turn it into a bot phone with Pocket
Once the Pixel is rooted, install Pocket and open Account → Voice → Own SIM. It shows whether the phone is rooted. Grant Pocket root in Magisk when asked, then flash the Pocket call-audio module in Magisk and reboot. From then on the bot hears and speaks on calls on your own SIM with no adapter, reads WhatsApp messages Android hides as "sensitive", and can take messages as a voicemail box. The full list of what root unlocks is in Phone control → Root mode.
We wrote up what broke when we kept a phone rooted through updates, and the fix for each, in Rooting a phone so a bot can work on it all day. If you would rather not root at all, Pocket Link is a small adapter that gives the bot your own number on an unrooted phone.


