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.