9.3 ADB Copy Files

20200128

To copy a file from the device to the current working directory on the computer:

$ adb pull '/storage/emulate...data/de.danoeh.antennapod/files/media/ThePod/meditation.mp3'
...emulated/0/Android/data/...meditation.mp3: 1 file pulled. 22.9 MB/s (46969135 bytes in 1.957s)

To copy a folder from the device to the current working directory on the computer:

~/Music$ adb pull '/storage/8912-4FA8/Music/'
[ 15%] /storage/8912-4FA8/Music/the_togas/2045_best_absorbed/03_direct_thoughts.ogg: 65%

To copy a file from the current working directory on the computer to a specific location on the device:

$ adb push lama.mp3 /storage/emulated/0/Android/data/de.danoeh.antennapod/files/media/
lama.mp3: 1 file pushed. 17.6 MB/s (46969135 bytes in 2.544s)


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0