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.