By Ashraf, June 18, 2011
What is ADB
ADB stands for Android Debug Bridge. It comes as a part of the standard Android SDK. Basically, it provides a terminal-based interface for interacting with the phone’s file system. Since Android platform is based on Linux, command-line is often required to perform certain advanced operations on the device using root access.
While these things can be done directly on the device itself using some terminal emulator, it will be rather difficult to execute complex commands on such a small screen. ADB provides the bridge between the machine and the computer.
Installing ADB and Fastboot
Installing ADB and Fastboot is actually very easy:
The following guide is for Windows PCs only, but ADB/Fastboot can be installed on Linux and Mac OS X also. (You just do it differently for Linux/Mac OS X.) Also note that this guide was written on a Windows 7 computer. However, the guide will work on Windows 8/XP/Vista the same way.
- Download(11 MB) ADB, Fastboot, and other tools from: http://dottech.org/downloads/adb_fastboot_and_other_tools.zip
The tools are extracted and uploaded for easy access, instead of having to download the whole SDK. The same tools are available if the Android SDK is download directly from Google.
- Extract the contents directly into your C:\ partition. You should now have a folder C:\Android that looks something like this:
- Press Win + R on your keyboard to bring up the Run dialog.
- Once the Run box is open, type in sysdm.cpl and hit OK:
- Once you hit OK, the System Properties panel should open; click on the Advanced tab:
- From the Advanced tab click on Environment Variables:
- At the Environment Variables window find where it says Path under System variables, click on it, and click the Edit button:
- When the Edit System Variable window pops up, type in ;C:\Android at the very end and hit OK:
- Make sure you type in exactly ;C:\Android (be sure to include the semi-colon at the beginning).
- After clicking OK, close out all windows. Installation is completed!
Using ADB and Fastboot
Once installed, using ADB or Fastboot is as easy as opening command prompt, typing in adb xxx or fastboot xxx (with xxx being the command to run)…
…and hitting Enter on the keyboard to execute the command.
Take note, however, installing ADB and Fastboot is not enough to start using it with the phones. The relevant drivers need to be installed (http://dottech.org/android/26188/usb-adb-and-fastboot-drivers-for-windows-for-all-android-phones/) on the computer – so that the PC recognizes the phone – before ADB or Fastboot will be able to work with it. If the drivers are not yet installed, an error similar to the following will occur:
If the proper drivers are not installed, read dotTech’s article on downloads links, for USB (adb and fastboot) drivers for Windows, for all Android phones: http://dottech.org/android/26188/usb-adb-and-fastboot-drivers-for-windows-for-all-android-phones/
Uninstalling ADB and Fastboot
Uninstalling ADB, Fastboot, and the other tools is as easy, by undoing what was done during installation. In other words, delete C:\Android and all the files in it, and remove the environmental variable added earlier.
ADB and Fastboot is installed – now what? Now go and look for guides on modding/hacking the phone. A good place to start is by reading dotTech’s how to root guides. Another good place to look for Android hacking and slashing is XDA-Developers. If lucky, the guides found won’t require the use of ADB or Fastboot; but if they do, the installed ADB or Fastboot are prepared and ready for use.
Originally posted by Ashraf on Jun 18, 2012. Updated Nov 16, 2012 to include newer version of ADB and Fastboot.
About the author: Ashraf
Happily married to the most beautiful woman ever, Ashraf is the founder of dotTech. Ashraf spends insane hours on dotTech (usually writing articles but sometimes doing absolutely nothing except staring). Yes he is weird, but he is also very friendly.
If PC is unable to detect the "adb devices"; At mobile phone -------> Settings -------> Applications --------> Development --------> Tick - untick - tick "USB debugging".
At the PC's, the phone should be detected. Enter the command "adb devices" at the Command Prompt and the following message will appear:
"List of devices attached
To double confirm that "adb" is already working, at the PC, press WIN button + R -----> Run command: sysdm.cpl ------> System properties -----> Hardware Tab ------> Device Manager -----> "ADB Interface" is on top of the list. (And Network adaptors).
- http://androidforums.com/droid-3-all-things-root/484831-adb-not-detecting-phone.html by Snedd