Installing ADB under the ubuntu10.04 64-bit system

Source: Internet
Author: User

1, download the corresponding SDK file, url http://dl.google.com/android/android-sdk-linux_x86-1.5_r2.zip


2, after decompression and placed in a directory, set environment variables, in the ~/.bash_profile or ~/.BASHRC file,

I put it in a BASHRC, and I joined a line.

Export path= "$PATH:/< storage directory >/platform-tools/"

chmod 777 < Storage directory >//platform-tools/adb #可能需要做这一步

SOURCE ~/.BASHRC


3, connect on the phone, through the terminal, the first execution, input command adb kill-server


4, the first problem that occurs after installation is that the ADB command cannot find the

hint Bash: < storage directory >/ platform-tools /adb:no such file or directory

The problem is that in 64-bit Ubuntu There is no 32-bit Lib
for Android to use,

sudo apt-get install Ia32-libs

sudo apt-get update


5, the installation will appear after the second problem is: The device name can not be displayed

Tips

???? No permission 

Create a configuration file under/etc/udev/rules.d/: 70-android.rules # Baidu 70-android.rules


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

The following configuration parameters are added to the file:

subsystem== "USB", attrs{idvendor}== "1d6b", attrs{idproduct}== "0002", mode= "0666 "

Save, set permissions under Configuration file

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

Restart

Sudo/etc/init.d/udev Restart

finally restart the next ADB service, you can (do not configure the environment variable to go to the Android SDK tools directory to execute sudo./adb kill-server./ADB devices)

sudo adb kill-server
sudo adb devices

such as:
subsystem== "USB", attrs{idvendor}== "1d6b", attrs{idproduct}== "0002", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "0CCF", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "0cf2", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0fce", attrs{idproduct}== "614f", mode= "0666"
subsystem== "USB", attrs{idvendor}== "22b8", attrs{idproduct}== "41db", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "18d1", attrs{idproduct}== "9025", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "0c86", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0525", attrs{idproduct}== "0c02", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "22b8", attrs{idproduct}== "4366", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "22b8", attrs{idproduct}== "428c", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "4e22", mode= "0666"
subsystem== "USB", attrs{idvendor}== "22b8", attrs{idproduct}== "7087", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "0c97", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "19d2", attrs{idproduct}== "1350", mode= "0666 "
subsystem== "USB", attrs{idvendor}== "12d1", attrs{idproduct}== "1038", mode= "0666 "

Installing ADB under the ubuntu10.04 64-bit system

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.