Ubuntu Eclipse does not recognize mobile phone solutions

Source: Internet
Author: User
Tags ini port number

Sometimes we connect to the phone on Ubuntu and the phone is sure that the USB debug mode is turned on, but it is found that the device is not found when the ADB command is executed (Eclipse is also connected to the phone by ADB). As we all know, under Windows, it's usually possible to use a tool such as pea pods to connect to the phone. But there is no such driver in Linux, that can only be done on the other hand, that is, look at the phone's port number, and add its port number to ~/.android/adb_usb.ini, a simple few steps in the file:

① through Ctrl+alt+t Open the terminal, enter LSUSB, you can view the port number of our mobile phone.

② If there are a lot of lsusb, we can not determine which is our mobile phone, then we could plug in the mobile phone input lsusb, and then disconnect the phone input lsusb, by contrast which is our mobile phone, as shown in the following figure.

This column more highlights: http://www.bianceng.cn/OS/Linux/

③.bus 001 Device 019:id 1782:5d04 Spreadtrum. 1782 is the phone's port number and we need to add him to the Communications Usb.ini, by command: echo "0x1782" > ~/.android/adb_usb.ini or manually edit this file is OK, note to add 0x, because the port number is hexadecimal.

④. Restart ADB services, sudo adb kill-server, sudo adb start-server. OK, you can start the development work through eclipse.

Sometimes in windows, we also encounter the situation, peas and other tools can be connected to the phone, but Windows terminals and Eclipse are unable to connect the phone, such as my mobile phone is so, in fact, we can also solve this problem:

①. Find the. Android directory under the current user directory, and if not, create a new file, called Adb_usb.ini, in the. Android directory, remember the suffix is "ini" oh, also pay attention to whether the computer has hidden file suffix, if it is, need to set up display, Otherwise, the files you built are all. txt format, and then open by Notepad, the mobile phone port number added to the final can, remember is also 0x1782 (Millet 2 mobile phone is 0x2717, other models of mobile phones unknown).

②. Restart ADB services, sudo adb kill-server, sudo adb start-server. It's OK.

Related Article

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.