The command prompt is the working surface for Android SDK Platform-Tools (ADB), where commands connect a Windows PC to an Android device. ADB communicates over USB or TCP on a local network for tasks such as sending commands, transferring files, and debugging.
ADB connects a PC to Android for command-line tasks
After extracting the tools, run Command Prompt from their folder to enter ADB commands. The adb devices command shows devices available to ADB. USB is a common connection method; TCP connections work over a network when the device and PC are on the same local network.
For a USB session, enable USB debugging on the Android device and approve the computer’s authorization prompt. Once connected, adb shell opens a command-line session on the device, while adb logcat displays system and app log messages for troubleshooting.
ADB installs APKs and moves files
Use adb install followed by an APK file path to send and install an app package on the connected device. The adb push and adb pull commands copy files between the PC and Android device, without using a cloud service or navigating the device’s file interface.
Fastboot handles device flashing workflows
Platform-Tools also includes Fastboot, a separate command-line utility used for operations with an Android device in bootloader mode. It can flash compatible images, including recovery or stock ROM files. These operations change device software and require the appropriate image files and commands.
Pros
- Transfers files between a PC and Android device
- Installs APK packages from the command line
- Connects over USB or TCP on a local network
- Includes Fastboot for bootloader-level operations
Cons
- ADB commands must be entered in a command prompt
Can ADB install an APK on an Android device?
Yes. With the device connected, run adb install and provide the APK file path.
Can ADB transfer files between Windows and Android?
Yes. Use adb push to copy files to the device and adb pull to copy them to the PC.
Does ADB work over Wi-Fi?
ADB supports TCP connections over a network when the PC and device are on the same local network.