修改局部源码烧录手顺

阅读更多

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

 

你可能感兴趣的:(修改局部源码烧录手顺)