android fastboot流程,fastboot使用方法

user@user-OptiPlex-3020:~$ fastboot -h

usage: fastboot [ ]

commands:

update reflash device from update.zip

flashall flash boot + recovery + system

flash [ ] write a file to a flash partition

erase erase a flash partition

format format a flash partition

getvar display a bootloader variable

boot [ ] download and boot kernel

flash:raw boot [ ] create bootimage and flash it

devices list all connected devices

continue continue with autoboot

reboot reboot device normally

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format

if supported by partition type)

-u do not first erase partition before

formatting

-s specify device serial number

or path to device port

-l with "devices", lists device paths

-p specify product name

-c override kernel commandline

-i specify a custom USB vendor id

-b specify a custom kernel base address

-n specify the nand page size. default: 2048

-S [K|M|G] automatically sparse files greater than

size. 0 to disable