fastboot命令---便于查阅

Android手机分区(每个分区都有相应的img文件对应):开机启动画面区(splash1),数据恢复区(recovery),内核区(boot),

系统区(system),数据缓存区(cache),用户数据区(userdata)。

 

1. 查看fastboot命令的帮助:

 

    fastboot

    显示如下信息:

[java:firstline[1]] view plain copy print ?
  1. usage: fastboot [ <option> ] <command>  
  2. commands:  
  3. update <filename>   reflash device from update.zip  
  4. flashall    "flash boot" + "flash system"  
  5. flash <partition> [ <filename> ] write a file to a flash partition  
  6. erase <partition>   erase a flash partition  
  7. getvar <variable>   display a bootloader variable  
  8. boot <kernel> [ <ramdisk> ]  download and boot kernel  
  9. flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it  
  10. devices     list all connected devices  
  11. reboot     reboot device normally  
  12. reboot-bootloader   reboot device into bootloader  
  13. options:  
  14. -w     erase userdata and cache  
  15. -s <serial number>   specify device serial number  
  16. -p <product>    specify product name  
  17. -c <cmdline>    override kernel commandline  
  18. -i <vendor id>    specify a custom USB vendor id  
[java:firstline[1]] view plain copy print ?
  1. usage: fastboot [ <option> ] <command>  
  2. commands:  
  3. update <filename>   reflash device from update.zip  
  4. flashall    "flash boot" + "flash system"  
  5. flash <partition> [ <filename> ] write a file to a flash partition  
  6. erase <partition>   erase a flash partition  
  7. getvar <variable>   display a bootloader variable  
  8. boot <kernel> [ <ramdisk> ]  download and boot kernel  
  9. flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it  
  10. devices     list all connected devices  
  11. reboot     reboot device normally  
  12. reboot-bootloader   reboot device into bootloader  
  13. options:  
  14. -w     erase userdata and cache  
  15. -s <serial number>   specify device serial number  
  16. -p <product>    specify product name  
  17. -c <cmdline>    override kernel commandline  
  18. -i <vendor id>    specify a custom USB vendor id  

 

2. 擦除分区:

 

    fastboot erase {partition}   例:fastboot erase boot或fastboot erase system等。

 

3. 烧写指定分区:

 

    fastboot flash {partition} {*.img}   例:fastboot flash boot boot.img或fastboot flash system system.img等。

 

4. 烧写所有分区:

 

    fastboot flashall   注意:此命令会在当前目录中查找所有img文件,将这些img文件烧写到所有对应的分区中,并重新启动手机。

 

5. 一次烧写boot,system,recovery分区:

 

    (1)创建包含boot.img,system.img,recovery.img文件的zip包。

 

    (2)执行:fastboot update {*.zip}

 

6. 烧写开机画面:

 

    fastboot flash splash1 开机画面

 

7. 重启手机:

 

    fastboot reboot

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值