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