aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontends/android/jni
Commit message (Collapse)AuthorAgeFilesLines
...
* Helper function added to handle Java exceptions in native codeTobias Brunner2012-08-131-0/+18
|
* Don't attach to actual Java threads (or already attached ones)Tobias Brunner2012-08-131-3/+12
| | | | | | We check this by trying to retrieve a JNIEnv object from the JVM, if one is returned the current thread is not native (created from Java) or the thread is already attached.
* Moved CharonVpnService to logic sub-packageTobias Brunner2012-08-081-2/+2
|
* Global charonservice_t object added to libandroidbridgeTobias Brunner2012-08-083-2/+95
| | | | This is later used to call Java methods on CharonVpnService via JNI.
* Added functions to attach/detach native threads to the JVMTobias Brunner2012-08-082-0/+64
| | | | | | Even though native threads are automatically detached from the JVM with help of a thread-local destructor it is recommended to detach as soon as possible as local JNI references are not freed until a thread detaches.
* Moved JNI helper macros to a separate fileTobias Brunner2012-08-084-13/+102
| | | | | Also initialize a reference to the CharonVpnService class during JNI_OnLoad, which allows us later to call methods from C to Java.
* Allocate UDP ports randomly in Android NDK build.Tobias Brunner2012-08-081-1/+2
|
* Load libipsec in Android app.Tobias Brunner2012-08-083-1/+14
|
* Added android.net.VpnService wrapper around charon (loaded via JNI).Tobias Brunner2012-08-083-0/+147
|
* Android.mk for NDK build added.Tobias Brunner2012-08-083-0/+77