Xiaomi 2 in Eclipse debugging, be aware of the following steps.
1, connect the cable, open the settings: USB Cable Connection Xiaomi 2, in the Settings--developer Option->usb tune is turned on. If this step, the employment in eclipse in the real machine debugging, the following steps do not look. If not, please continue;
2, check the driver: Check the Xiaomi 2 driver is installed successfully, if Win7, the installation drive slightly and WinXP not the same. There are related posts in the Forum: http://itbbs.pconline.com.cn/mobile/15569102.html
3, if still not sure whether the installation is successful, please download the latest Driver Installation Wizard 2012, the official network address: http://www.drivergenius.com/, download installation run, scan, will prompt M2 driver, you can install.
4, verify: Run Cmd.exe, in ADB devices; View a list of devices. such as F:\eclipse\android-sdk\platform-tools, indicating Adb.exe under the Platform-tools. , as shown on the device on my machine.
If the offline status is displayed instead of the device, it is kill-server and then start-server by the Start-server and Kill-server commands described below.
5, if there is no display device name, run ADB, first kill-server, and then Start-server. Then the ADB devices will probably list the devices.
6. Open Eclipse to debug to see if prompted to select the device. If still not, on the phone input: *#* #717717 #*#*, to make a call, currently is the Enable USB port, the operation of USB ports open meaning. If you enter again, it is closed. This was also mentioned in the Forum.
7. Note Select the first option in Eclipse Debug.
After the above steps, basically can be implemented in Xiaomi 2 in the real-machine debugging. Good luck!
Originally in the Millet forum posted this, and finally finished. Hint what content is illegal, don't know, what their check logic is. In order to help the people who need it later, it was released on the CSDN.
Xiaomi 2 in Eclipse debugging, be aware of the following steps. Go