Error on adb push

by » Tue, 31 Mar 2009 11:08:47 GMT

Sponsored Links
 Hi all,
    When I tried to copy a file in my PC to the Android Emulator, I
used the command
"C:\Documents and Settings\Alioth>adb push D:\Data\Android\1.jpg \data
But the it didn't work and the error message was
"failed to copy 'D:\Android\1.jpg' to '\data\data\': Read-only file
I don't know what to do, can anyone help me ?

Error on adb push

by Mark Murphy » Tue, 31 Mar 2009 19:47:07 GMT


1. Android is Linux-based, so your path separator should be / instead of
\ in the final parameter on your adb push command.

2. You may not be able to push files to /data/data on the emulator. You
definitely cannot on a device. Your files do not belong there. Put them
in /data/data/, where is the
Java package associated with your Android application.

Mark Murphy (a Commons Guy)  | 

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Sponsored Links

Error on adb push

by » Wed, 01 Apr 2009 10:13:10 GMT

 Thanks for your help!


Other Threads

1. Just got notice of my first chargeback, any other devs getting them?

Title says it all, but I juts got notice of my first chargeback from a
customer, the customer claims they did not recognize the $0.99 charge
on their credit card, because my app is less than $10 Google is going
to do absolutely nothing to dispute the chargeback and I am going to
be charged $3 for the privilege to not dispute my claim.

I know this info was in the android developers agreements, but now
that I have received a chargeback which has costed me $3 and there is
no possibility to even dispute the claim I am feeling a little

Has anyone else received any chargeback requests?  If so how many?

2. Positioning a Dialog at a required location (x,y)

You need to get the Window from the dialog, and update the window layout
params as desired.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


3. MVC model state change requires creating an Intent?

4. Market spam in comments and email to developers

5. Project Name -> bin -> "classes.dex" , "resources.ap_" ??

6. How Google Can Save Android From Certain Failure

7. About Android Coding rule