How to Flash the Official ROM on Your Pixel 6 Pro (Offline Install)
Whether your device is acting up, you are trying to unbrick it, or you simply want a totally clean slate, flashing the official stock ROM on your Google Pixel 6 Pro is the best way to get your phone back to factory-fresh perfection.
However, there is a common misconception in the Android community about bootloaders. To be completely candid and factual: You cannot fully flash a "Factory Image" via Fastboot if your bootloader is locked. Fastboot requires an unlocked bootloader to overwrite core system partitions.
But don't worry! If your bootloader is locked (and you cannot unlock it due to carrier restrictions or a broken system), you can still offline-install the official ROM by ADB Sideloading a Full OTA (Over-The-Air) Image. The only catch is that a locked bootloader will only allow you to install the same version of Android or upgrade to a newer one—you cannot downgrade.
This comprehensive, A-to-Z guide will walk you through both offline methods: the Fastboot method (for unlocked bootloaders) and the ADB Sideload method (for locked bootloaders).
⚠️ Phase 0: The Golden Rules of Flashing
- Back Up Everything: Flashing a factory image with an unlocked bootloader will completely wipe your device. ADB sideloading usually keeps your data intact, but it is always better to be safe than sorry. Back up your photos, contacts, and authenticators.
- Charge Your Phone: Ensure your Pixel 6 Pro is at least 70% charged. If your phone dies mid-flash, you risk hard-bricking the device.
- Use a High-Quality Cable: Use the original USB-C cable that came with your phone, or a high-quality data-transfer cable. Avoid cheap charging-only cables or USB hubs. Plug directly into your computer's motherboard (the back ports on a desktop).
🛠️ Phase 1: The Essential Prerequisites
Regardless of whether your bootloader is locked or unlocked, you need the right tools on your computer. All of these steps are done offline once the initial files are downloaded.
1. Download Android SDK Platform-Tools
You need adb and fastboot to communicate with your Pixel 6 Pro.
- Download the official SDK Platform-Tools from the Android Developer website for your OS (Windows, Mac, or Linux).
- Extract the downloaded
.zipfile to a folder on your computer that is easy to find (e.g.,C:\platform-toolson Windows or your desktop on Mac).
2. Install Google USB Drivers (Windows Only)
If you are using a Mac or Linux machine, you can skip this step. Windows users must install the correct drivers to recognize the Pixel in bootloader/recovery modes.
- Download the Google USB Driver from the Android Developer website.
- Extract the
.zipfolder. - Right-click the
android_winusb.inffile and select Install. Or right click on the start button - Open Device Manager - Add Drivers - Select the extracted folder - Next
3. Enable USB Debugging (If your phone can boot & if only you would like to unlock the bootloader)
If your phone still boots into the Android OS naturally:
- Go to Settings > About phone.
- Tap Build number 7 times to unlock Developer Options.
- Go back, navigate to System > Developer options.
- Toggle on USB debugging.
- (If your bootloader is unlocked, make sure OEM unlocking is also toggled on just to be safe).
🚀 Method 1: The Fastboot Method (For Unlocked Bootloaders)
If your bootloader is already unlocked, this is the most thorough and recommended way to flash your Pixel 6 Pro. It completely wipes all partitions and rewrites them with factory-fresh software.
Step 1: Download the Factory Image
- Navigate to the Google Play Services Factory Images page.
- Scroll down to the section for "raven" (the internal codename for the Pixel 6 Pro).
- Download the latest offline
.zipfile for your carrier (or the global unlocked version). Click link button to download - Extract the contents of this
.zipfile directly into yourplatform-toolsfolder. You should see files likeflash-all.bat,flash-all.sh, and a bunch of.imgfiles sitting right next to youradb.exeandfastboot.exe.
Step 2: Boot into Fastboot Mode
- Turn off your Pixel 6 Pro completely.
- Press and hold the Power and Volume Down buttons simultaneously until you see the Bootloader screen.
- Connect the phone to your computer via USB.
Step 3: Verify the Connection
Open your computer's command line and navigate to your platform-tools folder.
# Windowscd C:\platform-tools# Mac/Linuxcd /path/to/platform-tools# Verify devicefastboot devices
You should see a serial number followed by the word "fastboot".
Step 4: Execute the Flash Script
- On Windows: Double-click the
flash-all.batfile, or typeflash-all.batin the Command Prompt. - On Mac/Linux: Type
./flash-all.shinto the Terminal and hit Enter.
Crucial Note: Do NOT touch your phone or unplug the cable while this script is running. It will restart your phone several times. It typically takes about 5 to 10 minutes.
Step 5: Finish and Relock (Optional)
Once finished, to relock your bootloader:
fastboot flashing lock
🛡️ Method 2: The ADB Sideload Method (For Locked Bootloaders)
If your bootloader is locked, your lifeline is the Android Recovery menu. We will use a Full OTA image. This essentially mimics an official system update.
Step 1: Download the Full OTA Image
- Navigate to the Full OTA Images for Nexus and Pixel Devices page.
- Find the "raven" (Pixel 6 Pro) section.
- Download the OTA
.zipfile that matches your current Android version or is newer. (You cannot downgrade). - Move this
.zipfile directly into yourplatform-toolsfolder. Do not extract it.
Step 2: Boot into Recovery Mode
- Turn off your phone, hold Power + Volume Down for Bootloader mode.
- Use Volume buttons to select Recovery Mode and press Power to confirm.
- At the "No command" screen (Android robot on its back): Hold down the Power button, quickly press and release the Volume Up button, then release Power.
Step 3 & 4: Prepare and Verify Connection
Select Apply update from ADB in Recovery. Plug in your phone. In your computer terminal:
adb devices
You should see the word "sideload" next to your serial number.
Step 5: Sideload the ROM
Rename your downloaded file to ota.zip for ease, then type:
# Windowsadb sideload "copy and paste path to ota.zip"# Mac/Linux./adb sideload "copy and paste path to ota.zip"
Wait for the percentage counter to reach 100%. This can take 15-20 minutes.
Step 6: Reboot
Once complete, select Reboot system now from the phone menu.
🔧 Troubleshooting Common Errors
| Error/Issue | The Cause | The Solution |
|---|---|---|
| "Waiting for any device" | Computer doesn't recognize the phone in Fastboot. | Reinstall the Google USB drivers via Windows Device Manager, pointing to `android_winusb.inf`. |
| Command not found | Terminal doesn't know where ADB/Fastboot is. | Always add `./` before commands on Mac/Linux (e.g., `./adb devices`). |
| Status 7 / Installation Aborted | Trying to downgrade a locked bootloader. | Download an OTA image matching your exact current build number or a newer one. |
| `flash-all.bat` fails immediately | Script cannot find the necessary image files. | Ensure you extracted all files from the factory image `.zip` directly into the `platform-tools` folder. |
