MathJax

SyntaxHighlighter

Highlight

Custom CSS

Sunday, May 8, 2011

Using adb to copy files from your android device over wireless

Actually, I don't know why this is so hard. I poked around in various forums and the android docs to deduce this process:

  1. Install android SDK.
  2. Run tools/android and install the platform tools.
  3. The adb tool will be under platform-tools/adb.
  4. Run the following as root: adb kill-server && adb start-server.
  5. Download the adb wireless app and click the big green button.
  6. Run adb connect xxx.xxx.xxx.xxx:5555, and put the IP of your android device in there (the adb wireless app will show you what it is).
  7. Push and pull stuff willy nilly! Here's a list of pertinent commands.
  8. Run adb disconnect and press the big red button.

The main commands you'll be interested in are:

adb shell ls / 
adb pull REMOTE LOCAL
adb push LOCAL REMOTE