Error on adb push

by guishenl...@gmail.com » 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
\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
system".
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/your.package.here/files, where your.package.here is the
Java package associated with your Android application.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

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

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Error on adb push

by guishenl...@gmail.com » Wed, 01 Apr 2009 10:13:10 GMT


 Thanks for your help!





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Bad sign: Single Content apps are coming to Android

If only the Market would segregate out that kind of episodic media content
it would be a big boon for the market at large.  Anything that gets people
in the mindset of using their money in the Market will likely have a splash
effect across other products.

-Josh

On Thu, Mar 19, 2009 at 4:34 PM, Mattaku Betsujin <




--~--~---------~--~----~------------~-------~--~----~

2. Correct .config for the ADP1

I've tried the following:
1) Pull /proc/config.gz from the phone.  Enable rfkill in make
menuconfig
--or--
2) make msm_defconfig

Doing either of these results in a kernel that during boot where the
static android logo turns into a flashing android, just restarts
continuously.  Therefore, I can't use adb to figure out what is going
wrong.

What have others been doing to get the kernel to compile properly?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. " Inject event permission "

4. Headset Input event

5. How to create transparent Window without starting a new activity

6. what is maximum size of application database allowable in Android?

7. Count Down Timer in list view