diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk index 08e2da3655..e7086b7e4e 100644 --- a/core/dex_preopt_odex_install.mk +++ b/core/dex_preopt_odex_install.mk @@ -504,8 +504,8 @@ ifdef LOCAL_DEX_PREOPT _system_other := $(strip $(if $(strip $(BOARD_USES_SYSTEM_OTHER_ODEX)), \ $(if $(strip $(SANITIZE_LITE)),, \ $(if $(filter $(_dexname),$(PRODUCT_DEXPREOPT_SPEED_APPS))$(filter $(_dexname),$(PRODUCT_SYSTEM_SERVER_APPS)),, \ - $(if $(strip $(foreach myfilter,$(SYSTEM_OTHER_ODEX_FILTER),$(filter system/$(myfilter),$(_dexlocation)))), \ - system_other/))))) + $(if $(strip $(foreach myfilter,$(SYSTEM_OTHER_ODEX_FILTER),$(filter system/$(myfilter),$(_dexlocation))$(filter $(myfilter),$(_dexlocation)))), \ + system_other/))))) # _dexdir has a trailing / _dexdir := $(_system_other)$(dir $(_dexlocation)) my_dexpreopt_zip_contents := $(sort \