Elvis Dowson
Elvis
Hi,This installs the native shared library libhello-jni.so along with the hello-jni android app. How can we install only the lib libhello-jni.so so that any android app can invoke it?
It's probably for security reasons, and to avoid dependency issues. I
don't imagine Google wants users to end up with messages like "The
application depends on libsdjhfwoe.so. Please install it."
That's pretty wasteful. So on a space constrained device, we have the situation that every package has its own copy of every library it wants to use?
How hard would it be to just make use of that linux core, and stick these libraries in /usr/local/lib/?
Or is this just another one of those "linker bugs"?
It's just not worth it. You save a small bit of memory and disk space
in a *very small* number of cases. In return you have to:
a) Maintain some kind of Debian-like library repository.
b) Handle versioning - you're probably going to end up with multiple
versions of the libraries installed anyway.
c) Create a security infrastructure for allowing the installation of
shared libraries.
I'm sure there are other disadvantages. There are much more pressing
issues in Android anyway. :-)