docs/user-guide/setup/installing-adb.md
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with an Android-powered
device connected to a computer via USB. One of its useful features is the ability to capture a debug log (logcat).
See: Collect and Share Debug Logs → Step 3.
You don’t need the full Android SDK to use adb. Instead, download the smaller Android Platform Tools which include adb and other essential utilities.
adb directly from that folder.If you plan to use adb often, add the platform-tools folder to your system PATH so you can run adb
from any terminal or command prompt.
Before adb can communicate with your Android device, you must enable USB debugging:
For more detailed instructions, refer to the official guide.
Windows
You may need to install a USB driver for your device if it’s not recognized, see the OEM USB Drivers page for instructions.
Linux
You may need to add a udev rules file. See here for details.
Run the following from inside the platform-tools folder (or anywhere, if adb is in your PATH):
adb devices
If connected, you should see your device listed under List of devices attached.
adb kill-serveradb start-serverdadb devices again.When you’re done using adb, you can simply disconnect your device. If you want to stop the adb server, run:
adb kill-server