diff --git a/core/product_config.mk b/core/product_config.mk index eba72e46f..c4361d0bb 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -265,9 +265,9 @@ ifdef PRODUCT_DEFAULT_DEV_CERTIFICATE endif $(foreach pair,$(PRODUCT_UPDATABLE_BOOT_JARS), \ - $(if $(findstring $(call word-colon,2,$(pair)),$(PRODUCT_BOOT_JARS)),, \ - $(error Every jar in PRODUCT_UPDATABLE_BOOT_JARS must also be in PRODUCT_BOOT_JARS, \ - $(call word-colon,2,$(pair)) is not) \ + $(if $(findstring $(call word-colon,2,$(pair)),$(PRODUCT_BOOT_JARS)), \ + $(error A jar in PRODUCT_UPDATABLE_BOOT_JARS must not be in PRODUCT_BOOT_JARS, \ + but $(call word-colon,2,$(pair)) is) \ ) \ ) diff --git a/core/soong_config.mk b/core/soong_config.mk index e247a913d..d6248432c 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -138,6 +138,7 @@ $(call add_json_bool, UncompressPrivAppDex, $(call invert_bool,$(fi $(call add_json_list, ModulesLoadedByPrivilegedModules, $(PRODUCT_LOADED_BY_PRIVILEGED_MODULES)) $(call add_json_list, BootJars, $(PRODUCT_BOOT_JARS)) +$(call add_json_list, UpdatableBootJars, $(PRODUCT_UPDATABLE_BOOT_JARS)) $(call add_json_bool, VndkUseCoreVariant, $(TARGET_VNDK_USE_CORE_VARIANT)) $(call add_json_bool, VndkSnapshotBuildArtifacts, $(VNDK_SNAPSHOT_BUILD_ARTIFACTS)) diff --git a/core/tasks/boot_jars_package_check.mk b/core/tasks/boot_jars_package_check.mk index ceaff54b8..05243e53b 100644 --- a/core/tasks/boot_jars_package_check.mk +++ b/core/tasks/boot_jars_package_check.mk @@ -32,11 +32,7 @@ updatable_boot_jars := $(foreach pair,$(PRODUCT_UPDATABLE_BOOT_JARS),\ #TODO(jiyong) merge art_boot_jars into updatable_boot_jars art_boot_jars := $(addsuffix .com.android.art.release,$(filter $(ART_APEX_JARS),$(PRODUCT_BOOT_JARS))) -platform_boot_jars := $(filter-out \ - $(ART_APEX_JARS)\ - $(foreach pair,$(PRODUCT_UPDATABLE_BOOT_JARS),$(call word-colon,2,$(pair))),\ - $(PRODUCT_BOOT_JARS)\ -) +platform_boot_jars := $(filter-out $(ART_APEX_JARS),$(PRODUCT_BOOT_JARS)) built_boot_jars := $(foreach j, $(updatable_boot_jars) $(art_boot_jars) $(platform_boot_jars), \ $(call intermediates-dir-for, JAVA_LIBRARIES, $(j),,COMMON)/classes.jar) diff --git a/target/product/base_system.mk b/target/product/base_system.mk index 20fd18934..2d3548bfe 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -318,16 +318,12 @@ endif # The order matters for runtime class lookup performance. PRODUCT_BOOT_JARS := \ - $(TARGET_CORE_JARS) \ + $(ART_APEX_JARS) \ framework-minus-apex \ ext \ telephony-common \ voip-common \ ims-common \ - framework-sdkextensions \ - ike \ - updatable-media \ - framework-tethering PRODUCT_UPDATABLE_BOOT_JARS := \ com.android.conscrypt:conscrypt \