ADBFiles & StorageSafe
adb pull <remote_path> [local_path]
Copy file from device to computer
What It Does
Downloads a file or directory tree from the Android device to the specified local directory on the host computer.
Command Syntax
Terminal
$
adb pull [-a] <remote>... [<local>]Parameters & Placeholders Breakdown
This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:
[-a] A ParameterReplace this placeholder with your specific a value.
Real-world value:your--a
Command syntax:
adb pull your--a <remote>... [<local>]<remote>REMOTE ParameterReplace this placeholder with your specific remote value.
Real-world value:your-remote
Command syntax:
adb pull [-a] your-remote... [<local>]<local>LOCAL ParameterReplace this placeholder with your specific local value.
Real-world value:your-local
Command syntax:
adb pull [-a] <remote>... [your-local]<remote_path>Target File or Directory PathA file or folder path on the Android device or host machine.
Real-world value:/sdcard/screenshot.png
Command syntax:
adb shell screencap -p /sdcard/screenshot.png[local_path]Target File or Directory PathA file or folder path on the Android device or host machine.
Real-world value:/sdcard/screenshot.png
Command syntax:
adb shell screencap -p /sdcard/screenshot.pngUsage Examples
$
adb pull /sdcard/screenshot.png .$
adb pull /sdcard/DCIM/Camera/ ./photos/$
adb pull /data/anr/traces.txt traces.txtOptions & Flags
| Flag / Parameter | Description |
|---|---|
| -a | Preserve file timestamp and mode permissions. |
Prerequisites & Requirements
- Read permission on the remote file/directory
Related Commands
Found an error or missing flag for
adb pull <remote_path> [local_path]?Submit a correction or request additional examples on GitHub.
Having issue? Contact @mkr_infinity
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.