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. (WTA & WTS) root LG Optimus GT 540

Om,ane dapat tutor utk root LG Optimus GT 540 di lge-phones.*om

isinya kek gini om....

=========================================================================
My friend got his LG Optimus GT540 for sometime, he sent me an email
asking me if I know the way to root his phone. Actually I did but
after searching for this tip on internet, I got the best way. I shared
it with my friend and now I like to share it with all people who
need to know it;)

To root LG Optimus GT540, follow the steps below:

Step 1. Make your LG Optimus GT540 in standby mood.
Step 2. Click the icon to open the phone dialer on your LG Optimus
GT540.
Step 3. Input the code 845#*540#
Step 4. Select Module Test.
Step 5. Select Stability Test.
Step 6. Choose nable Root Permission
Step 7. Now you will be prompted for a password, then
input :SWIFT::GT540:
Step 8. You will see a toast message saying OK, that means your root
access is enabled.
Step 9. You can reboot your LG Optimus GT540, and when you connect via
ADB, youl see you have a root prompt (#).

One important thing you need to know is that you need to backup your
data before rooting your LG Optimus GT540 because they all will be
erased during the process!

Feel free to let us know what you need for your LG Optimus GT540, we
be happy to be helpful! Enjoy your LG Optimus GT540!
=========================================================================

tapi saya ragu om klo mau ikutin langkah diatas.krn lom ada komentar
sih.
yg jadi pertanyaan saya om..
klo saya gagal ngeroot apa yaa akibatnya? trus klo bs jadi ga ada OS
lagi, bisa ga di restore lagi ke kondisi awal?
soalnya yg saya googling lom ada tutor lain mengenai pengalaman
ngeroot di LG Optimus GT 540 ini.

plss buat om dan tante mohon petunjuknya....

thx


Ronny Tanjung

-- 
"Indonesian Android Community [id-android]" 

2. How can I delete the black shadow above framelayout in the tabwidget

Hello everyone,

I have a problem with the tab widget. There is a shadow above the
framelayout that's part of the tabwidget. How can I modify or delete
this shadow. My layout looks like that

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@color/
bright_blue">

<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:padding="5dp">

<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="invisible"  android:clickable="false" />

<TextView android:id="@+id/template_description"
android:layout_marginBottom="10dp" android:textColor="@color/
dark_grey"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>

<FrameLayout android:id="@android:id/tabcontent"
android:padding="0dp"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@color/bright_blue"
android:tabStripEnabled="false" />

</LinearLayout>
</TabHost>

I tried a couple of thinks like deleting the padding, changing the
background, the parameter  android:tabStripEnabled="false"  and
setting up the tabhost
tabHost.getTabWidget().getChildAt(0).getLayoutParams().height = 0;
tabHost.getTabWidget().getChildAt(0).getLayoutParams().width = 0;
tabHost.getTabWidget().getChildAt(0).setVisibility(TabHost.INVISIBLE);
tabHost.getTabWidget().getChildAt(0).setHorizontalFadingEdgeEnabled(false);
tabHost.getTabWidget().getChildAt(0).setPadding(0, 0, 0, 0);
tabHost.getTabWidget().getChildAt(0).setBackgroundColor(R.color.bright_blue);

but nothing worked at all. Can someone help me out. Thats would be
great. I invest two days in this stuff.
Thanks a lot
Phil

-- 

3. Exchange 2010

4. How to send email with pictures attachment

5. XML schema for http://schemas.android.com/apk/res/android namespace

6. How to Accept and Cancel incoming call on Version 1.6,2.2

7. eclipse - importing image into res folder