0% found this document useful (0 votes)
153 views1 page

File Transfer Commands: Android Debug Bridge ADB Command

ADB (Android Debug Bridge) allows file transfers and synchronization between a computer and Android device. It can push and pull files using commands like "adb push" to transfer from computer to device and "adb pull" to transfer from device to computer. The "adb sync" command synchronizes a local build from a specified build location to the device, copying over all changed files from partitions like system, vendor, and data.

Uploaded by

ankurmishraer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views1 page

File Transfer Commands: Android Debug Bridge ADB Command

ADB (Android Debug Bridge) allows file transfers and synchronization between a computer and Android device. It can push and pull files using commands like "adb push" to transfer from computer to device and "adb pull" to transfer from device to computer. The "adb sync" command synchronizes a local build from a specified build location to the device, copying over all changed files from partitions like system, vendor, and data.

Uploaded by

ankurmishraer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Android Debug Bridge

ADB Command

File transfer commands


Copy files and directories from the local device (computer) to a remote location on
the device.
adb push local remote
Copy remote files and directories to a device. Use the  -a  option to preserve the file
time stamp and mode.
adb pull [-a] remote local
Synchronize a local build from the location specified in  $ANDROID_PRODUCT_OUT  to the
device. All changed files are copied from the specified partition. The default is to
sync all partitions. This command is only used when you build the Android platform
source. App developers don’t need to use this command.
The  $ANDROID_PRODUCT_OUT  environment variable is automatically set by the Android
build system to contain the location of the system images. Normally you won't need
to set  $ANDROID_PRODUCT_OUT  when doing  adb sync , but it can be useful if you're not
in a build tree (but have one) or are syncing between build trees without switching
between them.
$ANDROID\_PRODUCT\_OUT=/out/target/product/generic
adb sync
adb sync  [system|vendor|oem|data|all]

You might also like