I am often confused with Dex Optimization details. Here are few details I know of.
Kindly correct me if i am wrong ? While exploring the source code, i found that package manager scans all the external libraries, base frameworks, system packages, and vendor packages for dex optimization.
So, if I understand correct 'dex optimization' can be done both in compilation time and execution time.
Also, surfing in the internet, DISABLE_DEXPREOPT has an impact over this dex optimization when to be done?
Which one do I have to opt?
DISABLE_DEXPREOPT=true [OR] DISABLE_DEXOPT=false
while building with the below command
make TARGET= droid -j6
According to the source code, I understood if .odex is available as part of .jar or apk file, then it ignores dex optimization, while booting.
Kindly correct me if i am wong?. and suggest.