Buggy ADB pull & Android File Transfer on Mac OS X

Recently I needed to move my file from my One Plus (yes – I’m back to iOS). For this move I needed to transfer my previous images / files from the android phone to my computer.

The only thing is each time I tried to use Android File Transfer, it stalls in the middle of the progress after copying few files. I thoguht ok, let’s go back to CLI, so ADB was an obvious backup plan; however the last did not sustain as well. The phone keeps disconnecting and I got frustrated with this buggy design of both. (@Google – Why is this OK?)

Turns out that CLI is indeed a life saver especially for a linux user like me. What I did is really simple and effective.

The idea:
Run scp in adb shell connect back to your mac / linux box (Windows users you will find a way too – SFTP server?)

The implementation:

Bonus:
scp has many options, we used -r and -p because:
-r means recursive
-p preserves modification times, access times, and modes from the original file.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">