Deployment of native C library

by adlaiti » Mon, 17 Nov 2008 13:57:47 GMT


Sponsored Links
 I have a Java application that uses JNI to call a native C library
(.so).
This application works fine with an older version of the SDK and
emulator.
The library was copied to folder /system/lib on the emulator.

With the current version of the emulator, that comes with Android 1.0
SDK,
the folder /system/lib appears to be read-only.  The message "Read-
only file system"
appears when attempting to copy the library to /system/lib.

Placing a folder location in System.loadLibrary does not work; for
example,
System.loadLibrary("/data/misc/myCLib").

Here are my questions:
Is there a way to deploy my native C library to /system/lib?
If not, is there some other folder that I can deploy to where
loadLibrary will see it?

I am using Eclipse and Ubuntu.
-Aaron

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



Deployment of native C library

by hackbod » Mon, 17 Nov 2008 17:08:39 GMT


 Sorry, currently native code is not supported in the SDK.



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


Sponsored Links


Deployment of native C library

by Anonymous Anonymous » Mon, 17 Nov 2008 18:16:37 GMT


 tried adb remount ?

This also will not work? oops that will be sad :(,coz i also have one to go
not yet ready :D






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



Deployment of native C library

by Volker Gropp » Mon, 17 Nov 2008 20:28:13 GMT


 Hi,

your dont need your library in /system/lib, use System.load() as i
already described in 



Deployment of native C library

by li chen » Tue, 18 Nov 2008 00:22:15 GMT


 You can use adb shell to remount /system and try again:
mount -o remount rw /system

-freepine






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



Deployment of native C library

by shimo...@gmail.com » Fri, 02 Jan 2009 08:11:28 GMT


 Hi,

Tried that on my Dev Phone, and got "mount: operation not permitted"

Can you tell me why ?

TIA




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



Deployment of native C library

by Joel » Fri, 02 Jan 2009 09:39:22 GMT


 Sounds as if you don't have root.  Did you issue a su command first?




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



Deployment of native C library

by shimo...@gmail.com » Fri, 02 Jan 2009 14:25:44 GMT


 Hi,

Thanks !

Where do I issue this command from ?

When I do this from PTerminal on my Android device it hangs, then
issues
a warning box saying:

"Activity pTerminal (in application pTerminal) is not responding""

Do you have a Dev Phone ?

Thanks.






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



Deployment of native C library

by Margaret » Fri, 02 Jan 2009 14:31:47 GMT


 add sudo where you do mount .


mawei...@gmail.com
13585201588



2009/1/2 shimo...@gmail.com <shimo...@gmail.com>:




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



Deployment of native C library

by Joel Knighton » Fri, 02 Jan 2009 23:27:10 GMT


 Issue the commands in this order (from a terminal on the device, otherwise
change to use adb shell).

$su
#mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

Add/change anything you need, then revert to read only.

$su
#mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system









-- 
Joel Knighton

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



Deployment of native C library

by shimo...@gmail.com » Sun, 04 Jan 2009 15:15:52 GMT


 Hi,

Did as you suggested from my Windows PC (using adb shell).
The 'mount' command did not yield any error.
But - saw no change in the \system attributes (using ls -l).
And - when I try to do "adb push MySans.ttf \system\fonts\MySans.ttf"
I get an error message:
"failed to copy ...: read-only file system"

Any ideas ?

Thanks !








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



Deployment of native C library

by Anonymous Anonymous » Mon, 05 Jan 2009 17:53:33 GMT


 adb remount

then try again










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



Deployment of native C library

by shimo...@gmail.com » Tue, 06 Jan 2009 13:20:30 GMT


 Hi,

Do you have an ADP1 device (developer phone) ?

I read somewhere something like this"

"su is there on the device, but ro.secure is set to 1, so you can not
do "adb remount""

Thanks.

On Jan 5, 11:53am, "Anonymous Anonymous"








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



Other Threads

1. How to run emulator?

Hi,
I'm absolute begginer. I put "..../tools" in Enviroment variables and
the emulator doesnt work.....
When I said "emulator" in cmd it gives me an error that I must provide
an Android Virtual Device with "emulator -avd <name>". Is that mean
that I mast built the application first and then run with
emulator......I try with emulator android 1.1 and it is work.
Please help.

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

2. Eclipse - error parsing the sdk

I receive the error message "error parsing the sdk" when I am
attempting to do the Hello World tutorial
I am using WindowsVistaHome, Eclipse Ganymeade version 3.4.2 Build Id:
M20090211-1700, Android 1.1,
and I did download and install the ADT plugin for Eclipse.
I have extensively read postings even remotely similar to this
problem, and have tried several things, including setting the path to
the Android tools using Environmental Variables.
I get the error message after succesfully completing step 1 of the
tutorial under the heading "Create the Project"
The problem occurs in the screen for step 2. I get a different screen
view than the one in the tutorial.
The one I see has a section called "Build Target" with no target
filled in. When I fill in the information called for in the tutorial,
I get the above error message.
Thanks in advance for any help on this

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

3. MediaController tutorial

4. Please Help! I Can't get the ADT Plugin to Install

5. Debug logging and tracing tips for JNI library

6. Anyway to bypass permission checking

7. Android 1.5 to hit US T-Mobile G1s next week