tags:

views:

30

answers:

0

Hello,

I am trying to install a new Java Security Provider for the javax.net.ssl package on Android. I know how to install a Security Provider on Linux, but am confused about where to place files on the Android system so that they will be built correctly.

My Security Provider uses JNI to interface to a C library. In Linux, the following steps are needed to install my provider:

1) My provider Java files are compiled into a JAR file (ex: mylib.jar).
2) All native code is compiled into a shared library (ex mylib.jnilib or mylib.so)
3) The JAR file is moved to /jre/lib/ext folder.
4) The shared library is moved to /usr/local/lib folder (The JAR loads the library at this path).
5) The java.security file must be edited to add the new provider. (I know how to do this on Android)

On Android, the current SSL provider's Java files are located at the following location. I don't want to replace this provider, just add my own in addition to be used as an option:

/libcore/x-net/src/main/java           [Java files]
/libcore/x-net/src/main/native        [Native files]

I'm just not sure where to place my source files (Java and Native) so that they are built and placed correctly. Any help would be very much appreciated!

Thanks,
Chris C.