Chinaunix首页 | 论坛 | 博客
  • 博客访问: 376279
  • 博文数量: 214
  • 博客积分: 770
  • 博客等级: 军士长
  • 技术积分: 1969
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-08 01:22
文章分类

全部博文(214)

文章存档

2013年(110)

2012年(104)

我的朋友

分类: Android平台

2013-08-06 15:25:13

1. 添加命令到PATH路径下,方便全局使用:

android-sdk-windows\tools(主要使用adb.exefastboot.exe)

android-sdk-windows\platform-tools(主要使用ddms.bat)

2. 常用的刷机命令

>adb devices

F:\Users\TXL\Desktop>adb devices

List of devices attached

M9WRB08AKGVCWE0008      device

1a10c933        device

罗列出连接到电脑的所有设备

 

>adb reboot bootloader

进入bootloader模式

 

>adb remount

挂载system分区为可读写,方便下边使用adb push 文件 目的地

 

>adb push Mms.apk /system/app

将自己的apk覆盖system/app下的apk

 

>adb reboot

覆盖后的重启

 

3. bootloader后可以使用fastboot命令

主要的命令有:

F:\Users\TXL\Desktop>adb -s 1a10c933 reboot bootloader

>fastboot devices

F:\Users\TXL\Desktop>fastboot devices

1a10c933        fastboot

>fastboot flash boot boot.img

>fastboot flash system system.img

>fastboot flash recovery recovery.img

刷分区

>fastboot –w

清除数据

>fastboot update

zip

>fastboot erase

擦除分区

F:\Users\TXL\Desktop>fastboot

usage: fastboot [

 

commands:

  update                         reflash device from update.zip

  flashall                                 flash boot + recovery + system

  flash [ ]         write a file to a flash partition

  erase                         erase a flash partition

  format                        format 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

  continue                                 continue with autoboot

  reboot                                   reboot device normally

  reboot-bootloader                        reboot device into bootloader

  help                                     show this help message

 

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

  -b                            specify a custom kernel base address

  -n                            specify the nand page size. default:2048

 

转自http://txlong-onz.iteye.com/blog/1633483

阅读(1429) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~