[strongSwan-dev] query in android apk source code System.loadLibary("Charon")
Tobias Brunner
tobias at strongswan.org
Mon Jan 5 14:23:36 CET 2015
Hi Ravikanth,
> 2) Strongswan android apk source code, has the source code for these
> libraries.. While making the apk, these librarires are compiled first
> and then while CharonVpnService.java is compiled, these librarires are
> loaded using System.load libarary ?
Yes, these are compiled via Android.mk files in our source code and
included in the APK. Then when the Java part of the app is initialized
these libraries are loaded (from the location where the system unpacked
them from the APK) with the System.loadLibrary call.
> 4) What is the need for 'System.loadLibrary 'ipsec'' when android APK
> uses libipsec for ESP encryption and decryption.
This loads libipsec (our own userland IPsec implementation). The lib
prefix is omitted when using that method.
Regards,
Tobias
More information about the Dev
mailing list