Fastboot
More info
- Owner
- Type
- Protocol
- Spec
- fastboot/README.md
Android's bare-bones USB protocol for talking to the bootloader: write partitions, unlock, reboot — no running operating system required.
The phone is booted into bootloader mode, and the fastboot tool on the host sends text commands such as flash boot boot.img, getvar all or reboot. The protocol is deliberately primitive — short ASCII commands plus a data phase — because it has to fit in a bootloader with a few hundred kilobytes to play with. Where adb needs a working Android, fastboot is what is left when the system won't come up.
fastboot flashing unlock unlocks the bootloader and wipes user data in the same breath, so a thief can't flash a custom kernel and read the phone. Since Android 10 there is also fastbootd, a userspace implementation for dynamic partitions, which means there are now two fastboots, and talking to the wrong one produces wonderfully opaque errors.