1. Need to download Android SDK and Eclipse
2. Terminal input System_profiler Spusbdatatype find MI 2 is your phone USB parameters
MI 2:
Product id:0x9039
Vendor id:0x2717
version:2.28
Serial NUMBER:22DA4DF1
Speed:up to 480 Mb/sec
Manufacturer:xiaomi
Location ID:0XFA140000/6
Current Available (MA): 500
Current Required (MA): 500
capacity:61.5 MB (61,536,256 bytes)
Removable Media:yes
Detachable Drive:yes
BSD Name:disk1
Partition Map Type:unknown
S.M.A.R.T. Status:not Supported
3. Terminal Input VI ~/.android/adb_usb.ini then putVendor ID is saved in this file, (vi inserts need to input I before editing, save and launch press ESC and then shift+: input Wq Save and eject do not save exit to enter!q). 4.In terminal, enter ADB prompt command not found. To add ADB's path to the configuration file, terminal edit ~/.bash_profile file export path=/users/qc/desktop/adt-bundle-mac/ sdk/platform-tools/: $PATH5. (i mi) open developer mode and USB debugging. Then right-click on the project in eclipse to select the need to set in the Debug as–> Debug Configuration, the Target tab changed to Manual, manual selection of debugging equipment. 6. Note If the device is not discovered, try to unplug the USB.
(reprint) Android mac Real Machine Debug