Solve problems with Xiaomi, red rice and other Android phones not being debugged under MAC (GO)

Source: Internet
Author: User

Turn from: Http://ju.outofmemory.cn/entry/103522Begin IOS 2014-08-19 271 readingMobile Android Xiaomi mac Debug

When you do the Android real-time test on Mac OSX, the status of the Xiaomi phone is displayed as unknown in Android Device Chooser. But the phone's USB debugging has been turned on. Is it because of the driving problem? However, Xiaomi does not provide a driver under MAC.

Note: Xiaomi phone to open the USB debugging mode Method-in the "about the phone", click "Android version" four times, and then back to the previous level, "about the phone" on the "developer Options" appear

In fact, Linux and MAC do not need to install the driver, as long as the ADB can identify the Xiaomi phone's USB Vendor ID.

Workaround:

1, configure the Android development environment. It's a good idea to download an integrated ADT (Android Developer tools) tool directly to the Android website, and then the Eclipse and SDK will be available after decompression.

Remember to configure the ~/.bash_profile, please search the relevant information by yourself.

2. Find the device's vendor number (Vendor ID). In the top left-hand corner of the screen, click on the system report, for more information, about this machine, please select USB on the left list to see the corresponding USB device factory name.

Find something similar to "HM1 Android Phone" (different devices slightly different, explore it yourself), click below to see the details,

One of the manufacturer ID is what we need, millet 1 is generally 0x18dl, millet 2 and red rice should be 0x2717.

3. Execution of Orders

echo "0x2717" >> ~/.android/adb_usb.ini

4. Restart ADB. If the ADB environment is configured, it is executed directly

adb kill-serveradb start-server

If not, go to Platform-tools in the Android SDK directory (earlier versions of the Android SDK, possibly in the tools directory):

./adb kill-server./adb start-server

You should be able to see the prompt after success:

* daemon not running. starting it now on port 5037 ** daemon started successfully *

If you encounter an error:

can‘t bind ‘tcp:5037‘, ADB server didn‘t ACK*faild to start daemon *

Just kill the 5037-port process and restart it, and restart the computer if you can't.

Finally unplug the phone to reconnect, the hand prompt whether to allow the connection of the computer for USB debugging, should be OK after.

Solve problems with Xiaomi, red rice and other Android phones not being debugged under MAC (GO)

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.