• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Install ADB on Windows & ubuntu 12.04 or 12.10

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)....
http://developer.android.com/sdk/index.html

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.

~~~~~Important~~~~~

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)....
http://developer.android.com/sdk/index.html

4. Then follow this video for the rest of the setup....
http://www.youtube.com/watch?v=oaNM-lt_aHw

---------------------------------------------------------------------------------------------------------

ubuntu & Windows Commands

Visit this website for some commands to get you started....
http://adbshell.com/


Enjoy :D:thumbup:
 
Last edited:
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.

Pros:

---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

Cons:

---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

_______Tips_______
---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 ;)
 
Upvote 0
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.?
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.
 
Upvote 0
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
 
Upvote 0
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 192.168.1.3
[sudo] password for tony:
already connected to 192.168.1.3:5555
tony@E4610:~/Downloads/sdk-tools$ ./adb-linux devices
List of devices attached
192.168.1.3:5555 device

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

____Standard SDK____

tony@E4610:~$ adb connect 192.168.1.3
already connected to 192.168.1.3:5555
tony@E4610:~$ adb devices
List of devices attached
192.168.1.3:5555 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.
 
Upvote 0
Install ADB on Windows & ubuntu 12.04 or 12.10

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)....
http://developer.android.com/sdk/index.html

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.

~~~~~Important~~~~~
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)....
http://developer.android.com/sdk/index.html

4. Then follow this video for the rest of the setup....
http://www.youtube.com/watch?v=oaNM-lt_aHw

---------------------------------------------------------------------------------------------------------

ubuntu & Windows Commands

Visit this website for some commands to get you started....
http://adbshell.com/


Enjoy :D:thumbup:

Hi,

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:

http://bernaerts.dyndns.org/linux/245-ubuntu-precise-install-android-sdk

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 !!!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones