mac 下更新 .bash_profile 文件及解决mac不能识别某款android手机问题

 首先确保mac已经配置了android sdk环境变量,如果没有按照红色方式配置

1、打开terminal(终端)

2、cd ~ ( 进入当前用户的home目录)

3、open .bash_profile (打开.bash_profile文件,如果文件不存在就  创建文件:touch .bash_profile  编辑文件:open -e bash_profile)

4、直接更改弹出的.bash_profile文件内容

5、command + s 保存文件,然后关闭

6、在terminal(终端)中输入 source .bash_profile (使用刚才更新之后的内容)

 

1. 插上手机打开终端,输入:system_profiler SPUSBDataType,将输出结果记住。

 2.   拔下手机,重复以上动作。

 

 两者结果对比后会获得一个Vendor ID:

 

  1. Composite Device:  
  2.   
  3.           Product ID: 0x0010  
  4.           Vendor ID: 0x2207  (Fuzhou Rockchip Electronics Co., Ltd.)  
  5.           Version:  2.22  
  6.           Serial Number: 0123456789ABCDEF  
  7.           Speed: Up to 480 Mb/sec  
  8.           Manufacturer: rockchip  
  9.           Location ID: 0x14100000 / 12  
  10.           Current Available (mA): 500  
  11.           Current Required (mA): 500  
  12.           Capacity: 14.08 GB (14,084,472,832 bytes)  
  13.           Removable Media: Yes  
  14.           Detachable Drive: Yes  
  15.           BSD Name: disk1  
  16.           Partition Map Type: Unknown  
  17.           S.M.A.R.T. status: Not Supported  


3.在终端里输入echo "0x2207" > ~/.android/adb_usb.ini

 

红色为你的设备VendorID

 

4.adb kill-server

搞定

posted @ 2015-01-11 10:30  此木先生  阅读(431)  评论(0编辑  收藏  举报