View Single Post
Old February 24th, 2013, 10:05 PM   #1 (permalink)
ROM Developer
Thread Author (OP)
GameTheory's Avatar
Join Date: Jul 2012
Location: ???
Gender: Male
Posts: 2,283
Device(s): [Galaxy S3 4.1.2] [LG Optimus F6] [LG Spirit 4G Samurai ROM]
Carrier: Metro pcs $60 plan

Thanks: 376
Thanked 1,636 Times in 762 Posts
Default Install ADB on Windows & ubuntu 12.04 or 12.10

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

Free App

GameTheory is online now  
Last edited by GameTheory; April 12th, 2013 at 09:30 PM.
Reply With Quote
The Following 4 Users Say Thank You to GameTheory For This Useful Post:
2GigayteSD (February 24th, 2013), alfick3 (February 25th, 2013), Android Addict (October 10th, 2013), cubone (February 25th, 2013)