Getting LG L5 to be recognized by ADB on Ubuntu
I never had problem with my Samsung Galaxy W. I connected it to my Ubuntu, I issued adb install on the terminal, and everything went smoothly. Not a single problem.
Then I needed to upgrade to ICS. Samsung Galaxy wouldn't let me upgrade from Gingerbread to ICS. SO I bought LG L5 with ICS.
I connected LG L5 to my Ubuntu, issued adb install and....
adb spat this back to me:
error: insufficient permissions for device
What went wrong???? I issued adb devices to list the Android devices latched to my Ubuntu. It gave me this:
List of devices attached
???????????? no permissions
So my LG is not recognized by Ubuntu. It turns out that you need to create udev file for every device that you are using. So you need to create this file as root: /etc/udev/rules.d/lg-android.rules
The file name is arbitrary, just as long as it ends with .rules extension. Use descriptive file name. In that directory I have lg-android.rules and htc-android.rules files. Add this line to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0777"
The number 0bb4 is manufacturer ID and must be replaced by the manufacturer ID of your device. List follows. And mode is the permission. I set it to 0777 just to make sure every body can execute, write to and read from the device.
Then save the file, and set its permission to be executable and readable by all.
sudo chmod a+rx /etc/udev/rules.d/70-android.rulessd
Then unplug the device, plug it again and issue adb devices again. If your device is not listed, wait a few minutes and issue adb devices again. Should be listed now. Otherwise, I don't know what's gone wrong. :p
One more thing, I need to set my LG L5 connectivity to Media sync (MTP) and enable USB debugging. MTP basically tells my device to act like USB thumb drive.
Following is the result of adb devices issued on my Ubuntu terminal after the above steps are conducted:
List of devices attached
LGOTMSe8ae1617 device
What baffles me is that, why does Samsung get recognized right away, and why does my LG L5 gets recognized automatically on Mac? All the above steps are absolutely unnecessary on Mac...
Ref:
http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
Then I needed to upgrade to ICS. Samsung Galaxy wouldn't let me upgrade from Gingerbread to ICS. SO I bought LG L5 with ICS.
I connected LG L5 to my Ubuntu, issued adb install and....
adb spat this back to me:
error: insufficient permissions for device
What went wrong???? I issued adb devices to list the Android devices latched to my Ubuntu. It gave me this:
List of devices attached
???????????? no permissions
So my LG is not recognized by Ubuntu. It turns out that you need to create udev file for every device that you are using. So you need to create this file as root: /etc/udev/rules.d/lg-android.rules
The file name is arbitrary, just as long as it ends with .rules extension. Use descriptive file name. In that directory I have lg-android.rules and htc-android.rules files. Add this line to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0777"
The number 0bb4 is manufacturer ID and must be replaced by the manufacturer ID of your device. List follows. And mode is the permission. I set it to 0777 just to make sure every body can execute, write to and read from the device.
Then save the file, and set its permission to be executable and readable by all.
sudo chmod a+rx /etc/udev/rules.d/70-android.rulessd
Then unplug the device, plug it again and issue adb devices again. If your device is not listed, wait a few minutes and issue adb devices again. Should be listed now. Otherwise, I don't know what's gone wrong. :p
One more thing, I need to set my LG L5 connectivity to Media sync (MTP) and enable USB debugging. MTP basically tells my device to act like USB thumb drive.
Following is the result of adb devices issued on my Ubuntu terminal after the above steps are conducted:
List of devices attached
LGOTMSe8ae1617 device
What baffles me is that, why does Samsung get recognized right away, and why does my LG L5 gets recognized automatically on Mac? All the above steps are absolutely unnecessary on Mac...
MANUFACTURER | USB VENDOR ID |
---|---|
Acer | 0502 |
Dell | 413c |
Foxconn | 0489 |
Garmin-Asus | 091E |
HTC (Older Phones) | 0bb4 |
HTC (Newer phones) | 18d1 |
Huawei | 12d1 |
Kyocera | 0482 |
LG | 1004 |
Motorola | 22b8 |
Nexus One/S | 18d1 |
Nvidia | 0955 |
Pantech | 10A9 |
Samsung | 04e8 |
Sharp | 04dd |
Sony Ericsson | 0fce |
ZTE | 19D2 |
http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
0 komentar:
Posting Komentar