Linux 中无法识别 HTC Sensation 进行调试
我正在使用 Eclipse IDE。
我只能在 Android 设备选择器中看到问号;我通常会在那里找到数字。就像我没有为
我在 HTC Inspire 上尝试过的设备添加 udev 规则,它运行良好,logcat 也运行良好,但不适用于这款较新的手机。
它在 Windows 上运行良好,但我更喜欢在 Linux 上开发; Ubuntu 11.04 更具体地说,
这是我从 $lsusb 的输出
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 09da:054f A4 Tech Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0bb4:0c86 High Tech Computer Corp. //THIS IS THE ONE!!
Bus 001 Device 002: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
,这是我的“规则”文件的内容,又名 $sudo gedit /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
我不明白为什么它工作正常适用于较旧的 HTC 手机,但不适用于这款较新的手机。
I'm using the Eclipse IDE.
I can only see question marks in the Android Device Chooser; where I'd usually find numbers. it's like I didn't add udev rules for the device
I tried with an HTC Inspire and it worked fine, logcat also worked fine but not with this newer Handset.
It works fine on windows but i prefer developing on linux; Ubuntu 11.04 to be more specific
this is my output from $lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 09da:054f A4 Tech Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0bb4:0c86 High Tech Computer Corp. //THIS IS THE ONE!!
Bus 001 Device 002: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and Here's the contents of my "rules" file a.k.a. $sudo gedit /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
I don't understand why it works fine with the older HTC handset but not with this newer one.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我从 XDA 开发者论坛获得了帮助
,我刚刚将这几行添加到我的
/etc/udev/rules.d/51-android.rules
中,然后我就连线了:Di got this help from XDA developers forum
i just added these few lines to my
/etc/udev/rules.d/51-android.rules
and I was wired in :D试试这个
Try this