adb常用操作集合

jopen 10年前

adb是android debug bridge的缩写,即android调试桥,adb可以方便的使用PC来管理我们的手机。下面列举一些常用的操作:


  adb devices   显示所有设备


 adb kill-server   停止adb服务


adb start-server 启动adb服务


adb logcat  查看日志


adb  -s device_Id  command  多个设备时选择设备执行命令 ,device_id为adb device 中显示的id


adb shell  进入设备shell环境


adb push file /sdcard/  将文件传输到设备中


adb pull /sdcard/file  dir/ 将设备中文件传输到pc上


adb shell screencap -p /sdcard/file_path  将屏幕截图,保存在内存卡下的file_path下


adb shell start am -a andorid.intent.action.VIEW -d http://www.androiddevelop.cn  使用浏览器打开指定网址


adb shell am start -a android.intent.action.CALL -d tel:10010 拨打指定电话