views:

168

answers:

2

Hi,

I'm in the process of extending monkey for software testing purposes, so I would like to replace the current monkey.jar which my own compiled monkey.jar in the emulator. The current monkey.jar is located at /system/framework/monkey.jar.

When I try to run the following command:

adb push monkey.jar /system/framework/monkey.jar

i get the following: 'failed to copy 'monkey.jar' to '/system/framework/monkey.jar': Out of memory'

Any ideas on how to replace the current monkey.jar?

This actually works if I'm running Android 1.6 in the Emulator, but nothing after that. Yes, i've tried 'abd remount'

EDIT: This is not a .jar specific issue. I can't push any type of file to /system/framework

Thanks.

A: 

What does your "adb logcat" show? Does your emulator go out of memory? In that case, how about creating an AVD with more Device Ram Size? Have you tried that? Its in Hardware properties while creating an AVD

naikus
Care to explain the downvote?
naikus
I didn't downvote you. i'll try this.
CodingWithoutComments
@CodingWithoutComments I know you didn't cause you had not logged in for some time, I don't know who did it, just left the comment for whoever did it. :)
naikus
Good idea, didn't work however. Even when I jack the memory up really high I still get the 'Out of Memory' error.
CodingWithoutComments
@CodingWithougComments I shall spend some time on this today and see if I find something
naikus
+4  A: 

Found the answer on the following thread:

As an android developer, if you use the following command like:

adb push file /system/..

and meet problems like “failed to copy file to /system/…”, such as:

failed to copy ‘file’ to ‘/system/…’: No space left on device
failed to copy ‘file’ to ‘/system/…’: Out of memory

The resolve method is not using the Eclipse or AVD Manager to start the Android emulator, but by use the command first:

$emulator –avd youravdname –partition-size 128

Then you can try the command “adb push file /system/…”, and the problem maybe resolved.

CodingWithoutComments
+1 Hey thats good. Now I know what to do when i come accross something like this
naikus