Reputation: 1546
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
Upvotes: 4
Views: 3213
Reputation: 2332
You can use backsmali which can combine odex and apk files
baksmali -a [api_level] -x [odex_file] -d [framework_dir]
Or change the WITH_DEXPREOPT environment variable in
build/target/board/generic/BoardConfig.mk
Upvotes: 2
Reputation: 4511
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
Upvotes: 11
Reputation: 18243
You should write a shell script that makes use of smali (or xUltimate if on Windows).
Upvotes: 0