以下为fastboot全部命令,比较常用的命令我已经加了注释。
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip //安装升级包
flashall flash boot + recovery + system //烧录所有分区
flash <partition> [ <filename> ] write a file to a flash partition //烧录指定分区
erase <partition> erase a flash partition //擦除指定分区
format <partition> format a flash partition //格式化指定分区
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices //列出所有设备
continue continue with autoboot
reboot reboot device normally //重启设备
reboot-bootloader reboot device into bootloader //重启设备到bootloader模式
help show this help message
options:
-w erase userdata and cache (and format
if supported by partition type) //相当于双wipe
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default: 2048
-S <size>[K|M|G] automatically sparse files greater than
size. 0 to disable