First, download the tool package platform-tools-linux.tar.gz of ADB for linux.
Decompress the package to any location. Do not delete it.
Create and edit a file
Sudo VI/etc/udev/rules. d/70-android.rules
Write in:
If your system is 10.10 or 11.04 (11.10 is not tested), write the following sentence:
Subsystem = "USB", ATTR {idvendor} = "04e8", mode = "0666 ″
If your system version is 10.04, change it to the following sentence:
Subsystem = "USB", sysfs {idvendor} = "04e8", mode = "0666 ″
The red font does not have a different logo. the logo of different manufacturers is different. Please change it based on your mobile phone. Refer to the table below.
Manufacturer |
USB vendor ID |
Acer |
0502 |
Dell |
413c |
Foxconn |
0489 |
Garmin-ASUS |
091e |
HTC (older phones) |
0bb4 |
HTC (Newer phones) |
18d1 |
Huawei |
12d1 |
Kyocera |
0482 |
LG |
1004 |
Motorola |
22b8 |
Nexus One/s |
18d1 |
NVIDIA |
0955 |
Pantech |
10a9 |
Samsung |
04e8 |
Sharp |
04dd |
Sony Ericsson |
0fce |
ZTE |
19d2 |
Save and exit, and then set the permission.
sudo chmod a+rx /etc/udev/rules.d/70-android.rules
You need to edit it later ~ /Add the bashrc file to the ADB Tool Path
vi ~/.bashrc
Add at the end. The red part is the decompressed path of the downloaded toolkit.
Export path =$ {path}:/home/Rabbit/documents/platform-Tools
Now you need to restart your Ubuntu and connect the USB to your mobile phone to make sure that the USB debugging is enabled. Enter
ADB start-server open service
If everything is normal
Input
ADB Devices
The current Android device connected to the computer will be displayed ^_^
Try this command
ADB Shell
You can execute the android shell command on the Ubuntu terminal!