function
Jandard Vic, run.
Dex advantage
You can use the DexClassLoader class to load directly and dynamically. So as long as you add a shell to dex and remove it when the program is running, you can avoid the risk of static decompilation.
Extended data
Reasons for using dex files
In the Android system, all the code of an App is in a Dex file. Dex is a Jar-like package, which stores many archive files of bytecode compiled by Java.
Because the Android system uses Dalvik virtual machine, it is necessary to convert the class files compiled by Java compiler into class files that Dalvik can execute.