How to flash a Google Pixel factory image
Factory images restore a Pixel to stock firmware. The easiest way is Google’s Android Flash Tool in Chrome; the manual way uses fastboot. Both need an unlocked bootloader and erase the phone.
Before you start
- Make sure the image is for your exact codename (for example husky for Pixel 8 Pro). Flashing another device’s image can brick the phone.
- Back up everything. Unlocking the bootloader and flashing wipe all data.
- On the phone: Settings → About phone → tap Build number 7 times, then Settings → System → Developer options → turn on OEM unlocking and USB debugging.
- Install the latest Android SDK Platform-Tools (adb and fastboot) from Google. Use a USB-C cable that supports data.
Easiest: Android Flash Tool
- In Chrome on your computer open flash.android.com.
- Connect the phone and allow USB debugging on it.
- Pick your device and the build you want (it matches the files listed here), then click Install. The tool unlocks, flashes and can re-lock the bootloader for you.
Manual: fastboot
- Unzip the factory image. You get a folder with
flash-all.sh(Mac/Linux),flash-all.bat(Windows) and an inner zip. - Boot to the bootloader: turn the phone off, then hold Volume Down + Power. Or run
adb reboot bootloader. - If the bootloader is locked, run
fastboot flashing unlockand confirm on the phone with the volume and power keys. This erases the phone. - In the unzipped folder run
flash-all.bat(Windows) or./flash-all.sh(Mac/Linux). Don’t unplug the phone until it reboots. - Optional: to re-lock, go back to the bootloader and run
fastboot flashing lock. Only re-lock on fully stock firmware — locking with modified software can brick the phone.
If something goes wrong
fastbootdoesn’t see the phone: on Windows install the Google USB Driver, try another cable or port, and check withfastboot devices.- “Anti-rollback” or “device is locked” errors: you are trying to install an older build that the phone refuses, or the bootloader is still locked. Use a newer build or unlock first.
Last updated 22 Oct 2026.
Devices that use this method
- Google Pixel 6
- Google Pixel 6 Pro
- Google Pixel 7 Pro
- Google Pixel 7
- Google Pixel XL
- Google Pixel
- Google Pixel Fold
- Google Pixel 7a
- Google Pixel 5
- Google Pixel 8 Pro
- Google Pixel 8
- Google Pixel 4a (5G)
- Google Pixel 4 XL
- Google Pixel 4
- Google Pixel 3 XL
- Google Pixel 3
- Google Pixel 2
- Google Pixel 9
- Google Pixel 9 Pro
- Google Pixel 9 Pro XL
- Google Pixel 9 Pro Fold
- Google Pixel 2 XL
- Google Nexus 6
- Google Pixel 8a