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:
- Window / Open Perspective / Other… / DDMS
- Enter File Explorer tab.
- Find lib folder and open it.
- Press Push a file onto device and select library which I want to push to device, but then process starts and after some seconds it’s terminated and error appears:
[2011-05-19 12:26:34] Failed to push selection: Read-only file system
Added. Dear Eric:
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
Added.
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
Added
I have made the following steps:
- Launch Eclipse
- Go To: Window -> Open Perspective -> Other …
- Select DDMS from the opened dialog
- Select “File explorer” tab.
- Press “Push a file onto the device” and select library which I wish to push.
Failed to push selection: Read-only file system
- Minimize all opened windows and open Command Line
- Write: cd C:\android\android-sdk-windows\platform-tools enter
-
Write: abd remount enter
You will see remount successful
-
Maximize Eclipse and try step 5.
Failed to push selection: Out of memory
Error appears.
How can I add library to Android-Emulator’s lib folder
Operation System: Windows 7, Eclipse
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:
Now we will run Emulator with given partition size, enter following command:
Wait until emulator starts and minimize Command Line ( don’t close it ), open new Command Line (cmd) and go to path:
Run the command
Go to Eclipse and open
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.
All Done !
Useful links: