|
12 years ago 10 |
This Tutorial will show details about how to make "adb" recognise your Android device on
Linux Mint 12 (Lisa,Gnome) . As you know, if your PC can recognise a Android device, you can
use "adb devices" to check if the Android device is recognised or not , you can use adb command
such as "adb push", "adb pull" to do something on Android device.
1.Connect Andriod device to your Linux Mint 12 (Lisa, Gnome).
2.Use "lsusb".
Use lsusb to check the Android device ID in usb subsystem, like below (do not care "$"):
$ lsusb
Bus 001 Device 002: ID 0fce:6156 Sony Ericsson Mobile
Number "0fce" is the Andriod device ID in use subsystem.
3.Update adb tool.
Turn to Android sdk folder "tools", typein below words:
$./android adb update
it's neccesary step to create ~/.android/adb_usb.ini.
4. Edit adb_usb.ini .
Edit ~/.android/adb_usb.ini. Add usb subsystem ID to adb_usb.ini, like below:
0x0fec
5.Create udev rule file.
Create a new file named "sony-android.rules" in /etc/udev/rules.d folder.
Add below content to "sony-android.rules"
SUBSYSTEM=="usb", SYSFS{idVendor}=="0fec", MODE="0666"
6.Restart adb service.
Do as below to restart adb service.
$ adb kill-server
$ adb start-server
7.Try "adb devices".
Plug out Adnroid device, then, Plug in again, use "adb devices" to check your Andriod device.
Enjoy Your Self!
Instead of "./android adb update" should be "./android update adb", plus instead of 0x0fec should be 0x0fce for the code of Sony Ericsson. Otherwise great post, especially in combination with this one: http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/ ;)