How to add library to android lib emulator folder

I have a libTestLibrary.so library and I want to add it to the android lib emulator folder. How can i do this?

I am doing the following steps:

  • Window / Open Perspective / Other ... / DDMS
  • Enter the Explorer tab.
  • Locate the lib folder and open it.
  • Click Click file on device and select the library that I want to click on the device, but then start the process a few seconds after its completion and an error message appears:
[2011-05-19 12:26:34] Failed to push selection: Read-only file system 

Added. Dear Eric:

I see a message that you linked, but I can’t understand it, can you give an example of the 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 write on the 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 an error appears:

could not copy 'libDsmShared.so' to '/system/lib/libDsmShared.so': from memory

Added

I took the following steps:

  • Launch Eclipse
  • Go to: Window β†’ Open Perspective β†’ Other ...
  • Select DDMS from an open dialog
  • Select the File Explorer tab.
  • Click " Click file on device " and select the library that I want to click.

    Failed to press selection: read-only file system

  • Minimize all open windows and open Command Prompt
  • Write: cd C: \ android \ android-sdk-windows \ platform-tools enter
  • Enter abd remount enter

    You will see a successful reboot

  • Expand Eclipse and try step 5.

    Failed to press selection: Out of memory

An error message will appear! What to do to solve this problem ... Please help.

+7
source share
3 answers

How to add library to android lib emulator folder

Operating System: Windows 7, Eclipse

Here I present the steps by which I add libraries to the folder of the Android lib emulator, I need a week, but I have done everything and want to share my results so that you can quickly and efficiently solve your problem. Therefore, I will talk about how I did it:

  • Open Eclipse.
  • Open a command prompt (cmd) and navigate to where your Android SDK is.

    cd C: \ android \ android-sdk-windows \ tools

  • Now we will run the emulator with the given partition size, enter the following command:

    C: .. \ tools> emulator -avd EmulatorName -partition-size 512

    NOTE. EmulatorName is the name of your emulator.

  • Wait for the emulator to start and minimize the command line (do not close it), open a new command line (cmd) and go to the 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 dialog that opens.

  • Select the Explorer tab.

  • Select the \ system \ lib directory

  • Select "Click file on device" and select the desired library.

All is ready!

Useful links:

+8
source

The solution was found here by the user: abd : Install the link.

+2
source

In the case of linux, I went through the following steps and worked:

i) Use the command 'adb shell'

ii) go to '/ system / xbin'

iii) use the "ls" command to find "su"

iV) use the 'su' command

V) Changing permissions with 'chmod 777 / system / lib'

0
source

All Articles