How to perform Android real machine joint debugging in Ubuntu

Source: Internet
Author: User

First, open your Android device, connect to your computer, and enable the USB debugging function in the developer options in the settings.

Then, according to the android developer website (http://developer.android.com/tools/device.html) to do some preparation work. In this exampleAndroidmanifest. xmlIn the fileAndroid: debuggable = "true"Add<Application>Element. Then, use the text editor to write the. Rules file, and then use the CHMOD command.

The last thing to do is to let Ubuntu recognize your Android device. Here, the most important thing is that you must first enter the root mode (if you do not enter the root mode, the following will be displayed ???????????? No permissions ). The access method is to first set your root permission password: sudo passwd Root

Enter your password and then confirm it again. Enter the su command to enter the root mode. You can notice that the @ symbol in front of your user name has an additional root.

Finally, go to the platform-tools directory under the SDK directory of the android development kit you downloaded. Use./ADB kill-server first

Then use./ADB start-Server

Use./ADB Devices

In this way, you can see that your device is connected. Open your ADT and now you can perform real-machine joint debugging.

Related Article

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.