adb

Getting started with adb

Remarks#

This section provides an overview of what adb is, and why a developer might want to use it.

It should also mention any large subjects within adb, and link out to the related topics. Since the Documentation for adb is new, you may need to create initial versions of those related topics.

Installation or Setup

Specific to Windows System and android Phone:

Requirements:

  1. USB Cable
  2. Android Device
  3. Android Driver Software

Basically after connecting USB cable PC detects the Android Device and it will automatically search for the required Drivers for that Android Device. If that drivers are not found then you have to install manually.

Manual Installation:

  1. First install Android SDK in your PC(Windows)

  2. After installing in Android SDK tools Right click on the SDK Manager and select “Run as Administrator”

  3. In the SDK Manager select “Extras->Google USB Driver”. Enable the checkbox and click “Install 1 Package”

  4. When the Google USB driver is installed, plug in your device.

Warning: The driver won’t install automatically. We will do it manually in the next steps.

  1. Open the System Properties dialog (press Win+Break on the keyboard or locate “Computer” in Start Menu, right-click on it and select “Properties”.

  2. Click on the “Device Manager” link.

  3. In the Device Manager locate your Android device. Then right-click on it and select “Update Driver Software”.

  4. Select “Browse my computer for driver software”.

  5. Select “Let me pick from a list of device drivers on my computer”.

  6. Select “Show All Devices”.

  7. Press the “Have Disk” button.

  8. Enter the path to the Google USB driver. Normally it is located in the following directory:C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver

  9. Select “Android ADB Interface” from the list of device types.

  10. Confirm the installation of the driver by pressing “Yes”.

  11. Confirm the installation again by pressing “Install”.

  12. When the installation is done, press “Close”.

Introduction

adb is a command line tool for communicating with an emulator instance or connected device. It allows for installing and debugging apps, transferring files, as well as a variety of other interactions with the connected emulator or device. The ADB system consists of a client, which sends commands from the host computer, a daemon, which runs on the connected device and executes commands received from the client, and a server, which runs on the host computer and manages communications between the client and daemon.

Official Documentation

https://developer.android.com/studio/command-line/adb.html


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow