爱黑武论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1.5万 回复: 2

[安卓技术] fastboot命令详解

[复制链接]
  • TA的每日心情
    开心
    2026-11-27 11:01
  • 签到天数: 4 天

    [LV.2]偶尔看看I

    发表于 2014-4-21 14:50 | 显示全部楼层 |阅读模式

    立即注册,加入爱黑武论坛的大家庭!爱黑武,爱上搞机生活!

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    Android手机分区(每个分区都有相应的img文件对应):

    开机启动画面区(logo)
    系统恢复区(recovery)
    内核区(boot)
    系统区(system)
    数据缓存区(cache)
    用户数据区(userdata)

    1. 查看fastboot命令的帮助:
    fastboot

    显示如下信息:
    view plain
    usage: fastboot [ <option> ] <command>  
    commands:  
    update <filename>   reflash device from update.zip  
    flashall    "flash boot" + "flash system"  
    flash <partition> [ <filename> ] write a file to a flash partition  
    erase <partition>   erase 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  
    reboot     reboot device normally  
    reboot-bootloader   reboot device into bootloader  
    options:  
    -w     erase userdata and cache  
    -s <serial number>   specify device serial number  
    -p <product>    specify product name  
    -c <cmdline>    override kernel commandline  
    -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 logo logo.bin开机画面

    7. 重启手机:
        fastboot reboot
    回复

    使用道具 举报

    该用户从未签到

    发表于 2014-5-14 09:36 | 显示全部楼层
    还是不太明白 可能是我太小白吧
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-11-17 19:05 | 显示全部楼层
    命令好像挺多的,,
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    QQ|Archiver|手机版|小黑屋|爱黑武论坛 ( 京ICP备2023028323号 | 京公网安备11011202000270号 )

    GMT+8, 2026-11-27 19:47 , Processed in 0.070281 second(s), 10 queries , Redis On.

    Powered by Discuz! X3.4

    Copyright © 2001-2026, ihei5.com

    快速回复 返回顶部 返回列表