Connect to the android real machine under fedora14

Source: Internet
Author: User

After the android development environment has been set up under fedora14, it is no problem to use the simulator for development. However, the simulator is slow and some functions cannot be implemented, so we want to use a real machine instead. My mobile phone Is htc g7.

After USB connection, switch to the directory where the abd program is stored and enter the command: sudo./adb devices on the terminal.

The following information is displayed:

List of devices attached

???????????? No permissions

 

Solution:

1. Find the device number.

Enter lsusb at the terminal

Output the following information:

Bus 002 Device 004: ID 0bb4: 0c87 High Tech Computer Corp.

Bus 002 Device 002: ID 8087: 0020 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub

Bus 001 Device 016: ID 1c4f: 0003 SiGma Micro HID controller

Bus 001 Device 003: ID 04fc: 2801 Sunplus Technology Co., Ltd

Bus 001 Device 002: ID 8087: 0020 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0 root hub

 

My mobile phone is "0bb4"

 

2. Create a configuration file

Enter the command: [zhoujh @ alexzhou ~] $ Sudo vi/etc/udev/rules. d/50-android.rules

Press the I key to enter the editing mode and write the following content to the file: SUBSYSTEM = "usb", SYSFS {idVendor }== "0bb4", SYMLINK + = "android_adb ", MODE = "0666", OWNER = "zhouyun"

Press esc to exit the editing mode. Enter wq to exit and save. The OWNER corresponds to the user name.

 

3. Make the configuration file take effect.

Enter the command: [zhoujh @ alexzhou ~] $ Sudo udevadm control -- reload-rules

[Zhouu @ alexzhou ~] $ Sudo/etc/init. d/udev-post reload

 

4. Enter the following command in the directory where the abd program is stored:

[Zhoujh @ alexzhou platform-tools] $ sudo./adb kill-server

[Zhoudo @ alexzhou platform-tools] $ sudo./adb start-server

 

5. Check whether the verification is successful.

Enter the command on the terminal: sudo./adb devices

The following information is output:

List of devices attached

0123456789 ABCDEF device

Related Article

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.