ADB with Linux


Last Updated:

  1. screaminbug

    screaminbug Well-Known Member This Topic's Starter

    Joined:
    Nov 4, 2009
    Messages:
    102
    Likes Received:
    2
    Hi everyone,

    I had no luck with connecting to my Galaxy using adb under Linux. Has anyone manage to do that? There is an unresolved issue (issue 4635) on code.google.com, which states that adb won't connect to non-HTC devices under Linux (?). From my experience, that is certainly true for Galaxy. Please tell me that I'm wrong. :)

    Debugging is on, and lsusb outputs
    Code (Text):
    1. Bus 001 Device 004: ID 04e8:6601 Samsung Electronics Co., Ltd Z100 Mobile Phone
    2.  
    Edit: That is when debugging is off.. Here is what it prints out when it's on:
    Code (Text):
    1. Bus 001 Device 005: ID 04e8:6640 Samsung Electronics Co., Ltd Usb Modem Enumerator
    I've added the 51-android.rules file in /etc/udev/rules.d/ with this contents:

    Code (Text):
    1. SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
    and did


    Code (Text):
    1. chmod a+r /etc/udev/rules.d/51-android.rules
    Tried starting adb as root. Server starts ok, but it just doesn't see the device.
     

    Advertisement
    sitar_vcm likes this.
  2. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
  3. timmydog

    timmydog Member

    Joined:
    Sep 7, 2009
    Messages:
    8
    Likes Received:
    0
  4. screaminbug

    screaminbug Well-Known Member This Topic's Starter

    Joined:
    Nov 4, 2009
    Messages:
    102
    Likes Received:
    2
    Yep. This works. Thanks Andronix. I don't know how I've missed it, since I've been reading that issue. I'll blame it on me being very tired. (it's always someone else's fault :) )

    Timmydog, I can now run it successfully without the need of being root. (I left the rules as they were in OP)
     
  5. shaq

    shaq New Member

    Joined:
    Dec 28, 2009
    Messages:
    3
    Likes Received:
    0
    I tried this with my Samsung Galaxy Spica i5700, but neither of the two adb binaries are able to list the device. Any ideas?
     
  6. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
    ideas? what exactly have you tried and configured?
     
  7. turkievicz

    turkievicz Well-Known Member

    Joined:
    Dec 13, 2009
    Messages:
    53
    Likes Received:
    1
    Hi,

    I'm having the same problem, I very noob with the I7500 and Android, and returns the same "error: device not found"
    I don't know if this is important but, my version is IK4 and my linux is Fedora x64

    Made the same process, creating the files 50-android.rules, 51-android.rules and 90-android.rules that contain:
    Code (Text):
    1. SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
    I
    with the comand:
    Code (Text):
    1. chmod a+r /etc/udev/rules.d/50-android.rules
    2. chmod a+r /etc/udev/rules.d/51-android.rules
    3. chmod a+r /etc/udev/rules.d/90-android.rules
    download the latest SDK (revision 4)
    Unzip the adb.gz on the android-sdk-linux_86/tools
    Put the phone on recovery mode (recovery V0.4.4)
    Enable root
    On the terminal of the linux, as root, I do:
    Code (Text):
    1. chmod 755 adb
    2. ./adb shell
    And return:

    Code (Text):
    1. adb server is out of date.  killing...
    2. * daemon started successfully *
    3. error: device not found
     
  8. turkievicz

    turkievicz Well-Known Member

    Joined:
    Dec 13, 2009
    Messages:
    53
    Likes Received:
    1
    Sorry, I solved my problem. hehehe
    I forgot the installation of the SDK plataform, but now it's working.
     
  9. Macr

    Macr New Member

    Joined:
    Apr 7, 2009
    Messages:
    3
    Likes Received:
    0
  10. emaborsa

    emaborsa New Member

    Joined:
    May 12, 2011
    Messages:
    4
    Likes Received:
    0
    I continue with this 3rd since i have the same problem....
    Working on Ubuntu 10.04. Phone Samsung Galaxy S2. ADB installed and works fine on Eclipse. lsusb sees my phone "Bus 001 Device 007: ID 04e8:685e Samsung Electronics Co., Ltd" typing adb devices i get Permission denied. I followed some guides to create my udev rule, but everytime it was a little different.
    Need help, please.
     

Share This Page

Loading...