Ubuntu under Android development, Eclipse does not recognize the phone

Source: Internet
Author: User
Tags symlink

Eclipse does not recognize the phone solution under Ubuntu:
123456789101112131415161718192021 1) 在终端运行 lsusb会发现结果有会有如下类似记录:Bus 002Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 003Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 004Device005: ID1219:0102#这行就是 手机Bus 004Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 005Device001: ID 1d6b:0001Linux Foundation1.1root hub这时键入sudo gedit  /etc/udev/rules.d/53-android.rules在打开的文件中增加以下文本:SUBSYSTEM=="usb", SYSFS{idVendor}=="1219", MODE="0666"SUBSYSTEM=="usb", ATTR{idVendor}=="1219", ATTR{idProduct}=="0102", SYMLINK+="android_adb"2) 运行以下命令:sudo chmod a+rx /etc/udev/rules.d/53-android.rulessudo /etc/init.d/udev restart3) 在 android sdk 的 tools 目录下运行 (这一步很重要,必须要sudo,否则没效果)sudo ./adb kill-serversudo ./adb devices然后,就可以直接用 adb  shell来进行操作了。(以上摘自http://yelinsen.iteye.com/blog/986617)

Where my computer runs LSUSB after the display as follows:

123456789101112 Bus 008Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 007Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 006Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 005Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 004Device002: ID 0a5c:2145Broadcom Corp. Bluetooth with Enhanced Data Rate IIBus 004Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 003Device003: ID 093a:2510Pixart Imaging, Inc. Optical MouseBus 003Device001: ID 1d6b:0001Linux Foundation1.1root hubBus 002Device002: ID 04e8:685e Samsung Electronics Co., LtdBus 002Device001: ID 1d6b:0002Linux Foundation2.0root hubBus 001Device003: ID 17ef:1004LenovoBus 001Device001: ID 1d6b:0002Linux Foundation2.0root hub

That's why I can tell.

Bus 002Device002: ID 04e8:685e Samsung Electronics Co., Ltd

This line is mobile, so I should do the following:

1)sudo gedit  /etc/udev/rules.d/53-android.rules在打开的文件中增加以下文本:SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685e", SYMLINK+="android_adb"2) 运行以下命令:sudo chmod a+rx /etc/udev/rules.d/53-android.rulessudo /etc/init.d/udev restart3) 在 android sdk 的 platform-tools 目录下运行 (这一步很重要,必须要sudo,否则没效果)sudo ./adb kill-serversudo ./adb devices然后,就可以直接用 adb  shell来进行操作了。

Then you can identify the two phones listed here, and the others should be the same.

Ubuntu under Android development, Eclipse does not recognize the phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.