top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Android: What is purpose of DISABLE_DEXPREOPT flag while building AOSP?

+2 votes
518 views

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.

posted Jun 23, 2014 by Mandeep Sehgal

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

I am exploring android build system and have a question.
Example application is Calculator. I see the folder in packages/app/Calculator/Android.mk file, but this "Calculator" is not captured in the core.mk @ build/target/product/Core.mk

Which .mk file contains 'Calculator'.?

+2 votes

How to use java libraries from /lib directory of my app in AOSP?

Currently I have built my app in eclipse so i had my libraries in /lib directory of my app but after including source code in AOSP, it is giving error, I think I need to add the entry of the libraries in /lib in my Android.mk file, but how?

I dont know what entry need to be made... any suggestions?

+3 votes

Does anyone know how I can enable ART in AOSP 4.4? I complete a successful build and load it onto a Nexus 4 (mako). Everything seems to work fine, however, when I go to the settings and change the default runtime to ART, it reboots and never comes back up. When looking through the logs (adb logcat), I see a bunch of segmentation faults coming from libart.so. Is ART supported in AOSP?

Please note that when I take the official image from here: https://developers.google.com/android/nexus/images I am able to enable ART so my theory is that it is not yet enabled in AOSP.

+1 vote

I am working on a android based device used for biometrics capture (iris, fingerprint, face) and some amount of local matching.

We have platform that has 2GB of memory and we want to let Android apps have large enough memory heap.

I know one can build my custom rom with build.prop with custom dalvik.vm.heapgrowthlimit, dalvik.vm.heapsize , in our experiments setting this limit to be more than 1GB causes board boot failures.

Has anybody else experimented with increasing heap size for Android application, on custom rom? I am also looking at increasing cursor window memory size as some of the biometric data is stored in sqlite
database.

Anybody else tried to wrangle Android platform to do more memory intensive applications any other places I should be looking to alter things?

...