Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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", /).

share|improve this answer
    
Awesome! Thanks Izzy! –  Red Cricket Mar 21 '13 at 20:14
    
Glad I could help -- and that it was such an easy solution :) –  Izzy Mar 21 '13 at 20:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.