Ubuntu under Install configuration adb

Source: Internet
Author: User

1. Download SDK Tools for Linux, address: http://developer.android.com/sdk/index.html

2, unzip, put the Android-sdk-linux folder in a directory (my directory is ~/android-sdk-linux)

3, see if there is Platform-tools folder under the Android-sdk-linux folder, press the SDK under Android-sdk-linux folder Readme.txt operation, can also omit the first 2 steps, only download and use Platform-tools, for: HTTP://DL.DBANK.COM/C0UMEKBPXI

4. Configure Environment variables

Enter the following in the. BASHRC:

 for Android SDK toolsexport path= $PATH:/your_android-sdk-linux_path/tools/export Path= $PATH:/your_ android-sdk-linux_path/platform-tools/

5, after saving, synchronization update

SOURCE ~/.BASHRC

6, plug in the mobile phone, terminal input:

Lsusb

All of the USB devices that are consumed are listed.
Find your own device from:

My is Samsung's device.

7. Establish 70-android.rules file:

sudo gedit/etc/udev/rules.d/

8. Add the following statement to the 70-android.rules file (in my case):

subsystem=="usb", attrs{idvendor}=="04e8", attrs{idproduct }=="689e", mode="0666"

9. Change Permissions:

sudo chmod a+rx/etc/udev/rules.d/-android.rules

10. Restart the service:

sudo service udev restart

11, unplug the USB, reconnect (very important), and then execute:

ADB devices

The following interface appears:

It was a success.

12. Try this command:

ADB shell

Enter the shell to execute the linux command on your phone:

Reference website:

http://my.oschina.net/lifj/blog/77444 http://blog.csdn.net/luobin1984/article/details/7994671

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.