Ubuntu install ADB

Source: Internet
Author: User

1. Install adb via Apt-get

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb

Connect your Android device to your computer and the ADB shell will prompt "Error:device not found"


2, connect the Android device to the computer, through the LSUSB to view the USB device, the following red section corresponds to the Android device

[Email protected]:/etc/udev/rules.d$ Lsusb

Bus 002 Device 001:id 1d6b:0003 Linux Foundation 3.0 root Hub

Bus 001 Device 004:id 04f2:b414 chicony Electronics Co., Ltd.

Bus 001 Device 010:id 2,207:0010

Bus 001 Device 002:id 04ca:0061 lite-on technology Corp.

Bus 001 Device 005:id 0b05:17fd ASUSTek Computer, Inc.

Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub


3. Create Adb_usb.ini file, write ID

echo 0x2207 > ~/.android/adb_usb.ini


4. Add Permissions

sudo vim/etc/udev/rules.d/70-android.rules

Add the following to note that the Red section corresponds to the ID that LSUSB gets

subsystem== "USB", attrs{idvendor}== "2207", attrs{idproduct}== "0010", mode= "0666"


5. Restart the USB service

$sudo chmod a+rx/etc/udev/rules.d/70-android.rules
$sudo Service Udev Restart


6. Restart the ADB service, ADB devices has a device stating that the ADB installation was successful

$ADB Kill-server

$sudo adb start-server

$ADB devices

List of devices attached
815105148800601fe42 Device


Ubuntu install ADB

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.