Install the adb tool in linux

Source: Internet
Author: User
Install the adb tool in linux

Step 1: Start the Development Board and enter the android system. On the linux terminal, enter the lsusb command to query the devices on the USB Bus. For example, the query result is as follows: Bus 005 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b: 0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 15a2: 0c02 Freescale semicondu, Inc. bus 001 Device 001: I D 1d6b: 0002 Linux Foundation 2.0 root hub: 15a2 is the device ID of the Development Board.
Step 2: download the latest android SDK and unzip to a directory: http://developer.android.com/sdk/index.html as of now the latest sdk for the android-sdk_r12-linux_x86.tgz extracted name for the android-sdk-linux_x86 to enter the following directory: cd android-sdk-linux_x86/tools /. /android update adb
Step 3: Modify ~ The/. android/adb_usb.ini file. Note that the path in root mode does not exist under normal permissions. # ANDROID 3RD party usb vendor id list -- do not edit. # USE 'android update adb' to generate. #1 usb vendor id per line. 0x15a2
Step 4: Create a New udev rule file in/etc/udev/rules. d path, create a file named imx-android.rules, edit the content as follows: SUBSYSTEM = "usb", SYSFS {idVendor} = "15a2", MODE = "0666"
Step 5: Go to/etc/bash. the adb PATH declared in bashrc: export PATH =/opt/program/mx53_smd/out/host/linux-x86/binPATH and then source/etc/bash. bashrc Step 6: restart ADB adb kill-server adb start-server Step 7: Use the adb devices command to find the device: root @ lqm: /opt/program/mx53_smd/out/host/linux-x86/bin # adb devices List of devices attached 0123456789 ABCDEF device
Root @ lqm:/opt/program/mx53_smd/out/host/linux-x86/bin # so far, adb is successfully installed.

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.