Configure and install the ADB tool in Linux (UBUNTU)

Source: Internet
Author: User

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!

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.