Miui V5 ADB devices cannot be identified in Ubuntu

Source: Internet
Author: User

Original article address

Method 1:

The ADB command in Ubuntu does not recognize meter 2, but meter 1 does. The same is true for eclipse. Most of the solutions to such problems on the Internet (and official Google tutorials) are:

 Create a file/etc/udev/rules. d/51-android.rules and add rules

 

       SUBSYSTEM=="usb", ATTR{idVendor}=="XXXX", MODE="0666"

I cannot try it.

Then we found the solution:

Enter the following command on the terminal

  Echo
"0x2717"> ~ /. Android/adb_usb.ini

And restart ADB Server:

  ADB
Kill-Server


-----------------------------------------------------

Method 2:

 

Connect Xiaomi Mobile Phone 2 directly to Ubuntu. The ADB tool cannot identify it. I found some articles on the Internet and finally connected it after a long time. It was recorded.

Reference http://blog.csdn.net/qclzdh/article/details/7007011

M 2 mobile phone connected to ubuntu12.04 using USB, runLsusb command, the result is as follows:

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: 0001 Linux Foundation 1.1 root Hub
Bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 005 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 006 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 007 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 001 device 002: Id 148f: 5370 ralink technology, Corp. rt5370 Wireless Adapter
Bus 003 device 002: Id 192f: 0616 avago technologies, Pte.
Buses 001 device 004: Id 2717: 9039

Disconnect and run the lsusb command again. The result is as follows:

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: 0001 Linux Foundation 1.1 root Hub
Bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 005 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 006 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 007 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Bus 001 device 002: Id 148f: 5370 ralink technology, Corp. rt5370 Wireless Adapter
Bus 003 device 002: Id 192f: 0616 avago technologies, Pte.

Therefore, we can see that bus 001 device 004: Id 2717: 9039Is Xiaomi Phone 2, VID is 0x2717, In the http://www.linux-usb.org/usb.ids cannot find the name of the vender ID 0x2717

 Search for the. Android directory in the user's home directory. If not, create it. Create a new file named adb_usb.ini in the. Android directory; Add the obtained vid Value0x2717 to adb_usb.ini, respectively input in ShellADB kill-server, ADB start-server,
ADB devices; if you can see the list of devices, it will be successful. Then you can use eclipse to run the application development.

RITTER:

Method 2 of the mi2s test is successful.

After directly creating a file in $ VI adb_usb.ini, write 0x2717 at the beginning. Then, after ADB devices, if offline appears, check the mobile phone screen and prompt whether to allow debugging on this machine, select allow.

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.