fastboot使用

来源:互联网 发布:javascript 遍历dom 编辑:程序博客网 时间:2024/04/29 15:22
在 cmd 中输入 fastboot 可以返回使用文档,具体如下

   1. usage: fastboot [ <option> ] <command>
   2.

   3. commands:
   4.   update <filename>                        reflash device from update.zip
   5.   flashall                                 'flash boot' + 'flash system'
   6.   flash <partition> [ <filename> ]         write a file to a flash partition
   7.   erase <partition>                        erase a flash partition
   8.   getvar <variable>                        display a bootloader variable
   9.   boot <kernel> [ <ramdisk> ]              download and boot kernel
  10.   flash:raw boot <kernel> [ <ramdisk> ]    create bootimage and flash it
  11.   devices                                  list all connected devices
  12.   reboot                                   reboot device normally
  13.   reboot-bootloader                        reboot device into bootloader
  14.

  15. options:
  16.   -w                                       erase userdata and cache
  17.   -s <serial number>                       specify device serial number
  18.   -p <product>                             specify product name
  19.   -c <cmdline>                             override kernel commandline


用 fastboot 恢复已备份的系统
在 cmd 中输入下面的命令:

   1. fastboot erase boot
   2. fastboot erase recovery
   3. fastboot flash system system.img
   4. fastboot flash boot boot.img
   5. fastboot flash userdata data.img
   6. fastboot flash recovery recovery.img
   7. fastboot reboot
原创粉丝点击