Sunday, July 9, 2017

wi fi - How can I easily copy files from an Android device to a computer wirelessly via command line?


I need to copy jpegs from an Android phone's sdcard to a computer, ideally through command line (/storage/sdcard1/*.jpg to a remote location)


I've tried Izzy's solution from this post like so:


scp -p -P 2222 root@192.168.1.19:/storage/sdcard1/*.jpg ~/Desktop/pull/

but got this error:


sh: scp: not found

The scp and ftp commands are missing on the device, so is there a way to get this working ?


I've also looked at busybox and had some success doing so:



cd /storage/sdcard1 && for jpg in *.jpg; do ftpput -u user -p pass 192.168.1.33 ./Desktop/pull/$jpg $jpg;done

Another thing that worked is this ls solution but for single files and I'm not experienced enough with bash scripting for this to work on multiple files.


I'm looking for the simplest solution (with fewest install/setup steps). What is the easiest way to do this ?




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...