Linux command
fastboot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List connected devices
fastboot devices
Flash partition
fastboot flash [boot] [boot.img]
Flash all partitions
fastboot flashall
Unlock bootloader
fastboot flashing unlock
Reboot device
fastboot reboot
Reboot to recovery
fastboot reboot recovery
Erase partition
fastboot erase [cache]
Boot temporary image
fastboot boot [recovery.img]
说明
fastboot is an Android tool for flashing firmware and modifying device partitions. It communicates with devices in fastboot/bootloader mode for low-level operations. The tool enables installing custom ROMs, recovery images, and performing maintenance on Android devices. It's part of the Android SDK platform tools.
参数
- devices
- List connected devices.
- flash _partition_ _image_
- Flash image to partition.
- flashall
- Flash all partitions.
- erase _partition_
- Erase partition.
- reboot _target_
- Reboot (bootloader, recovery).
- boot _image_
- Boot temporary image.
- oem _command_
- OEM-specific commands.
- getvar _variable_
- Get bootloader variable.
- -s _serial_
- Target specific device.
- update _zipfile_
- Flash all partitions from an update zip.
- flashing unlock
- Unlock the bootloader (newer devices).
- -w
- Wipe userdata.
FAQ
What is the fastboot command used for?
fastboot is an Android tool for flashing firmware and modifying device partitions. It communicates with devices in fastboot/bootloader mode for low-level operations. The tool enables installing custom ROMs, recovery images, and performing maintenance on Android devices. It's part of the Android SDK platform tools.
How do I run a basic fastboot example?
Run `fastboot devices` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does devices do in fastboot?
List connected devices.