ADB (Android Debug Bridge) is a command-line tool that lets you communicate with Android devices from your computer. It is part of the Android SDK Platform Tools.

Install ADB

sudo apt install adb        # Linux
winget install Google.PlatformTools  # Windows

Connect a Device

Enable USB Debugging on the device, connect via USB, and authorize the connection on screen.

adb devices

Common Commands

adb shell                  # Open a shell on device
adb install app.apk        # Install an APK
adb pull /sdcard/file.txt  # Copy file from device
adb logcat                 # Stream device logs