aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontends/android/jni/libandroidbridge/android_jni.h
Commit message (Collapse)AuthorAgeFilesLines
* android: Migrate to the Gradle build systemTobias Brunner2015-11-121-159/+0
| | | | | This uses a manual way to trigger the NDK build (the default with on-the-fly Android.mk files does not work for us).
* android: Fix kernel-net implementation on Android 4.3 and earlierTobias Brunner2015-07-281-0/+2
| | | | | | | | | | Before fwmarks were used protected sockets were bound to the outbound interface via SO_BINDTODEVICE. This does not always seem to work well together with our connect()/getsockname() trick if the server is covered by the traffic selectors. Calling protect() again after disconnecting the socket seems to help, but if there is no connectivity at all we still get the virtual IP back (maybe protect() does not bind the socket to any interface then).
* android: Moved chunk_from_byte_array and byte_array_from_chunk helper functionsTobias Brunner2013-01-141-0/+32
|
* android: Added a global variable to check the current SDK versionTobias Brunner2012-09-241-0/+18
|
* android: Fix conversion of actual Unicode strings (i.e. bytes!=chars)Tobias Brunner2012-09-171-5/+6
|
* android: Make sure NULL jstrings are converted properlyTobias Brunner2012-08-311-5/+8
|
* Moved Java to C string conversion function to android_jni header fileTobias Brunner2012-08-131-0/+19
|
* Native counterpart of VpnService.Builder added, exposed by charonserviceTobias Brunner2012-08-131-0/+1
|
* Helper function added to handle Java exceptions in native codeTobias Brunner2012-08-131-0/+18
|
* Moved CharonVpnService to logic sub-packageTobias Brunner2012-08-081-2/+2
|
* Added functions to attach/detach native threads to the JVMTobias Brunner2012-08-081-0/+19
| | | | | | 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-081-0/+46
Also initialize a reference to the CharonVpnService class during JNI_OnLoad, which allows us later to call methods from C to Java.