Current location - Health Preservation Learning Network - Healthy weight loss - What is the class.dex file in the apk file of Android phone? What is it used for?
What is the class.dex file in the apk file of Android phone? What is it used for?
Simply put, it is the optimized Android version. exe。 It is included in every apk installation package. Compared with java virtual machine on PC, it can run. Class; ; Davlik virtual machine on android can run. Dex.

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.