liunx-fastboot命令行的使用方法
2015-08-31 11:10
239 查看
1. adb devices查看已连接设备
adb reboot-bootloader 让手机进入fastboot模式
fastboot devices可以看到设备列表
用下面的命令烧写boot、systerm、和userdata
fastboot flash boot path\boot.img
fastboot flash system path\system.img
fastboot flash userdata path\userdata.img
然后用fastboot reboot重启设备
2、fastboot相关使用
Android手机分区(每个分区都有相应的img文件对应):开机启动画面区(splash1),数据恢复区(recovery),内核区(boot),
系统区(system),数据缓存区(cache),用户数据区(userdata)。
1. 查看fastboot命令的帮助:
fastboot
显示如下信息:
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等。
fastboot oem format 进行格式化
fastboot erase cache 清除cache
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
adb reboot-bootloader 让手机进入fastboot模式
fastboot devices可以看到设备列表
用下面的命令烧写boot、systerm、和userdata
fastboot flash boot path\boot.img
fastboot flash system path\system.img
fastboot flash userdata path\userdata.img
然后用fastboot reboot重启设备
2、fastboot相关使用
Android手机分区(每个分区都有相应的img文件对应):开机启动画面区(splash1),数据恢复区(recovery),内核区(boot),
系统区(system),数据缓存区(cache),用户数据区(userdata)。
1. 查看fastboot命令的帮助:
fastboot
显示如下信息:
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等。
fastboot oem format 进行格式化
fastboot erase cache 清除cache
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
相关文章推荐
- Hadoop常见错误及解决办法汇总
- 构造url测试action与dao实例
- 【笔试】37、顺时针打印矩阵
- 数据库常用函数大全(数学函数、字符串函数、其他函数)
- 二叉搜索树的后序遍历序列
- Linux:chmod -R 777 * 是什么意思?
- SQL ---指令实例语句
- 初到Hp实训基地感受
- WEB中配置错误页面
- 详解C语言中的wait()函数和waitpid()函数
- UCenter应用同步登录分析
- Java数组学习练习3冒泡排序数组代码
- LearningSpark6.1
- ARM 的指令集
- 使用Python的requests库进行接口测试——session对象的妙用
- 关于改变Bitmap透明度
- jdbc连接postgresql
- SPOJ Optimal Marks(最小割的应用)
- 关于sd卡的读取权限
- Android中的内部类引起的内存泄露