I have libTestLibrary.so library and I want add it to Android-emulator's lib folder. How can I do this ?
I make following steps:
[2011-05-19 12:26:34] Failed to push selection: Read-only file system
I see the post that you linked but I can't understand it, can you give example of following code for my problem or explain this ?
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
adb install superuser.apk
I have write in command line:
C:\android\android-sdk-windows\platform-tools>adb remount
C:\android\android-sdk-windows\platform-tools>adb push libDsmShared.so /system/lib/libDsmShared.so
and error appears:
failed to copy 'libDsmShared.so' to '/system/lib/libDsmShared.so': Out of memory
I have made the following steps:
Failed to push selection: Read-only file system
Write: abd remount enter
You will see remount successful
Maximize Eclipse and try step 5.
Failed to push selection: Out of memory
Error appears.
Here I present the steps how I add libraries to Android-Emulator's lib folder, it takes a week from me, but I have done all and want to share my results in order you can solve your problem very fast and effectively. So I will present steps how I done this:
Open Eclipse.
Open Command Line (cmd) and go to path there your android SDK located:
cd C:\android\android-sdk-windows\tools
Now we will run Emulator with given partition size, enter following command:
C:..\tools> emulator -avd EmulatorName -partition-size 512
NOTE: EmulatorName - is the name of your emulator.
Wait until emulator starts and minimize Command Line ( don't close it ), open new Command Line (cmd) and go to path:
cd C:\android\android-sdk-windows\platform-tools
Run the command
C:..\platform-tools> adb remount
Go to Eclipse and open
Window -> Open Perspective -> Other ...
Select DDMS in the opened Dialog.
Select "File Explorer" tab.
Select directory \system\lib
Select "Push a file onto Device" and select library(s) witch you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With