Ubuntu andorid real machine debugging

Source: Internet
Author: User

This is the near start of Android development on Ubuntu, and the PC and mobile phone cannot be connected. Record the solution to the problem and view the backup later.

1: lsusb viewing USB Information

Root @ zhaoyi :~ /Java_tools/android-sdk-linux_86/platform-tools # 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 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 002 device 002: Id 413c: 2003 Dell Computer Corp. keyboard
Bus 002 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 001 device 007: Id 0bb4: 0c03 high tech Computer Corp.
Bus 001 device 001: Id 1d6b: 0002 Linux Foundation 2.0 root Hub

Bus 001 device 007: Id 0bb4: 0c03 high tech Computer Corp.

The USB port ID of the mobile phone is obb4.

2: sudo gedit/etc/udev/rules. d/50-android.rules

3: addSubsystem = "USB", attrs {idvendor} ="0bb4", Attrs {idproduct} ="0c03", Mode =" 0666"

4:$ Sudo chmod A + Rx/etc/udev/rules. d/50-android.rules $ sudo service udev restart

5: Unplug the USB and go to the SDK. Go to the platform-tools directory (directory containing ADB)

Execute Sudo-s (important or there will be problems)

Sudo./ADB kill-Server
./ADB Devices
./ADB Root

OK

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.