日期:2014-05-16  浏览次数:20533 次

ADB应用
adb.exe   android debug bridge  android的调试桥

socket tcp 

adb 的文件操作 
把一个文件拷贝到手机内存 


adb push [源文件] [目标文件]


adb push haha1.txt /mnt/sdcard/haha1.txt 

adb pull [源文件] [目标文件]


[2012-03-09 10:33:00 - ddms]transfer error: Invalid argument
[2012-03-09 10:49:49 - DeviceMonitor]Adb connection Error:远程主机强迫关闭了一个现有的连接。
[2012-03-09 10:49:50 - DeviceMonitor]Connection attempts: 1
[2012-03-09 10:49:52 - DeviceMonitor]Connection attempts: 2
[2012-03-09 10:49:54 - DeviceMonitor]Connection attempts: 3
[2012-03-09 10:49:56 - DeviceMonitor]Connection attempts: 4
[2012-03-09 10:49:58 - DeviceMonitor]Connection attempts: 5
[2012-03-09 10:49:59 - DeviceMonitor]Connection attempts: 6
[2012-03-09 10:50:01 - DeviceMonitor]Connection attempts: 7
[2012-03-09 10:50:03 - DeviceMonitor]Connection attempts: 8
[2012-03-09 10:50:05 - DeviceMonitor]Connection attempts: 9

adb 连接的调试桥的socket出现了错误 
1. adb kill-server


2.  adb start-server

把电脑上的某个应用装(. apk)到模拟器或者手机里面 
adb install  demo.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]


卸载一个手机上的程序 
adb uninstall [包名]