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 [包名]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章