Linux built Android development environment and Android Real machine debugging

Source: Internet
Author: User

1. First, check the USB port information of the phone connection

Bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub

Bus 006 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub

Bus 002 Device 007:id 0bb4:0c03 HTC (High Tech Computer Corp.)

Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub

Bus 005 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub

Bus 001 Device 003:id 5986:01a6 Acer, Inc Lenovo Integrated Webcam

Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub

Bus 004 Device 002:id 093a:2510 Pixart Imaging, Inc. Optical Mouse

Bus 004 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub

2. find the ID of the port to which your phone is connected
The third line of HTC, this is my test machine, then the Read ID is:0bb4

3. Create a USB rule for Android Real computer

sudo gedit/etc/udev/rules.d/51-android.rules

Add the following to the file: (ID:0BB4)
ubsystem== "USB", sysfs{idvendor}== "0bb4", mode= "0666

Save and close the rule profile, and then change the configuration file permissions.

sudo chmod a+rx/etc/udev/rules.d/51-android.rules

4. Restart the USB and ADB services

sudo service udev restart

sudo adb kill-server

sudo adb devices

This completes the pre-commissioning of the real-machine configuration.

Build Android development environment and Android real-computer debugging under Linux

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.