The purpose of DISABLE_DEXPREOPT?

I am offen 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 scanns 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.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by javonte60
1 hour ago
Last post by schroeder.jerad
4 hours ago
Last post by alvina.pacocha
1 hour ago
Last post by ihegmann
4 hours ago
Last post by pollich.lois
4 hours ago
Last post by smith.selmer
4 hours ago
Last post by jazmyne.metz
2 hours ago
Last post by bella68
4 hours ago
Last post by chesley91
1 hour ago
Last post by giovani12
3 hours ago
Last post by jessy.treutel
4 hours ago
Last post by kaitlyn.hegmann
3 hours ago
Last post by parker53
1 hour ago
Last post by graham.hillard
52 minutes ago