Debugging of connecting to Xiaomi mobile phone real machine using Eclipse in Linux

Source: Internet
Author: User

Rube @ Rube :~ $ Lsusb
Bus 001 Device 002: ID 8087: 0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087: 0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 17ef: 6025 Lenovo
Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b: 0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0e8f: 0022 GreenAsia Inc.
Bus 002 Device 003: ID 05ca: 1823 Ricoh Co., Ltd

 

 

Connect the usb to Xiaomi and enter lsusb on the terminal

Rube @ Rube :~ $ Lsusb
Bus 001 Device 002: ID 8087: 0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087: 0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 17ef: 6025 Lenovo
Bus 002 Device 013: ID 05c6: 9031 Qualcomm, Inc.
Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b: 0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0e8f: 0022 GreenAsia Inc.
Bus 002 Device 003: ID 05ca: 1823 Ricoh Co., Ltd

We found out that there was an additional Bus 002 Device 013: ID 05c6: 9031 Qualcomm, Inc. Which is the Xiaomi Device.

 

3. then configure the file

The absolute path to add the configuration file is/etc/udev/rules. d/51-Android.rules. Some tutorials write 50-android.rules, but I tried it and got it wrong. I don't know why.

Add the following content to the configuration file. Create a 51-Android.rules file without this file.

SUBSYSTEM = "usb", SYSFS {idVendor} = "05c6", MODE = "0666"
SUBSYSTEM = "usb", ATTR {idVendor} = "05c6", ATTR {idProduct} = "9301", SYMLINK + = "android_adb"

Modify permissions:

Sudo chmod a + r/etc/udev/rules. d/51-android.rules

 

4. Enable debugging

Dial-up is required for enabling usb debugging for Xiaomi on the Internet: * #717717 # * # after broadcasting, I found a Log ~ What are the prompts...

Restart adb in sdk-> paltform-tools.

Sudo./adb kill-server

Sudo./adb devices

Can I debug it with eclipse.

 

<! -- Then -->

I have never known what to do recently. I am bored to start playing with Android again, and the log has also been changed to the blog garden to help a local teacher make purchase websites, apps use old and old techniques and do not learn anything new.

New things don't have time to study, and the school's classes are boring and not interested in learning. linux is always used. net class. sophomore year next semester... I thought about what to do, go out to work, and fight for school.

However, I can only take technology to the next level, but how can my creative brain come in handy...

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.