compile Java on native Android instead of writing in C

We are looking for a way to protect our code, and confusion is not enough. Can I compile Android Java code into a native Android library?

Another option is to write c code and connect to it via JNI. But the code that we have is quite complex and well tested, rewriting in c could start testing again.

PS: We used to work on x86 hardware and used Excelsior Jet as a security tool. Since we want to switch to more economical (cheaper) equipment for hands and Android, we are looking for a simulated solution, such as Jet, which, alas, only compiles in x86.

+6
source share
1 answer

In theory, you should be able to use LLVM. He has:

Basically, this can do what you need. However, I assume that you will need to distribute (in compiled form) many Java class libraries. All in all, it sounds very hard. And someone who really wants to read the code will not have too many problems with disassembling ARM ...

+2
source

Source: https://habr.com/ru/post/946399/


All Articles