| Requirement | Description | |-------------|-------------| | | Included in Android SDK Platform-Tools (Windows, macOS, Linux) or standalone package. | | Device state | Device booted into bootloader mode (often via adb reboot bootloader or hardware key combo). | | Driver (Windows) | Google USB Driver or OEM-specific bootloader driver. | | Unlocked bootloader | Most non‑OEM operations (flashing, erasing) require an unlocked bootloader . | | USB connection | Direct USB 2.0/3.0 connection (avoid hubs). |
fastboot devices fastboot getvar all fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot erase userdata fastboot reboot fastboot oem unlock fastboot flashing lock fastboot boot twrp.img fastboot set_active _a fastboot command
Verify device detection: