Ubuntu notes--ubuntu USB connection to Android phone debugging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.