Transferring files using push and pull

Other topics

Remarks:

If LOCAL is omitted in the adb pull command, the filename from REMOTE is used

LOCAL can be a relative path or an absolute path, but REMOTE must be an absolute path

Push a file to the SD card

adb push file.txt /sdcard/

Pull a file from the SD card to the current working directory

adb pull /sdcard/file.txt

Syntax:

  • adb push [-p] LOCAL REMOTE
  • adb pull [-a] [-p] REMOTE [LOCAL]

Parameters:

ParametersDetails
LOCALA file or directory that is located on the user's computer
REMOTEA file or directory that is located on the user's Android device
-aAlso copy the file the remote file's timestamp and file mode data
-pDisplay transfer progress while the file or directory is copying

Contributors

Topic Id: 5844

Example Ids: 20591,20592

This site is not affiliated with any of the contributors.