diff --git a/core/Makefile b/core/Makefile index 148ab3eaf9..236d115ff6 100644 --- a/core/Makefile +++ b/core/Makefile @@ -434,6 +434,7 @@ endif AB_OTA_UPDATER="$(AB_OTA_UPDATER)" \ PLATFORM_VERSION="$(PLATFORM_VERSION)" \ PLATFORM_SECURITY_PATCH="$(PLATFORM_SECURITY_PATCH)" \ + PLATFORM_SECURITY_PATCH_LINEAGE="$(PLATFORM_SECURITY_PATCH_LINEAGE)" \ PLATFORM_BASE_OS="$(PLATFORM_BASE_OS)" \ PLATFORM_SDK_VERSION="$(PLATFORM_SDK_VERSION)" \ PLATFORM_PREVIEW_SDK_VERSION="$(PLATFORM_PREVIEW_SDK_VERSION)" \ @@ -979,6 +980,11 @@ ifdef INTERNAL_KERNEL_CMDLINE INTERNAL_BOOTIMAGE_ARGS += --cmdline "$(INTERNAL_KERNEL_CMDLINE)" endif +ifneq (,$(PLATFORM_SECURITY_PATCH_OVERRIDE)) + PLATFORM_SECURITY_PATCH_LINEAGE := $(PLATFORM_SECURITY_PATCH) + PLATFORM_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH_OVERRIDE) +endif + INTERNAL_MKBOOTIMG_VERSION_ARGS := \ --os_version $(PLATFORM_VERSION) \ --os_patch_level $(PLATFORM_SECURITY_PATCH) diff --git a/core/soong_config.mk b/core/soong_config.mk index 9dc39e3d34..8bff4cfd1a 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -34,6 +34,7 @@ $(call add_json_bool, Platform_sdk_final, $(filter REL,$(PLATFORM $(call add_json_csv, Platform_version_active_codenames, $(PLATFORM_VERSION_ALL_CODENAMES)) $(call add_json_csv, Platform_version_future_codenames, $(PLATFORM_VERSION_FUTURE_CODENAMES)) $(call add_json_str, Platform_security_patch, $(PLATFORM_SECURITY_PATCH)) +$(call add_json_str, Platform_security_patch_lineage, $(PLATFORM_SECURITY_PATCH_LINEAGE)) $(call add_json_str, Platform_preview_sdk_version, $(PLATFORM_PREVIEW_SDK_VERSION)) $(call add_json_str, Platform_base_os, $(PLATFORM_BASE_OS)) diff --git a/core/version_defaults.mk b/core/version_defaults.mk index 5d0a2af72d..5a0c32cbfc 100644 --- a/core/version_defaults.mk +++ b/core/version_defaults.mk @@ -252,7 +252,7 @@ ifndef PLATFORM_SECURITY_PATCH # If there is no $PLATFORM_SECURITY_PATCH set, keep it empty. PLATFORM_SECURITY_PATCH := 2020-09-05 endif -.KATI_READONLY := PLATFORM_SECURITY_PATCH +#.KATI_READONLY := PLATFORM_SECURITY_PATCH ifndef PLATFORM_SECURITY_PATCH_TIMESTAMP # Used to indicate the matching timestamp for the security patch string in PLATFORM_SECURITY_PATCH. diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh index abae7f3eb3..a82d296374 100755 --- a/tools/buildinfo.sh +++ b/tools/buildinfo.sh @@ -13,6 +13,7 @@ echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME" echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES" echo "ro.build.version.release=$PLATFORM_VERSION" echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" +echo "ro.lineage.version.security_patch=$PLATFORM_SECURITY_PATCH_LINEAGE" echo "ro.build.version.base_os=$PLATFORM_BASE_OS" echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION" echo "ro.build.date=`$DATE`"