What Is Fastboot and Why Use It?
Fastboot is a diagnostic protocol and tool included in the Android SDK Platform Tools. It lets you communicate directly with your Android device's bootloader to flash firmware images, wipe partitions, and unlock the bootloader — all from your computer's command line. Unlike flashing via recovery, Fastboot bypasses the operating system entirely, making it one of the most reliable methods for flashing stock firmware or factory images.
What You'll Need Before You Start
- ADB & Fastboot tools — Download the latest Android SDK Platform Tools from Google's official developer site.
- USB drivers — Install the appropriate OEM USB drivers for your device (e.g., Google USB Driver for Pixel devices).
- Factory image or firmware ZIP — Download the correct firmware for your exact device model and region.
- A charged device — Ensure your phone has at least 60% battery before proceeding.
- An unlocked bootloader — Most flashing operations require an unlocked bootloader.
Step 1: Set Up ADB and Fastboot
Extract the Platform Tools ZIP to a folder on your computer. On Windows, hold Shift and right-click inside the folder, then select "Open PowerShell window here." On macOS or Linux, open a terminal and navigate to the folder.
Verify the installation by running:
adb version
You should see the ADB version number printed in the terminal.
Step 2: Enable USB Debugging and Unlock the Bootloader
- Go to Settings → About Phone and tap "Build Number" seven times to enable Developer Options.
- In Developer Options, enable USB Debugging and OEM Unlocking.
- Connect your phone to your PC via USB and run:
adb devices— authorize the connection on your phone when prompted. - Reboot into bootloader mode:
adb reboot bootloader - Unlock the bootloader:
fastboot flashing unlock(orfastboot oem unlockon older devices).
Warning: Unlocking the bootloader will perform a factory reset and erase all data on your device. Back up everything first.
Step 3: Flash the Firmware
Once your bootloader is unlocked and your device is in Fastboot mode, navigate to your extracted firmware folder. Most factory images include a flash script (flash-all.bat on Windows or flash-all.sh on Linux/macOS). Simply run the appropriate script and wait for the process to complete.
To flash individual partitions manually, use commands like:
fastboot flash boot boot.img— flashes the boot partitionfastboot flash system system.img— flashes the system partitionfastboot flash recovery recovery.img— flashes the recovery partition
Step 4: Reboot Your Device
After flashing is complete, reboot your device with:
fastboot reboot
The first boot may take several minutes as the system optimizes apps. This is completely normal — do not interrupt the process.
Common Fastboot Errors and Fixes
| Error | Likely Cause | Fix |
|---|---|---|
| Waiting for device | Driver not installed | Install OEM USB drivers |
| FAILED (remote: 'not allowed') | Bootloader locked | Unlock bootloader first |
| Image too large | Wrong firmware version | Use correct image for your device |
Final Tips
Always download firmware from official sources or trusted repositories. Double-check that the firmware matches your exact device model — flashing the wrong image is a common cause of bricks. With the right preparation, Fastboot flashing is a straightforward and highly reliable process.