After setting up the Android development environment in Ubuntu, another problem has plagued me. my mobile phone is Samsung I9000 (GalaxyS) and it is easier to install a driver in Windows, but I couldn't find the driver for Linux, so I searched the internet and found that there was still a method, and I didn't need to find the driver. 1. First connect the mobile phone to the USB interface, and then enter the following lines in the terminal: lsusb: Bus004Device001: ID1d6b
After setting up the Android development environment in Ubuntu, another problem has plagued me. my mobile phone is Samsung I9000 (Galaxy S) and it is easier to install a driver in Windows, but I couldn't find the driver for Linux, so I searched the internet and found that there was still a method, and I didn't need to find the driver.
1. First connect the mobile phone to the USB interface, and then enter:
Lsusb
Several rows of results appear.
Bus 004 Device 001: ID 1d6b: 0001 Linux Foundation 1.1Root hub
Bus 003 Device 001: ID 1d6b: 0001 Linux Foundation 1.1Root hub
Bus 002 Device 001: ID 1d6b: 0001 Linux Foundation 1.1Root hub
Bus 001 Device 003: ID 04e8: 681c Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b: 0002 Linux Foundation 2.0Root hub
The fourth line is what we want.
2.
Next, run the following command:
SudoGedit /Etc /Udev /Rules. d / 50-Android. rules
Add the following line in the edit window.
SUBSYSTEM= "Usb", SYSFS { "Samsung Electronics Co., Ltd" }= "04e8", MODE= "0666"
It is actually the character and ID value of the above result, save, exit, and return to the terminal.
Run the following command:
SudoGedit /Etc /Udev /Rules. d / 90-Android. rules
Add the following line in the edit window.
SUBSYSTEM= "Usb", ATTR { "Samsung Electronics Co., Ltd" }= "04e8", MODE= "0666"
Save, exit, and return to the terminal.
Run the following three commands:
Sudo ChmodA + rx /Etc /Udev /Rules. d / 50-Android. rules
Sudo ChmodA + rx /Etc /Udev /Rules. d / 90-Android. rules
Sudo /Etc /Init. d /Udev restart
3.
Run the cd command to go to the directory of adb under your Android SDK directory (usually platform-tools or tools), and then run the following command
Sudo. /Adb kill-server
Sudo. /Adb devices
A result similar to the following indicates that the operation is successful.
List of devices attached
100089955137 device
If the following content appears, you must repeat the two commands above.
List of devices attached
???????????? No permissions
Okay, connect to DDMS and check if your mobile phone is displayed?