Ubuntu connect to Android with adb, cannot see it! Please help!
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As you run it with sudo, udev rules are irrelevant for now.
Hi!
I did, dmesg | tail
Code:
usb 2-3: new high speed USB device using ehci_hcd and address 7
usb 2-3: configuration #1 chosen from 1 choice
scsi9 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 9:0:0:0: CD-ROM Android Adapter ffff PQ: 0 ANSI: 2
sr1: scsi3-mmc drive: 0x/0x caddy
sr 9:0:0:0: Attached scsi CD-ROM sr1
sr 9:0:0:0: Attached scsi generic sg2 type 5
As you run it with sudo, udev rules are irrelevant for now.
I looked at dmesg and I was surprise it said USB mass storage! So I disable it and did dmesg again and get this!
Code:
scsi 9:0:0:0: rejecting I/O to dead device
usb 2-3: new high speed USB device using ehci_hcd and address 8
usb 2-3: configuration #1 chosen from 1 choice
scsi10 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 10:0:0:0: Direct-Access Android Adapter ffff PQ: 0 ANSI: 2
sd 10:0:0:0: Attached scsi generic sg2 type 0
sd 10:0:0:0: [sdb] Attached SCSI removable disk
Sorry, this "export ADB_TRACE=all" should be entered in root shell, just before ./adb command execution, for example after "sudo -i". About USB mass storage, I think it is wrong. When I connect my Android device I do not get mass storage, unless I switch it on on a telephone. And I can't connect with adb after this.
What about "sudo ./adb devices" after disabling mass storage?
Sorry, this "export ADB_TRACE=all" should be entered in root shell, just before ./adb command execution, for example after "sudo -i". About USB mass storage, I think it is wrong. When I connect my Android device I do not get mass storage, unless I switch it on on a telephone. And I can't connect with adb after this.
What about "sudo ./adb devices" after disabling mass storage?
I did:
sudo -i export ADB_TRACE=all
and it still not working!
Just one thing there is not a memory card on the phone, would that make any different?
You said when turn the phone? What do you mean by it? What state was it before and how did you get there?
You said when turn the phone? What do you mean by it? What state was it before and how did you get there?
No, sorry for my bad english, by "switching on" I mean enabling proper option. Anyway if you get response after "./adb devices" then it is correct.
If you get "???????????? device" then thats mean your phone has been recognized, but I suspect that you have no permissions to access it. Are you doing it as root? If not as root then everything is ok. But to access your device on user account, you need proper udev rule, check by "lsusb" your "idVendor", it probably changed after switching to non mass storage mode.
No, sorry for my bad english, by "switching on" I mean enabling proper option. Anyway if you get response after "./adb devices" then it is correct.
If you get "???????????? device" then thats mean your phone has been recognized, but I suspect that you have no permissions to access it. Are you doing it as root? If not as root then everything is ok. But to access your device on user account, you need proper udev rule, check by "lsusb" your "idVendor", it probably changed after switching to non mass storage mode.
You should see something like this:
Code:
List of devices attached
HT0CBRX11571 device
Thanks for your input here! I thought give an update what I have done so far. In Linux 2 PC manage to get in recognize as ??????? device I am going to play a bit with udev to see if it changed but I did create the rules for that PC, I also manage to download my first application by adb command line but Eclipse still not be able to download it to the phone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.