Mac can't connect to Android phone for debugging solutions

Source: Internet
Author: User

The first step: viewing USB device information

In terminal input: System_profiler Spusbdatatype can view information for connected USB devices

For example, my USB information is as follows (part of the content):

Android:

Product id:0x2769
Vendor id:0x22d9
version:2.31
Serial number:6e5d48a4
Speed:up to 480 Mb/sec
Manufacturer:android
Location ID:0X1D110000/8
Current Available (MA): 500
Current Required (MA): 500

Check out the vendor id:0x22d9 to my Android phone and remember this ID



Step Two: Create, modify, Adb_usb.ini files

Enter: VI ~/.android/adb_usb.ini command, add 0x22d9 in open Adb_usb.ini file, then save exit


My device has only one, so after adding the content of the file is as follows:


Http://eachday.iguesth.com/default.html

1

0x22d9


If there are multiple, the INI file format is as follows (not tested):

1

0x22d9

2

......

( Note: Please ensure that there is no blank line in INI, otherwise there will be error ADB server didn ' t ack)

Note: The first time you add, the Adb_usb.ini file does not, you need to create one yourself, enter the content and save it. VI will not be used, directly into the corresponding directory to modify the file can also, the corresponding path is as follows:

\users\ Your users \.android\adb_usb.ini

Note:
The. Android directory is hidden and requires the hidden directory display to be turned on.

command line input command to display Mac hidden files: Defaults write Com.apple.finder appleshowallfiles-bool true
(Hide Mac hidden files command: Defaults write Com.apple.finder appleshowallfiles-bool false??)
After you lose, click Enter, exit the terminal, restart the finder on it?? Restart Finder: Mouse click the Apple flag in the upper-left corner of the window and force exit-->finder--> restart

Step three: restart ADB

ADB kill-server

ADB start-server

ADB devices

You can see the list!


Part Fourth: Enter DDMS, already can find my Android phone, start debugging now!


Sometimes the ADB devices can not display the connection device, need to unplug the data cable, plug in several times, and exit the terminal, and then re-open, and then enter the command to find the connected device.


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.