Compiling Dedexed AOSP?

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

+4
source share
3 answers

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 
+10
source

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
+1
source

You must write a shell script that uses smali (or xUltimate if on Windows).

0
source

Source: https://habr.com/ru/post/1388365/


All Articles