I am trying to compile deodexed aosp for my GSM Galaxy Nexus (maguro). I searched on Google, with no result. It seems that there are no flags that allow you to compile a dedexed system.
However, in 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 get the deoxidized build, I had to define it:
export DISABLE_DEXPREOPT=true export WITH_DEXPREOPT=false
Then "make clean".
As an alternative, I also tried this:
make DISABLE_DEXPREOPT=true WITH_DEXPREOPT=false -j8 otapackage
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 to
build / target / board / generic / BoardConfig.mk
You must write a shell script that uses smali (or xUltimate if on Windows).
Source: https://habr.com/ru/post/1388365/More articles:Android OnResume not called when using TabHost and LocalActivityManager - javaMigrating NSView - objective-ciOS: unique identification of ViewControllers from the storyboard - iosHow to use MultiSplitLayout in SwingX? - javaRequest nested objects from MongoDB - c #Does NSScreenNumber change (by chance)? - objective-cC ++ semantics for reference - c ++Center text at bottom of page - htmlHow is build-wsdl2java.xml created? - javaJQuery IsNumeric with missing condition - jqueryAll Articles