java - Obscuring JNI Code From End Users in Android -


i've written bunch of android jni code want make library customer. obviously, don't want customer able see jni code. there way can include file in library project them?

i've tried using system.loadlibrary(<library>); unsatisfied link error every time.

one thing that's worked, i've compiled project , deleted c files. i'm still able use .so file, if make clean, deletes file , there's no way recover without source.

in short, want able compile file on own, , give customer java code interfaces it. don't care if see java 'wrapper' source don't want them able see jni code. want them able treat library other (ie make cleans don't wreck it).

thanks!

is there way can include file in library project them?

package aar containing libraries, , host aar artifact customers. see cwac-anddown library example. aar contain .so files whatever architectures supporting, plus jar of compiled java code provides java api native code.

i want them able treat library other (ie make cleans don't wreck it).

well, definition, make clean requires source. requires makefile, presumably not distributing, since that's useless without source.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -