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. Dont start an avd name associated with sdk 2.0

I would start by making sure they are all in the same place.

Do the same for an AVD that's broken and compare the path. It should
be the same, up to the final folder name.

Xav



>

2. Creating a local repository.xml

Hi everyone,

I would like to know how could I create a repository.xml to be read by
the AVD Manager with only the 1.5 version?
What is the repository.xml format?

The reason of doing this it's because I will be teaching some classes
about Android in a Post Graduation,
but the internet link is too slow. So I am trying to set a local
repository to help me with time.

thanks for any help.

-- 

3. How to change status bar position in android

4. Dont start an avd name associated with sdk 2.0

5. launching a daemon in init

6. Is it possible to convert my T-mobile G1 into dev phone?

7. integrating gmail in android app