Mac eclipse 连接安卓手机调试 adb

echo 手机厂商号 >>  ~/.android/adb_usb.ini

 ~ echo 0x18d1 >>  ~/.android/adb_usb.ini

重启系统即可

 

环境变量

vim .profile

添加:(根据自己SDK存放的位置而定)

  export PATH=${PATH}:/Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools

  export PATH=${PATH}:/Applications/adt-bundle-mac-x86_64-20140702/sdk/tools

生效:

source .profile

用法: adb shell

 

posted @ 2018-03-04 18:09  zhaocundang  阅读(313)  评论(0编辑  收藏  举报