GameTheory
Android Expert
Install ADB on Windows & ubuntu 12.04 or 12.10
*** This is an old guide and I'm no longer updating it ***
*** 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

Last edited: