adb push <local_path> <remote_path>
Copy file from computer to device
Transfers a file or folder from the host development machine to a specified path on the Android filesystem.
adb push [--sync] <local>... <remote>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 CoordinateThe vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.
adb shell input tap 540 1200<local>LOCAL ParameterReplace this placeholder with your specific local value.
adb push [--sync] your-local... <remote><remote>REMOTE ParameterReplace this placeholder with your specific remote value.
adb push [--sync] <local>... your-remote<local_path>Target File or Directory PathA file or folder path on the Android device or host machine.
adb shell screencap -p /sdcard/screenshot.png<remote_path>Target File or Directory PathA file or folder path on the Android device or host machine.
adb shell screencap -p /sdcard/screenshot.pngadb push update.zip /sdcard/adb push config.json /data/local/tmp/adb push photos/ /sdcard/DCIM/| Flag / Parameter | Description |
|---|---|
| --sync | Only push files that are newer or missing on the target device. |
- Write permissions at remote destination (e.g. /sdcard/ or /data/local/tmp/)
adb push <local_path> <remote_path>?Submit a correction or request additional examples on GitHub.
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.