1. Configure Environment variables
Enter terminal, input
sudo gedit ~/.BASHRC
Append at the end of the file:
#set path for Android SDK tools
Export path= $PATH:/your_android-sdk-linux_path/tools/
Export path= $PATH:/your_android-sdk-linux_path/platform-tools/
The your_android-sdk-linux_path here is the absolute path
The latest SDK should be changed to: $PATH: $ANDROID _homoe/platform-tools
Note: "/home/jason/develop_sdk/android-sdk-linux_86" is the path to the SDK.
Export android_home=/home/wangwei/soft_dev/android-sdk-linux_86
Export path= $PATH: $ANDROID _home/platform-tools
2, after saving, synchronization update
SOURCE ~/.BASHRC
3. If you run ADB directly, the display
ADB devices
* Daemon not running. Starting it now *
* Daemon started successfully *
List of devices attached
???????????? No permissions
No permissions
4. Switch to root and run steps 1 and 2 again.
Then restart the ADB service
SUDO/HOME/HUANGLEI/DEV/ENV/ANDROID-SDK-LINUX/PLATFORM-TOOLS/ADB Kill-server
SUDO/HOME/HUANGLEI/DEV/ENV/ANDROID-SDK-LINUX/PLATFORM-TOOLS/ADB Start-server
5. If it is not possible to run step 3, refer to the following methods:
(1) Plug in the phone, terminal input:
Lsusb
All of the USB devices that are consumed are listed.
Find your own device from:
Bus 002 Device 004:id 17ef:6019 Lenovo
Bus 002 Device 003:id 04c5:1356 Fujitsu, LTD <--------this is my device. Make a note of this line.
Bus 002 Device 002:id 8,087:0024
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 001 Device 002:id 8,087:0024
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
(2) Continue terminal input
sudo gedit/etc/udev/rules.d/51-android.rules
Add permission
chmod 666 51-android.rules
Add the following statement
system== "USB", attrs{idvendor}== "22d9", attrs{idproduct}== "2769", mode= "0666"
(The red and green words are the ones we write down, respectively)
Save.
Ubuntu under Android Development install mobile phone driver