Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling a deodexed AOSP?

I'm trying to compile a deodexed aosp for my GSM Galaxy Nexus (maguro). I searched on Google, with no result. It seems that there is no flag which allow to compile a deodexed system.

However in the makefile build/core/main.mk I found this:

   ## precise GC ##

ifneq ($(filter dalvik.gc.type-precise,$(PRODUCT_TAGS)),)
  # Enabling type-precise GC results in larger optimized DEX files.  The
  # additional storage requirements for ".odex" files can cause /system
  # to overflow on some devices, so this is configured separately for
  # each product.
  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dexopt-flags=m=y
endif

Any idea? thanks

like image 805
Gnufabio Avatar asked Dec 13 '22 06:12

Gnufabio


1 Answers

To actually get a deodexed build, I had to define those:

export DISABLE_DEXPREOPT=true
export WITH_DEXPREOPT=false

Then 'make clean'.

Alternatively I tried also this:

make DISABLE_DEXPREOPT=true WITH_DEXPREOPT=false -j8 otapackage
like image 172
3c71 Avatar answered Jan 07 '23 06:01

3c71