Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Helper function added to handle Java exceptions in native code | Tobias Brunner | 2012-08-13 | 1 | -0/+18 | |
| | ||||||
* | Don't attach to actual Java threads (or already attached ones) | Tobias Brunner | 2012-08-13 | 1 | -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-package | Tobias Brunner | 2012-08-08 | 1 | -2/+2 | |
| | ||||||
* | Global charonservice_t object added to libandroidbridge | Tobias Brunner | 2012-08-08 | 3 | -2/+95 | |
| | | | | This is later used to call Java methods on CharonVpnService via JNI. | |||||
* | Added functions to attach/detach native threads to the JVM | Tobias Brunner | 2012-08-08 | 2 | -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 file | Tobias Brunner | 2012-08-08 | 4 | -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 Brunner | 2012-08-08 | 1 | -1/+2 | |
| | ||||||
* | Load libipsec in Android app. | Tobias Brunner | 2012-08-08 | 3 | -1/+14 | |
| | ||||||
* | Added android.net.VpnService wrapper around charon (loaded via JNI). | Tobias Brunner | 2012-08-08 | 3 | -0/+147 | |
| | ||||||
* | Android.mk for NDK build added. | Tobias Brunner | 2012-08-08 | 3 | -0/+77 | |