• Latest News

    Thursday, August 28, 2014

    ADB (Android Debug Bridge)



    Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes 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.
    You can find the adb tool in <sdk>/platform-tools/.
    When you start an adb client, the client first checks whether there is an adb server process already running. If there isn't, it starts the server process. When the server starts, it binds to local TCP port 5037 and listens for commands sent from adb clients—all adb clients use port 5037 to communicate with the adb server.
    The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port. Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections. For example:

    Emulator 1, console: 5554
    Emulator 1, adb: 5555
    Emulator 2, console: 5556
    Emulator 2, adb: 5557
    and so on...
    As shown, the emulator instance connected to adb on port 5555 is the same as the instance whose console listens on port 5554.
    Once the server has set up connections to all emulator instances, you can use adb commands to access those instances. Because the server manages connections to emulator/device instances and handles commands from multiple adb clients, you can control any emulator/device instance from any client (or from a script).

    Enabling adb Debugging


    In order to use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options.
    On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom.
    On some devices, the Developer options screen may be located or named differently.
    Note: When you connect a device running Android 4.2.2 or higher to your computer, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog. This requires that you have adb version 1.0.31 (available with SDK Platform-tools r16.0.1 and higher) in order to debug on a device running Android 4.2.2 or higher.




    Download Link: ADB (Android Debug Bridge)

    You can also Download ADB Fastboot Installer from Howunlock.com

    Hasnain Siddiqui

    Hasnain Siddiqui is a freelance web designer and developer with a passion for interaction design.

    Website: Premium Software

    • Blogger Comments
    • Facebook Comments

    0 Comments:

    Item Reviewed: ADB (Android Debug Bridge) Rating: 5 Reviewed By: Hasnain Siddiqui
    Scroll to Top