Ubuntu under Android Development install mobile phone driver

Source: Internet
Author: User

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

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.