简单的fastboot命令:

来源:互联网 发布:竞拍源码 编辑:程序博客网 时间:2024/05/29 16:24

1.重启:
fastbootreboot2.:image fastboot flashall
3.刷指定分区:
fastbootflashpartitionfile.imgfastbootflashsystem//system.img4.: fastboot erase {partition}
如:fastboot erase system
5.刷完整的系统: (未测试!!). 创建一个包含boot.img, system.img和recovery.img的zip压缩包,并且运行:
fastbootupdateupdate.zip6.() fasboot flash splash1 mysplash.rgb565
注意开机画面文件需要一个特定格式,参考:Custom boot image

*通常需要完全恢复的操作是:

fastbootflashbootboot.img fastboot flash system system.img
$ fastboot flash userdata data.img

$ fastboot flash recovery recovery.img

以下是完整的fastboot命令的使用说明:

usage: fastboot [ ]
commands:
update reflash device from update.zip
flashall “flash boot” + “flash system”
flash [ ] write a file to a flash partition
erase erase 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
reboot reboot device normally
reboot-bootloader reboot device into bootloader

options:
-w erase userdata and cache
-s specify device serial number
-p specify product name
-c override kernel commandline
-i specify a custom USB vendor id

原文地址:http://bbs.zhiyoo.com/thread-5165939-1-1.html

0 0
原创粉丝点击