dos批处理文件之adb push
2013-05-08 10:33
176 查看
1、建立一个.bat文件
新建一个.txt文档,将后缀名改为.bat
2、编写该文档,文档内容如下:
adb remount
adb push ./uart_cfg /system/etc
adb push ./GNSS.bin /system/etc
adb push ./UART_RW.bin /system/etc
adb shell sync
pause
注意:
uart_cfg、GNSS.bin、UART_RW.bin是要push的文件,./表示该文件在当前目录下。
/system/etc是文件要push到的目录。这个目录一般是手机中的某个位置。
另外,使用fastboot烧写img文件与之类似:
fastboot -i 0x12d1 flash boot boot.img //boot.img就是要烧写的img文件,假设在当前目录下
pause
新建一个.txt文档,将后缀名改为.bat
2、编写该文档,文档内容如下:
adb remount
adb push ./uart_cfg /system/etc
adb push ./GNSS.bin /system/etc
adb push ./UART_RW.bin /system/etc
adb shell sync
pause
注意:
uart_cfg、GNSS.bin、UART_RW.bin是要push的文件,./表示该文件在当前目录下。
/system/etc是文件要push到的目录。这个目录一般是手机中的某个位置。
另外,使用fastboot烧写img文件与之类似:
fastboot -i 0x12d1 flash boot boot.img //boot.img就是要烧写的img文件,假设在当前目录下
pause
相关文章推荐
- Dos批处理文件Bat的编写
- DOS批处理文件
- 用批处理文件自动备份文件及文件夹,并自动删除n天前的文件_DOS/BAT
- 使用dos批处理文件(.bat)(转)
- dos bat批处理的魅力 批处理读取文本中的每一行 操作文件
- C#怎样执行DOS批处理文件
- 将DOS批处理文件转换为Shell脚本
- DOS 命令批量删除文件及相关批处理命令详解
- dos之bat批处理文件语法介绍
- DOS批处理文件
- windos批处理从dos界面传入参数到批处理文件的方法
- 《DOS命令一日通》第八章 自动文件执行(批处理文件)
- 【VS开发】cmd dos 批处理重命名文件<不一定非得吭哧吭哧的写C++来操作>
- 【Shell DOS BAT文件】批处理命令
- dos批处理文件中的变量小结
- 将DOS批处理文件转换为Shell脚本
- DOS批处理文件以及目录
- 将DOS批处理文件转换为Shell脚本
- DOS批处理文件
- 将DOS批处理文件转换为Shell脚本(ZHUAN)