1. Check out our companion app, Forums for Android! Download from Google Play

General Install ADB on Windows & ubuntu 12.04 or 12.10

Discussion in 'Android Devices' started by GameTheory, Feb 24, 2013.

  1. GameTheory

    GameTheory Well-Known Member
    Thread Starter

    Install ADB on Windows & ubuntu 12.04 or 12.10

    *** This is an old guide and I'm no longer updating it ***

    This is a guide I made for
    ubuntu users and included a guide for windows users to setup Android SDK which contains ADB.

    Android Debug Bridge (ADB) provides a terminal interface on your PC to interact with your device's file system. This can be useful for many things like installing & uninstalling apps, logcat, backup & restore, and hacking your device just to name a few.

    Contents in order:

    ---ubuntu 12.04 & 12.10 guide
    ---Windows guide
    ---Commands for windows & ubuntu to get you started
    ---Wireless ADB on second post

    ubuntu 12.04 & 12.10 Guide

    1. Go here and download android-sdk (not the adt-bundle)....

    2. Place the downloaded file in your home folder and then extract it and you should get a folder named android-sdk-linux (do not rename it).

    3. If you’re on a 64bit machine run these commands in terminal to make sdk compatible with 64bit (if you’re on 32bit machine then skip this step)....
    sudo apt-get update
    sudo apt-get install ia32-libs-multiarch

    4. Run this command in terminal to install jdk if you don’t have it already....
    sudo apt-get install openjdk-6-jdk

    5. Navigate to the home folder where you extracted android-sdk-linux and open the folder then open the folder named tools

    6. Inside the tools folder there will be a file named android... double click it and select run then android sdk manager will open.

    7. In the center pane deselect everything... Now only select the following....
    Android SDK Tools
    Android SDK Platform-tools
    Android Support Library

    8. Once selections have been made click on install packages and wait till finished.

    9. Upon completion of step 8 in terminal run this command....
    sudo gedit ~/.bashrc

    When the file opens, go to the very bottom and copy/paste the following 3 lines (make sure they’re each on separate lines)....
    # Android tools
    export PATH=${PATH}:~/android-sdk-linux/tools
    export PATH=${PATH}:~/android-sdk-linux/platform-tools

    10. Now reboot your computer.

    11. Set your phone to usb debugging then plug it to your pc after pc is done booting

    12. Open a terminal on your pc and enter....
    adb devices

    If all went well, you should see your phone’s serial number and you’ll be ready to go.


    You can use steps 5 & 6 to open Android SDK Manager & update your ADB/SDK installation. Only select your installed packages then update.

    Windows Guide

    1. Make sure your phones Windows drivers are installed

    2. Install Java SE Development Kit 6 (JDK6)
    Windows x86 for 32bit systems
    Windows x64 for 64bit systems

    3. Go here and download android-sdk (not the adt-bundle)....

    4. Then follow this video for the rest of the setup....


    ubuntu & Windows Commands

    Visit this website for some commands to get you started....

    Enjoy :D:thumbup:


    #1 GameTheory, Feb 24, 2013
    Last edited: Sep 29, 2015
  2. GameTheory

    GameTheory Well-Known Member
    Thread Starter

    So we all know that you have to connect your phone to your PC with USB cable for ADB-SDK.

    Well thanks to adbWireless we don't need a USB cable any more.
    This is my favorite root app and the one I install immediately after rooting a device.


    ---Quick access to ADB on the fly
    ---If your phone is near full battery and not ready for a charge... go wireless. I don't like charging unless I'm under 25%. So it's great I don't have to plug in to use ADB.
    ---Simple & to the point with many options in the settings to fill your needs


    ---Large files can take long to transfer versus wired connection.
    A 1.4gb file takes about 30 minutes for me (i.e. CWM backup).

    Play Store link: adbWireless

    ---Make sure USB debugging is enabled before opening app to connect to ADB.
    ---When transferring files to & from phone, it will look like nothing is happening... Just wait & eventually when the transfer is complete, the "$" sign will appear again. Windows users I think your sign looks like ">".

    _____Commands I use to transfer to & from_____
    You can copy/paste these commands and set your own paths in place.
    I use these to transfer clockworkmod backups.

    From phone to PC:
    adb pull mnt/sdcard/external_sd/clockworkmod/backup /home/tony/backup

    From PC to phone:
    adb push /home/tony/backup /mnt/sdcard/external_sd/clockworkmod/backup

    Enjoy ;)
  3. FergatROn

    FergatROn Member

    Sep 9, 2010
    Web developer
    Nothing shows up when I type in "adb devices". I have my phone set to enable USB debugging, but when I plug it in to the computer it doesn't show up in nautilus nor as an available device for adb. Note: I'm running Fedora 18, but I wonder if the connection methods have anything to do with it: usb-charge only, sync with windows media, etc.?
  4. GameTheory

    GameTheory Well-Known Member
    Thread Starter

    This is the title for this thread....

    Install ADB on Windows & ubuntu 12.04 or 12.10

    Unless you have any of these operating systems installed, this will not work.
  5. FergatROn

    FergatROn Member

    Sep 9, 2010
    Web developer
    I understand that, I really do. I figured that we may be able to have a discussion about it. Ubuntu and Fedora aren't that much different. But I now see that this thread is os-specific. I'll leave it alone.
  6. GameTheory

    GameTheory Well-Known Member
    Thread Starter

    I can't have a discussion on an OS I don't use and know nothing about. Fedora seems to have limited support because the community is smaller, so things take longer to be available for it. This is one reason why I don't use it.

    Here's a link to the Fedora Project. They have a guide to setting up SDK which includes ADB. Not sure if this will work for you... If not, you may have to do some serious googling.

    HOWTO Setup Android Development - FedoraProject
  7. sammyz

    sammyz LG Whiz Kid

    Jun 3, 2011
    None :(
    Pompano Beach, Fl
    @GameTheory, you know we have everything for adb right here:
    http://androidforums.com/showthread.php?p=5389081 ;)

    No installs/sdk needed, maybe just a tutorial on how to use adb on windows would be great, oh and how to set up adb to be used from anywhere while terminal/cmd is open.
  8. GameTheory

    GameTheory Well-Known Member
    Thread Starter

    I know about mini SDK but I've always preferred to install SDK tools (it's the standard method). When installed it's easier to use with quicker access for someone in a rush. It's only 150mb installed, so I don't mind. It also comes with a GUI to keep it updated with one click.

    Here's an example of the same set of commands in both for a wireless connection....

    ____Mini SDK____

    tony@E4610:~/Downloads/sdk-tools$ sudo ./adb-linux connect
    [sudo] password for tony:
    already connected to
    tony@E4610:~/Downloads/sdk-tools$ ./adb-linux devices
    List of devices attached device

    tony@E4610:~/Downloads/sdk-tools$ ./adb-linux shell
    shell@android:/ $ su
    shell@android:/ #

    ____Standard SDK____

    tony@E4610:~$ adb connect
    already connected to
    tony@E4610:~$ adb devices
    List of devices attached device

    tony@E4610:~$ adb shell
    shell@android:/ $ su
    shell@android:/ #

    As you can see from the examples... It's quicker, shorter, and easier with standard sdk installed. When installed your not required to login (sudo) or to have to execute (./) and you don't need to point to its location. These are some of the elements that make it easier to use especially for noobz.

    I don't use windows so I don't think I can do a write up on it unless it's something I remember from the past. Admittedly I do own a copy of windows 7 ultimate.

    My goal with this guide was for beginners to have an easy to follow guide, to setup an easy to use environment on their PC's. I did see the standard guide at the top of your link, but it wasn't too beginner friendly.

    Oh and I'll get back on using adb from anywhere.
  9. PJD007

    PJD007 Well-Known Member

    Apr 9, 2010

    I followed these instructions to install ADB on ubunto 12.04 but when I run adb devices the command isn't recognised.

    I've also tried to run the command from the android-sdk-linux folder.

    Any idea why it's not working ?

    Thanks for any help.

    Edit: I ran the steps in this link and now the ADB commands work:


    However now when I run ControlBear I get this error:

    sh: 1: .tmp/fastboot: not found
    Starting up......
    Testing ADB connection
    sh: 1: .tmp/adb: not found

    I'm guessing there's something wrong with the path variables set as ControlBear is looking in tmp for fastboot etc.

    This is painful !!!
  10. richardren

    richardren New Member

    Sep 26, 2013
    Thank you for the sharing. It helps a lot. :)

  11. Android Addict

    Android Addict Well-Known Member

    Jul 29, 2013
    Swimming in a volcano and meowing at random people
    In a house
  12. pgrgrl

    pgrgrl Member

    Sep 28, 2015
    I followed these directions up to Step #5 for Ubuntu 12.04 on my notebook. When I open the folder, there is no "Tools" folder. So now what?

    Okay, nevermind, I successfully installed the Windows version on my PC.
    But please note the latest version of the Android SDK requires Java SE Development Kit 7 (not 6)
    Click here for v. 7
    #12 pgrgrl, Sep 29, 2015
    Last edited: Sep 29, 2015

Share This Page