Google is committed to advancing racial equity for Black communities. See how.

Communicate with Devices over ADB

Android Debug Bridge (ADB) allows you to connect your development workstation directly to your Android device so you may install packages and evaluate your changes.

Confirm you have ADB

The adb tool is part of the Android Open Source Project (AOSP). ADB will be available once you've built or downloaded ADB:

To confirm you have the ADB binary, run the following command in a terminal:

adb version

If you have adb installed, you will see its version in the output.

Build ADB

If you don't yet have ADB, build Android. In summary:

  1. Check out the Android source code.
  2. Set up your environment and build Android:

    source build/
    lunch <target>

    Download ADB

You may also download ADB as part of Android Studio or in the standalone SDK Platform Tools.

Enable USB debugging

Now enable USB Debugging on the Android device to allow the connection. You will also be prompted when plugging the device into your machine.