hyperboria / android

Android app for mesh networking with cjdns
GNU General Public License v3.0
159 stars 40 forks source link

Use JNI #42

Closed sssemil closed 8 years ago

sssemil commented 9 years ago

What about using JNI instead of binary executable?

benhylau commented 8 years ago

APIs to start and kill cjdroute, and get peerStats type of info?

sssemil commented 8 years ago

It can be used to run all C code. But we can used binary executables anyway.

benhylau commented 8 years ago

I thought about going through JNI too, but I don't know enough about that vs. binary executables to say what we'd gain from it. I guess a cleaner API with proper typing? I am definitely open to it. Let's keep this ticket here.

ghost commented 8 years ago

Better to stick with the binary executable -- using JNI means running cjdroute within the Java process, so we'd lose many security features (SSP, Seccomp, chroot, dropping privilieges)