ADB (Android Debug Bridge)


Android Debug Bridge is a resourceful command line application and called as client-server program that allow you communicate with an emulator instance or connected Android-powered device. It includes following three components:

  • A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
  • A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
  • A daemon, which runs as a background process on each emulator or device instance

When ADB client program strats, the client first test whether there is an ADB server process running or not. In case it is not running, it starts sever process and nest it binds to local Transmission Control Protocol port 5037 and respond for all commands that sent from ADB clients. However, all ADB clients utilize port 5037 to make communication with the ADB server.

After sever setting up connections with emulator instances, finds ABD daemon and connect to the communication port. Every emulator instance uses a pair of sequential ports i.e. even numbered ports for console connection and other for ABD connections.

Some few prominent points before using ADB

  • Before using ADB tool with Android device, you must enable USB debugging option given in device system settings under Developer tab.
  • The developer option screen is hidden by default in Android 4.2 and other higher versions. Thus, to make that option visible, go to Settings->About phone and click Build number seven times. Next, return to previous screen to locate Developer options at the bottom. On some devices, the Developer options screen may be placed or named in a different way

ADB has many built-in commands that perform some simple task. They are

  • adb push BurritoRoot2.bin /data/local/
  • adb shell chmod 777 /data/local/BurritoRoot2.bin
  • adb shell /data/local/BurritoRoot2.bin
  • adb root
  • adb shell id
  • adb remount
  • adb push su /system/xbin/su
  • adb shell chown 0.0 /system/xbin/su
  • adb shell chmod 06755 /system/xbin/su
  • adb remount
  • adb install Superuser.apk
Safe and Secure
Safe and Secure
Awards