3

Hi I want to push an APK Expansion file to my phone so I am executing:

C:\Users\dogface\AppData\Local\Android\android-sdk\platform-tools>adb.exe push c :\main.1.com.redcricket.Audiobook.obb /mnt/sdcard/Android/obb/com.redcricket.Audiobook\main.1.com.redcricket.Audiobook.obb

But that fails with this error:

failed to copy 'c:\main.1.com.redcricket.Audiobook.obb' to '/mnt/ sdcard/Android/obb/com.redcricket.Audiobook\main.1.com.redcricket .Audiobook.obb': Invalid argument

So what am I doing wrong here?

1 Answer 1

2

First, especially for "Newbies": Hovering your mouse over the tag will reveal some info. Clicking the info link there brings you to the tag wiki, providing you some information to get started. The second link there (Everything about ADB) contains the answer to your problem:

adb push C:\Desktop\TitaniumBackup.apk /sdcard/

For the target, only specify the path, do not include a file name. So your command should look like:

adb.exe push c:\main.1.com.redcricket.Audiobook.obb /mnt/sdcard/Android/obb/com.redcricket.Audiobook

A special error you included is the backslash (\) which, on Windows systems, is a path separator -- but on Posix systems (Unix/Linux/Android) is an "escape character" (directory separator on these systems is the "forward slash", /).

1
  • Glad I could help -- and that it was such an easy solution :)
    – Izzy
    Mar 21, 2013 at 20:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .