View Single Post
Old May 8th, 2013, 11:25 AM   #9 (permalink)
Junior Member
Join Date: Apr 2010
Posts: 82
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts

Originally Posted by GameTheory View Post
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)....

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


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 !!!
PJD007 is offline  
Last edited by PJD007; May 8th, 2013 at 01:17 PM.
Reply With Quote