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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With