Debugging Android real machine in Ubuntu

Source: Internet
Author: User

CD/etc/udev/rules. d/

Sudo
Gedit 52-android.rules

Subsystem = "USB ",
Env {devtype} = "usb_device", mode = "0666", General

Sudo chmod A + R/etc/udev/rules. d/52-android.rules
Modify permissions

Sudo/etc/init. d/udev restart restarts the connection to the USB device.


Then go to the android SDK decompression path and go to platform-Tools


Www.linuxidc.com @ linuxidc:/etc/udev/rules. d $ CD/home/Ritter/Android-sdk-linux_86/platform-tools/
Www.linuxidc.com @ linuxidc :~ /Android-sdk-linux_86/platform-tools $


Enter "sudo./ADB kill-server"

Www.linuxidc.com @ linuxidc :~ /Android-sdk-linux_86/platform-tools $ sudo./ADB kill-Server


Enter "sudo./ADB start-server"

Www.linuxidc.com @ linuxidc :~ /Android-sdk-linux_86/platform-tools $ sudo./ADB start-Server


* Daemon not running. Starting it now on port 5037 *
* Daemon started successfully *


Enter "./ADB devices"

Www.linuxidc.com @ linuxidc :~ /Android-sdk-linux_86/platform-tools $./ADB Devices

List of devices attached
Sh0b5rt08771 Device


At this time, my mobile phone number is correctly displayed. It indicates that the real machine connection is successful. In eclipse, you only need to configure the target in run deployments as a mobile device to install the program to the real machine for debugging.

PS:

For the next connection, if the device is displayed as "???", Remember to go to platforms-tools under Android SDK

Run

Sudo./ADB kill-Server

Sudo./ADB Devices

You can see the device that is correctly identified.

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.