First step: View 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):
Spreadtrum Phone:
Product id:0x5d04
Vendor id:0x1782
version:2.29
Serial number:19761202
Speed:up to 480 Mb/sec
Manufacturer:spreadtrum
Location ID:0XFA120000/6
Current Available (MA): 500
Current Required (MA): 500
Check out the vendor id:0x1782 to my Android phone and remember this ID
Step Two: Create and modify the Adb_usb.ini file
Enter: VI ~/.android/adb_usb.ini command, add 0x1782 in open Adb_usb.ini file, then save exit
Or you can use a different text editor to make changes.
(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 after the save is good, 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 to find the ADB command,
ADB kill-server
ADB start-server
ADB devices
You can see the list!
Fourth: Enter the DDMS, already can find my Android phone, start debugging it!
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