Fedora Linux Support Community & Resources Center
  #1  
Old 15th July 2011, 04:41 PM
pballok Offline
Registered User
 
Join Date: Feb 2009
Location: Budaörs, Hungary
Posts: 16
linuxfirefox
Connecting Samsing Galaxy s2 with adb on Fedora 15

Hello all,

I seem to have problems with connecting a Samsung Galaxy SII to my Fedora 15 using adb.

I tried following the Android Developer pages, and numerous other forum posts as well, still wont work.
The command "adb devices" gives an empty list, my phone is not recognised.

I placed a file called 50-android.rules into /etc/udev/rules.d directory with the following content:
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"

I also tried numerous other variants of the same file, none of them worked.
I always did an udevadm control --reload-rules after editing the rules file.

Can somebody point me to the right direction? I'm happy to post any other information if needed.

Thanks in advance!

Last edited by pballok; 15th July 2011 at 05:17 PM. Reason: typo
Reply With Quote
  #2  
Old 17th July 2011, 10:44 AM
pballok Offline
Registered User
 
Join Date: Feb 2009
Location: Budaörs, Hungary
Posts: 16
linuxchrome
Re: Connecting Samsing Galaxy s2 with adb on Fedora 15

I did some more investigation on this.

It seems the problem is not with the Android Debug Bridge (adb) because my Fedora 15 itself is not recognizing the Galaxy SII phone.

As mentioned above, I placed my 51-android.rules file (note I changed file name from '50' to '51') in /etc/udev/rules.d
contents of the file:
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
I execute the following commands:
Code:
udevadm control --log-priority=debug
udevadm control --reload-rules
The /var/log/messages file contains messages about my new rules file being read in:
Code:
Jul 17 11:33:57 pinkpanther udevd[476]: udevd message (RELOAD_RULES) received
...
Jul 17 11:33:57 pinkpanther udevd[476]: reading '/etc/udev/rules.d/51-android.rules' as rules file
...
I then connect my phone via USB, turn it on and off and back on again, disconnect and reconnect in all possible variations. The command "lsusb" doesn't list anything about my phone, nor does the Android adb command. I also switched on the "USB debugging" option on my phone, didn't help either.

Anybody have any clue what I'm doing wrong?

thanks in advance
Reply With Quote
  #3  
Old 20th July 2011, 01:48 PM
pballok Offline
Registered User
 
Join Date: Feb 2009
Location: Budaörs, Hungary
Posts: 16
linuxfirefox
Re: Connecting Samsing Galaxy s2 with adb on Fedora 15

Can somebody at least give a few pointers about how to start debugging this? How do I check whether Fedora does anything at all when I connect the Galaxy SII ? If it worked correctly, should the phone even appear in the list returned by 'lsusb' ?
Maybe there is a tool I can use the get some sort of raw data (id numbers, device names, etc) connected to usb?

Thanks in advance
Reply With Quote
  #4  
Old 20th July 2011, 05:04 PM
alexeik Offline
Registered User
 
Join Date: Feb 2011
Location: Moscow, Russia
Posts: 92
linuxfirefox
Re: Connecting Samsing Galaxy s2 with adb on Fedora 15

I checked my samsung s 5570 mini:

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 1058:1100 Western Digital Technologies, Inc.
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 004 Device 002: ID 046e:5541 Behavior Tech. Computer Corp.
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 006: ID 046d:0a14 Logitech, Inc.
Bus 001 Device 007: ID 05e3:0722 Genesys Logic, Inc.
Bus 001 Device 008: ID 04e8:689e Samsung Electronics Co., Ltd

It works out of the box.

I can issue commands, if you wish.

This is also output of my dmesg command:

[ 1085.996772] usb 1-2.3: new high speed USB device using ehci_hcd and address 24
[ 1086.076717] usb 1-2.3: New USB device found, idVendor=04e8, idProduct=689e
[ 1086.076728] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1086.076736] usb 1-2.3: Product: Samsung Android USB Device
[ 1086.076742] usb 1-2.3: Manufacturer: SAMSUNG Electronics Co., Ltd.
[ 1086.076748] usb 1-2.3: SerialNumber: xxxxxxxxxxxxxxxx
[ 1086.078674] cdc_acm 1-2.3:1.0: This device cannot do calls on its own. It is not a modem.
[ 1086.078837] cdc_acm 1-2.3:1.0: ttyACM0: USB ACM device
[ 1086.081363] scsi25 : usb-storage 1-2.3:1.3
[ 1087.082679] scsi 25:0:0:0: Direct-Access SAMSUNG GT-S5570 Card 0100 PQ: 0 ANSI: 2
[ 1087.084421] sd 25:0:0:0: Attached scsi generic sg7 type 0
[ 1087.088998] sd 25:0:0:0: [sdg] Attached SCSI removable disk

Last edited by alexeik; 20th July 2011 at 05:09 PM.
Reply With Quote
  #5  
Old 20th July 2011, 05:28 PM
pballok Offline
Registered User
 
Join Date: Feb 2009
Location: Budaörs, Hungary
Posts: 16
linuxchrome
Re: Connecting Samsing Galaxy s2 with adb on Fedora 15

Thanks a lot for the reply alexeik. After reading your post, I connected the phone again, and to my big surprise, it now works! I see my phone in the lsusb output, and I can connect to it with adb. I honestly have no idea what fixed it, since I double-checked and all the udev config files are exactly the same as I described above in my previous post. The only difference I can think of is that I did have to switch the phone off and back on again the other day. Perhaps that fixed it? (I didn't switch the phone off while I wast testing a few days ago).

In any case, if someone else has similar problems, might want to restart your phone after setting the "USB debugging" option on your phone. *confused shrug*

So thanks alexeik, you just made me realise I can finally install my very own "Hello Android!" app to my phone!

Last edited by pballok; 21st July 2011 at 07:40 AM.
Reply With Quote
  #6  
Old 27th September 2011, 05:25 PM
anshumandhuliya Offline
Registered User
 
Join Date: Sep 2010
Posts: 7
linuxfedorafirefox
Re: Connecting Samsing Galaxy s2 with adb on Fedora 15

Just for information

keywords - adb fedora, adb driver setting for fedora, android phone connection with fedora

Follow all the steps from the official android site. But it gives solution only for Ubuntu!
For fedora follow the following steps.Do the following for a Samsung phone for other phones replace the "04e8" with an appropriate string listed below. It all worked for me on Fedora 13!

********************************START************* **********************
# As root, create a file named /etc/udev/rules.d/51-android.rules with following contents (04e8 is Samsung vendor id):

SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"


# As root, run udevadm control --reload-rules
# Unplug the phone if already connected and plug it.
# Connect to phone with adb (kill server if already started):

$ ./adb kill-server
$ ./adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
I500701b0470 device
***********************************END************ ***************************
now you may kill the adb server again. Start the eclipse ide. unplug and plug your phone again(just for precaution). Then choose the project to be deployed and press F11. Select your phone from the menu and you are done. Happy installation!

**you need to replace the "04e8" with the appropriate code
USB Vendor ID
Acer 0502
ASUS 0B05
Dell 413C
Foxconn 0489
Garmin-Asus 091E
Google 18D1
HTC 0BB4
Huawei 12D1
K-Touch 24E3
KT Tech 2116
Kyocera 0482
Lenevo 17EF
LG 1004
Motorola 22B8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10A9
Pegatron 1D4D
Philips 0471
PMC-Sierra 04DA
Qualcomm 05C6
SK Telesys 1F53
Samsung 04E8
Sharp 04DD
Sony Ericsson 0FCE
Toshiba 0930
ZTE 19D2
Reply With Quote
  #7  
Old 3rd June 2013, 08:37 AM
r0bis Offline
Registered User
 
Join Date: Apr 2009
Location: London, UK
Posts: 10
linuxfirefox
Re: Connecting Samsing Galaxy s2 with adb on Fedora 15

Thank you, anshumandhuliya
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samsung Galaxy S. sepoto Hardware & Laptops 1 2nd September 2011 04:25 PM
Galaxy GTS250 1GB gkocev Hardware & Laptops 7 15th February 2011 10:30 AM
Samsung Galaxy S smartphone kills network on USB connect martypants Using Fedora 0 31st July 2010 08:45 AM
Connecting Fedora 9 to a VPN andamaru Servers & Networking 1 17th January 2009 06:24 PM
connecting to fedora 5 using ftp zelphics Servers & Networking 5 29th July 2006 09:19 PM


Current GMT-time: 04:19 (Tuesday, 23-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat