在mac下使用adb调试Android

今天想要在Mac OS X 10.6 Snow Leopard中试一下adb连接Android 之前在Xp下连接成功需要装驱动 这次想要搞一下Mac的

google了一些信息发现mac下只要装了SDK理论上就OK了 但是我用的时候无限device not found 很郁闷

换到ubuntu 9.04测试 发现sudo adb 可以连接到Android 又换回mac使用sudo连接 发现还是device not found依旧

内容如下:

Archos’s solution to ADB connection bug with Mac OSX since 1.4.xx firmwares
Archos support proposes a solution to the bug on ADB connection mode with Mac OSX 10.6.2 with firmwares updates since 1.4.07 to the latest 1.4.16 :
You actually need to modify or create the adb_usb.ini file
In terminal, you need to type :
echo "0x0e79" >~/.android/adb_usb.ini
Then
./adb kill-server
and
./adb start-server
I just modify the first command in order to preserve the original contents of the ~/.android/adb_usb.ini file by issuing the following command
echo "0x0e79" >> ~/.android/adb_usb.ini
Here is the result :

$ adb devices
List of devices attached
$ adb devices
List of devices attached
$ more ~/.android/adb_usb.ini
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
$ echo "0x0e79" >> ~/.android/adb_usb.ini
$ more ~/.android/adb_usb.ini
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x0e79
$ adb kill-server
$ adb start-server
$ adb devices
List of devices attached
A5S-xxxx0004-xxxx0000-0403xxxx-1500xxxx device

照猫画虎 在系统信息中查到我的设备的VENDOR ID 在 ~/.android/adb_usb.ini 中添加我设备的VENDOR ID

adb kill-server

adb shell

终于看到了久违的#提示符。。。。

此条目发表在Android分类目录。将固定链接加入收藏夹。

留下评论