Under Ubuntu 12.04, the ADB command does not display the device ID

Source: Internet
Author: User

1. Add the ADB command to/usr/local/bin. Command:

sudo cp ~/working/ics/out/host/linux-x86/bin/adb/usr/local/bin/

2. Create the file 50-android.rules. Command:

sudo vim/etc/udev/rules.d/99-android.rules (99 for permissions, if there are two such to a file, execute the permission high. Input


subsystem== "USB", attrs{idvendor}== "1782", attrs{idproduct}== "5d24", mode= "0666", owner= "Raulyang"

Where device Idvendor can be viewed through LSUSB:

Bus 001 Device 016:id 1782:5d04 Spreadtrum Communications Inc.

3. Execution command: chmod a+rx/etc/udev/rules.d/99-android.rules

4. In the home directory, create the. Android directory, new Adb_usb.ini file in the. Android directory, add the value of Idvendor, enter: 0x1782 save to exit.

  reason is ADB has a well-known list of vendor IDs, for the list of devices, ADB can directly connect, but not the list of devices, it will be directly returned, which is why the Android device driver has been installed, and the ADB connection is not the reason. If The manufacturer ID of the Android device we used has been modified, which is not in Google's default list, and the official steps will fail. Fortunately, ADB, in addition to a built-in list, there is a Adb_usb.ini file to maintain a trusted list of third-party vendors, need to vid (Vender ID) written to adb_usb.ini

5. Restart: Sudo/etc/init.d/udev restart

6. Execute: sudo adb kill-server

7. ADB devices

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.