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