have been working with two computers, XP working side, Ubuntu has been just compiling the server, because is engaged in MTK's Android program development, so every flash down work to XP end, but XP end of the rogue software too much (everyone knows), the total footprint of the ADB's port, So we are ready to use Ubuntu (14.04) as a normal debugging platform;
one, the installation of tools and a few instructions (ignore)1. Install as long as you enter the following 3 commands
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb
2. Service start stop command adb start-server– actually it will start a ADB fork-server server
ADB Kill-server–kill off
ADB devices– List all the equipment
second, set up USB permissions to connect the device to start using, input adbdevices OMG.
List of devices attached
???????????? No permissions unexpectedly did not have permission, because not the root identity does not have the privilege to use the USB debugging, needs sudo support. Look at the SDK help documentation and discover that the SDK has been provided; see: docs/guide/developing/device.html
If you are developing on Ubuntu Linux, you need to add a rules file This contains a USB configuration for each type of Devi Ce want to the use for development. Each device manufacturer uses a different vendor ID. The example rules files below show you to add a entry for a single vendor ID (the HTC vendor ID). In order to support more devices, your'll need additional lines of the same format that provide a different value for the Sysfs{idvendor} property. For other IDs, the table of USB vendor IDs, below. Log in as root and create this file:/etc/udev/rules.d/51-android.rules.
For Gusty/hardy, edit the file to read: [Note: Ubuntu 7.10 and future versions]
subsystem== "USB", sysfs{idvendor}== "0bb4", mode= "0666"
For dapper, edit the file to read: [Note: Ubuntu 6.06 and previous versions]
subsystem== "Usb_device", sysfs{idvendor}== "0bb4", mode= "0666" now execute:
chmod A+r/etc/udev/rules.d/51-android.rules under the start, first use the LSUSB command to see the computer all USB connection device interface
$ lsusb
。。。。。
Bus 001 Device 010:id 0bb4:0c87 high Tech Computer Corp.
。。。。。
In the list, bus 001 Device 010:id 0bb4:0c87 high Tech Computer Corp. This is the USB usage port of the device we need to join, vid to 0bb4,pid = 0c87
$sudo Vim/etc/udev/rules.d/70-android.rules
Add the following content:
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "0c87", mode= "0666"
The Idvendor idproduct refers to a USB ID that can be obtained using a LSUSB query.
Run command, reboot Udev:
$sudo chmod a+rx/etc/udev/rules.d/70-android.rules
$sudo Service Udev Restart
third, restart ADB server(very important) unplug the USB reconnect and then execute:
$ADB Kill-server $adb Start-server
$ADB devices
If the above method is still unable to connect ADB, the most direct and effective way is:
Use Lsusb to find Devid, write in 16 to the local computer hidden directory file [/home/username/.android/adb_usb.ini]
Modify Adb_usb.ini In/root/.android/(if not exist, create it), add 0x17ef at the "End of" .
/ADB kill-server
sudo./ADB devices
Ok, finished!.
Summarize:
Instruction set Increase: LSUSB