ADB Pull – How to Copy Files from Android
My problem: adb devices
lists multiple devices, but I want to pull files from a specific one. What is the command to pull files from a specific device?
adb -s <device-id> pull -a <from-remote-path> <to-local-path>
- the
<device-id>
can be found in the output ofadb devices
, it is the first column. - the
-a
flag preserves the file attributes, like timestamps, otherwise the files will be copied with the current time as modification time, which is sad esp. for "historic" pics - you can find out the
<from-remote-path>
by usingadb -s <device-id> shell
and then usecd
andls
to find the path you want to pull, once in the right path, print the full path withpwd
, you will need it for thepull
command.
Just noting, since I always forget and AIs cost way more CO2 than looking up my blog.