ADB Commands
ADB (Android Debug Bridge) is a command-line tool that lets you communicate with remote devices over an SSH tunnel. The commands below work with any QDC device that supports ADB — including Mobile, Automotive, and IoT sessions.
Using a non-default port?
If you specified a custom ADB port in the Connect dialog, add -P <port> before each command. For example: adb devices → adb -P <port> devices
Common Commands
adb devices — Lists all connected devices. Run this first to verify your connection.
adb shell — Opens a remote shell on the connected device, allowing you to run commands directly on the device.
adb install <path_to_apk> — Installs an APK on the connected device.
adb push <local_path> <device_path> — Copies a file from your local machine to the device.
adb pull <device_path> <local_path> — Copies a file from the device to your local machine.
adb logcat — Displays the device's log output in real-time. Useful for debugging.
Copying Files
Push a file to the device
Use adb push to copy files from your local machine to the device:
adb push C:\path\to\myfile.txt /sdcard/myfile.txtOutput:
C:\path\to\myfile.txt: 1 file pushed, 0 skipped.Pull a file from the device
Use adb pull to copy files from the device to your local machine:
adb pull /sdcard/myfile.txt C:\path\to\destination\myfile.txtOutput:
/sdcard/myfile.txt: 1 file pulled, 0 skipped.To pull to your current directory, use . as the local path:
adb pull /sdcard/myfile.txt .