Reputation: 6205
Currently I have a simple android library. I am able to perform obfuscation with DexGuard. But now I want to use DexGuard's native library encryption feature without actually having an Android application. Is it possible to do this?
Upvotes: 1
Views: 1817
Reputation: 6205
Found out the solution
-injars ./libhello-jni.zip
-injars ./myjar.jar
-encryptnativelibraries lib/**/*.so
Important points:
libhello-jni.zip
should contain a lib
folder containing the *.so
filesmyjar.jar
it should be using the class which calls the System.loadLibrary("hello-jni")
so DexGuard can successfully encrypt the *.so
filesUpvotes: 3