Hello.
I’ve just switched from Ubuntu to OpenSuse, my main reason being Ubuntu / Unity, while I figured OpenSuse had an easy setup for Gnome 3 (Preview). Now to my problem. I’m developing for the android os, and has installed and configured Android Development Tools (ADT) according to android docs (Using Hardware Devices | Android Developers). I used the same procedure for my old Ubuntu setup, which worked.
Now, I’m unable to see the details of my hardware devices, output from the command “adb devices”
> adb devices
List of devices attached
??? no permissions
emulator-5554 device
I’m guessing this has something to do with the content’s of my /etc/udev/rules.d/11-android.rules and some permissions. The ADT guide mentions something about “Note: The rule syntax may vary slightly depending on your environment. Consult the udev documentation for your system as needed. For an overview of rule syntax, see this guide to writing udev rules.”
Is this something that differ from OpenSuse and Ubuntu?
I’ve seen an earlier post with a similar problem, that “solution” did not help me (puting vendorId in a adb_usb.ini file).
/var/log/messages when I plug in the device:
Sep 14 19:13:07 linux-t24u kernel: [87793.522247] usb 1-6: new high speed USB device using ehci_hcd and address 14
Sep 14 19:13:07 linux-t24u kernel: [87793.638493] usb 1-6: New USB device found, idVendor=0fce, idProduct=212e
Sep 14 19:13:07 linux-t24u kernel: [87793.638496] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 14 19:13:07 linux-t24u kernel: [87793.638499] usb 1-6: Product: SEMC HSUSB Device
Sep 14 19:13:07 linux-t24u kernel: [87793.638501] usb 1-6: Manufacturer: SEMC
Sep 14 19:13:07 linux-t24u kernel: [87793.638502] usb 1-6: SerialNumber: CB511J5186
I don’t know what ‘adb’ is or does, but - if it helps - you can see the list of your usb devices with the command lsusb, under openSUSE, Ubuntu or any other Linux. The first segment (left part of the number) describes the vendor ID and the second part (right to the colon) describes the product ID. These numbers never change. You’ll find the default udev rules under /lib/udev/rules.d and put your own in /etc/udev/rules.d. It works the same under all Linuxes. Check the udev and udevadm and maybe the udev page on ArchWiki: https://wiki.archlinux.org/index.php/Udev as well.
Hello.
Thanks a lot for taking time to offer me advices about the udev system. I now know what udev rules are and how to find the logs of what is going on when plugging in devices to my system.
I’m sorry to say that I solved this by correcting the file name of my rule, I had written 11-android-rules instead of 11-android.rules then using the udevadm to reload the rules solved my “problem”. First time around the rule where never read.
What was the udev rule you used. I’m trying to hook up my HTC HD2 and i’m not having much luck. I have checked the file name of the rule and that is ok, it’s in the location. I’ve added the Vendor ID to adb_usb.ini and all i get is a permissions error. It could of course be the rom i’m using as the HD2 is not a native android device. I just want to make sure that my PC is setup as perfectly as possible before i go looking at the rom source code.