Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    offline So I Hear You Can Mod
    Join Date
    Feb 2010
    Posts
    282
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Downloads
    0
    Uploads
    0

    Setting up SDK in Linux

    So, Ubuntu has decided to be mean to me.

    I can't get my SDK path to stick, and when I cd to sdk tools it tells me the device doesn't have the right permissions.

    Help with setting up SDK?

  2. #2
    offline Banned
    Join Date
    Jan 2010
    Location
    Winter Haven, Florida, USA
    Posts
    24
    Thanks
    0
    Thanked 4 Times in 3 Posts
    Downloads
    8
    Uploads
    0
    With Linux, you don't really have to set up the SDK at all if you just want to use ADB (assumption is that you just want to use ADB). The only real setup happens when you want to actually develop using the SDK, when you need to make sure you have the proper dependencies (like Eclipse, etc.)

    Once you get the SDK, find the ADB binary file and copy it (as root) to /usr/local/bin. It will be in your path and you can most likely get rid of the rest of the SDK. That way, when you type "adb" in a terminal shell, it will always be there. It also helps to keep a copy of ADB backed up somewhere in case you reinstall Ubuntu later on, since it's not in the repositories.

    Something like "sudo cp /home/me/android-sdk-linux_86/tools/adb /usr/local/bin" should do the trick.

  3. #3
    offline Itty Bitty Modder
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    2
    Thanked 3 Times in 1 Post
    Downloads
    9
    Uploads
    0
    Did you add android rules to the rules.d folder?

    i had to add the vendor id to the android rules to get mine to work though im using ubuntu 8.10 >.>

    make a file in your etc/udev/rules.d called 51-android.rules and add

    SUBSYSTEM=="usb", SYSFS{idVendor**=="22b8", MODE="0666"

    its how i got mine to work

    hope it helps ^^

  4. #4
    d[' ']b's Avatar
    offline Of Mice and Modders
    Join Date
    Jan 2010
    Posts
    66
    Thanks
    19
    Thanked 14 Times in 11 Posts
    Downloads
    13
    Uploads
    0
    or you could do what i do

    open terminal in the tools directory

    and run ./adb as root

    Code:
    sudo ./adb devices
    (after installing eclipse)

  5. #5
    offline So I Hear You Can Mod
    Join Date
    Feb 2010
    Posts
    282
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Downloads
    0
    Uploads
    0
    Alrighty, got it set in paths, now just need to figure out why it says "no permissions" when I do "adb devices"

  6. #6
    j_r0dd's Avatar
    offline Developer
    Join Date
    Nov 2009
    Location
    FLA
    Posts
    2,182
    Thanks
    570
    Thanked 2,765 Times in 739 Posts
    Downloads
    65
    Uploads
    11
    Quote Originally Posted by Stevenjcarney View Post
    Alrighty, got it set in paths, now just need to figure out why it says "no permissions" when I do "adb devices"
    http://developer.android.com/guide/d...ng/device.html
    Nexus S: CM7.1 Kang w/Voodoo
    Backflip: CM7.1
    Cliq: CM7.1
    Follow me on Twitter
    If you like something I have done & want to buy me a RedBull click HERE

  7. #7
    offline So I Hear You Can Mod
    Join Date
    Jan 2010
    Posts
    102
    Thanks
    6
    Thanked 6 Times in 5 Posts
    Downloads
    7
    Uploads
    0
    i had this exact problem myself.

    when you type

    echo $PATH

    what do you get?

    if your sdk isnt in there you need to add the directory to your path. what commands are you typing?

  8. #8
    offline So I Hear You Can Mod
    Join Date
    Feb 2010
    Posts
    282
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Downloads
    0
    Uploads
    0
    I put the ADB file in Usr/local/bin like beartard suggested, the ADB command works, just isn't showing my device

  9. #9
    offline So I Hear You Can Mod
    Join Date
    Jan 2010
    Posts
    102
    Thanks
    6
    Thanked 6 Times in 5 Posts
    Downloads
    7
    Uploads
    0
    what do you mean? like you can adb shell and adb push but when you type adb devices it doesnt show?

    and it doesnt need to be there btw. mine is in /home/art/sdk/tools and it works just fine

  10. #10
    offline Banned
    Join Date
    Jan 2010
    Location
    Winter Haven, Florida, USA
    Posts
    24
    Thanks
    0
    Thanked 4 Times in 3 Posts
    Downloads
    8
    Uploads
    0
    No, it doesn't *need* to be there, but I find that putting all my self-installed (ie, not in the ubuntu repositories) programs in /usr/local/bin helps me out when I want to make a backup before re-installing, upgrading, or trying out another distro. I don't use the SDK for development and ADB is the only tool I need. I put it in /usr/local/bin, forget about it, and delete the SDK. Also, with it in /usr/local/bin, there's no need to cd to the directory or use dot-slash in front of the command.
    Last edited by beartard; 02-13-2010 at 08:42 AM.

  11. #11
    offline So I Hear You Can Mod
    Join Date
    Feb 2010
    Posts
    282
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Downloads
    0
    Uploads
    0
    steven@steven-laptop:~$ adb shell
    error: insufficient permissions for device
    steven@steven-laptop:~$ adb devices
    List of devices attached
    ???????????? no permissions
    That's what I get when doing various adb commands

  12. #12
    offline So I Hear You Can Mod
    Join Date
    Jan 2010
    Posts
    102
    Thanks
    6
    Thanked 6 Times in 5 Posts
    Downloads
    7
    Uploads
    0
    Quote Originally Posted by Stevenjcarney View Post
    That's what I get when doing various adb commands

    so you cd to the directory, and for all intensive purposes ill use mine for this:
    $ cd /home/art/sdk/tools

    /sdk/tools$ ./adb devices
    * daemon not running. starting it now *
    * daemon started successfully *
    List of devices attatched

    well right now its not giving ne thing but usually i believe says mb200 then the serial.

    from the looks of it your not putting in the ./ in front of your adb commands, try that and see if it helps out, also are you running as su?

  13. #13
    d[' ']b's Avatar
    offline Of Mice and Modders
    Join Date
    Jan 2010
    Posts
    66
    Thanks
    19
    Thanked 14 Times in 11 Posts
    Downloads
    13
    Uploads
    0
    like i said earlier just run:

    sudo ./adb devices

    and see if that works for you - if it says its already running then:

    ./adb kill-server

    Followed by

    sudo ./adb devices

    Make sure you run these from within the TOOLS directory in terminal!

  14. #14
    offline So I Hear You Can Mod
    Join Date
    Feb 2010
    Posts
    282
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Downloads
    0
    Uploads
    0
    I hate this:
    Just tried it. It works. I did nothing to fix it. I hate computers!

  15. #15
    whoiskliwon's Avatar
    offline Itty Bitty Modder
    Join Date
    Oct 2010
    Location
    indonesia
    Posts
    15
    Thanks
    5
    Thanked 1 Time in 1 Post
    Downloads
    2
    Uploads
    0
    Hi,

    I'm n00b here , just want to share mine.I'm using ubuntu 10.4 , just now finished download android sdk for linux.I'm extracting to my home dir and name the directory to android and here're the output

    Code:
    cd android
    pwd
    /home/whoiskliwon/android/
    cd tools
    sudo ./adb devices
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    List of devices attached 
    TA1XX0160X	device
    Seem it work out of the box

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •