Connect to Android devices in Ubuntu

Source: Internet
Author: User

Environment:

VMware 7.1.3

Ubuntu 10.04

Onda vi10 tablet, model Onda mid, Android 4.0
Steps:
1. Integrate Android applicationsProgramSet to debug mode.
Add Android: debuggable = "true" to the <Application> element in androidmanifest. xml ".
Note: Eclipse supports debugging mode by default, so you do not need to set it.
2. Enable "USB debugging" for the Android device ".
Choose Settings> developer options.
3. Configure Ubuntu to detect the device.

3.1 connect to the tablet and view the usb id.

Connect to the virtual machine through USB cable.

$ Lsusb


The device ID is 18d1.

$ ADB Devices


At this time, the Android device is detected in the system, but the type cannot be identified.

3.2 Create a udev rule file. Root permission is required.

$ Sudo Su-

# Vim/etc/udev/rules. d/70-android.rules

Add the following line:

Subsystem = "USB", ATTR {idvendor} = "18d1", mode = "0666", group = "plugdev"

TheATTR {idvendor} is the device ID.

3.3 set Access Permissions

# Chmod A + R/Etc/udev/rules. d/70-android.rules

3.4 restart udev and ADB services

#/Etc/init. d/udev restart

# ADB kill-Server

# ADB Devices


You can see that the device is connected.

If the device still cannot be identified, re-plug the device.

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.