Ubuntu10.10 Android real machine debugging

Source: Internet
Author: User

The actual operations we need to perform are:

Open the terminal. First, create the. Rules configuration file under the directory/etc/udev/rules. d/with root permissions.

Command: sudo touch 51-android.rules

Next, do I need to edit the. Rules file just created?

Command: gedit 51-android.rules
Inland transportation
Enter subsystem = "USB", sysfs {idvendor }== "0bb4", mode = "0666"

Then, grant permissions

Command: chmod A + R 51-android.rules

Restart udev

Command: sudo/etc/init. d/udev restart

After the configuration is complete, we can unplug the USB cable of the mobile phone and reconnect it. Run the command ADB devices in the/Android/SDK/tools/directory.

Start debugging if devices are listed

List of devices attached

Ht069pl00679 Device
Women's brand ranking
The possible problem is

List of devices attached

?????? No permission

Of course, this is only a permission issue. You can view the system logs through logcat and will find the following prompt:

Will be removed in a future udev version, please use ATTR {}=
Match the event device, or attrs {}= to match a parent device, in
/Etc/udev/rules. d/50-android

Clear the problem. re-edit the. Rules file and replace sysfs with ATTR.

Subsystem = "USB", ATTR {idvendor} = "0bb4", mode = "0666"

Repeat the following operations.

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.