installing share library through ADB

2,715 views
Skip to first unread message

Bala Abiraman

unread,
Jul 18, 2010, 7:43:09 AM7/18/10
to android-platform
is it possible to install the shared library to the deice through ADB
or some other interface.
so, that you dont need to compile the complete source code & link it.

any thing is available in android like that?

Anil Sasidharan

unread,
Jul 19, 2010, 1:01:13 AM7/19/10
to android-...@googlegroups.com
Hi,

      I'm not sure if you are having issues while installing shared library on the Android device. Android does support shared objects (.so libraries) and it is very much possible to push them using "adb push" command to "/system/lib" path on the device. The library can be used from next booting (if is implicitly linked) or immediately usable if is is explicitly loaded (using dlopen).

warm Regards,
Anil


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Bala Abiraman

unread,
Jul 20, 2010, 7:25:10 AM7/20/10
to android-platform
thanks for the informative reply....

after loading the .so shared library in "/system/lib" , Can I access
the methods of the shared library from the Java apk (android
application).?
any samples are available?

what the about the JNI design in this case?

best regards,

Bala Abirman

Anil Sasidharan

unread,
Jul 21, 2010, 2:11:41 AM7/21/10
to android-...@googlegroups.com
Hi Bala,

           In order to access the methods of the shared library from java code, you need to bring in JNI wrappers around the methods exposed from your shared lib.

Warm Regards,
Anil


--
Reply all
Reply to author
Forward
0 new messages