Here is an ADB auto-installer for linux that I wanted to share.
  • MisterBJMMisterBJM January 2011

    One of the members over at droidforums.net created an auto installer for adb interface on linux machines.  I tested it out on my linuxmint10 and for the most part everything work just as it should.  Here is a link to the original post with the installer script download on it.  



    After installing according to his instructions my terminal would kick back messages like "error: insufficient permissions for device" and adb devices would produce ?????????? for device number.  

    So if you experience this little snag in the road.  Here's what I did that fixed it right away and adb is now working properly


  • MisterBJMMisterBJM January 2011

    I had to 
    su 
    cd android-sdk-linux-linux/tools 
    ./adb kill-server 
    ./adb start-server 
    ./adb devices 
    exit 
    and now adb is running 100%


    I hope that this post will help anyone looking for a fast and simple adb install method on linux systems.

  • OpenCliqOpenCliq January 2011

    @MisterBJM
    "cd android-sdk-linux-linux/tools 

    ./adb kill-server 

    ./adb start-server 

    ./adb devices "

    Thats basically just restarting the adb server. Couldnt you have just started it, restarted pc, re-started it?

  • sudoadamsudoadam January 2011

    @OpenCliq: you'd rather completely shut down and restart your machine in the middle of doing something than run 2 commands?

  • OpenCliqOpenCliq January 2011

    when your system can do a power-off/power-on cycle in 30 seconds, sure ;)

  • FistOfRebellionFistOfRebellion January 2011

    @OpenCliq, I had to laugh...sorry @sudoadam............BAHAHAHAHAAA!

  • MisterBJMMisterBJM January 2011

    Actually, I haven't had time to update it yet, because Sunday church takes priority for me and my family, but I was kind of misleading by accident. If you have your phone plugged in during auto install the permissions are added to the system for you. If your phone isn't reachable via usb or you (in my case) plug a second phone in then the serial number is not already added to permissions. This was an easy work around right then but in reality for a long term fix you need to update the permissions in adb/tools folder. Sorry for the mix up. :p. I'm still learning this Linux thing out so...

  • MisterBJMMisterBJM January 2011

    So if you need to add your device or just add multiple devices to your Linux machine, here is what I did in terminal with the phone I wanted to "enroll" plugged in in debugging mode without mounting sdcard:


    sudo echo "export PATH=$PATH:/usr/local/androidsdk/tools" >> /etc/bash.bashrc 
    cd /etc/udev/rules.d
    sudo touch 99-android.rules
    #test try and get phone vendor id from lsusb command to iput into udev rule
    phoneid=$(sudo lsusb | egrep -o '0502|0bb4|12d1|1004|22b8|04e8|0fce')
    sudo echo SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"phone\", SYMLINK+=\"android_adb\", MODE=\"0666\", OWNER=\"USERNAME \" >> 99-android.rules
    sudo sed "s/USERNAME/$nameis/g" 99-android.rules > tempfile1
    sudo cat tempfile1>99-android.rules
    sudo sed "s/phone/$phoneid/g" 99-android.rules > tempfile4
    sudo cat tempfile4 > 99-android.rules
    sudo chmod a+r 99-android.rules
    sudo restart udev
    sudo rm tempfile1
    sudo rm tempfile4

    That should work.  I am trying to learn bash shell scripting now to make a script to add devices with a click.

Hey are you new here?!

Welcome to the best Ad-Free Android Community around! Create your profile, and start posting now! New features are being added all the time!

Login with Facebook Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In! Sign Up!

Categories

In this Discussion

Tagged