Android development under Ubuntu, found that their mobile phone even if the USB connection, USB debugging or not connected, has always been displayed??????. Baidu a lot, found to change the "/etc/udev/rules.d/50-android.rules" file, but the problem came, this is specifically for a mobile phone to use, in case you use someone else's phone debugging it? oh,shit! Change again, fuck off, really can't stand, and change the steps is still very troublesome. Then continue to Baidu, found that there is a statement that the ADB is not rooted to start the cause. Here are the test steps:
Open Terminal (ctrl+alt+t), with the CD command to jump to the Android SDK directory platform-tools, input ./ADB devices , the terminal output is as follows
The reason is that the ADB does not start with root permission, then it is convenient to solve. Run the following command line one at a terminal:
sudo Kill-server #以root关闭服务 sudo ./adb start-server #以root开启adb服务 sudo ./adb Devices #显示连接设备, you will find that the previous no permissions has disappeared, the device number is displayed properly
Run:
OK, so now, Ubuntu will be able to connect your Android for debugging.
Author: Sky Road
Reprint please indicate source: http://www.cnblogs.com/travellife/
Ubuntu notes--ubuntu USB connection to Android phone debugging