ACC Logo
ADBFiles & StorageSafe

adb push <local_path> <remote_path>

Copy file from computer to device

What It Does

Transfers a file or folder from the host development machine to a specified path on the Android filesystem.

Command Syntax
Terminal
$adb push [--sync] <local>... <remote>
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:

[--sync]Vertical Screen Coordinate

The vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.

Real-world value:1200
Command syntax: adb shell input tap 540 1200
<local>LOCAL Parameter

Replace this placeholder with your specific local value.

Real-world value:your-local
Command syntax: adb push [--sync] your-local... <remote>
<remote>REMOTE Parameter

Replace this placeholder with your specific remote value.

Real-world value:your-remote
Command syntax: adb push [--sync] <local>... your-remote
<local_path>Target File or Directory Path

A 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
<remote_path>Target File or Directory Path

A 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
Usage Examples
$adb push update.zip /sdcard/
$adb push config.json /data/local/tmp/
$adb push photos/ /sdcard/DCIM/
Options & Flags
Flag / ParameterDescription
--syncOnly push files that are newer or missing on the target device.
Prerequisites & Requirements
  • Write permissions at remote destination (e.g. /sdcard/ or /data/local/tmp/)
Related Commands
Found an error or missing flag for adb push <local_path> <remote_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.

Contact @mkr_infinity