diff --git a/config/common.mk b/config/common.mk index 7f6f64b4..91dcd7d6 100644 --- a/config/common.mk +++ b/config/common.mk @@ -295,6 +295,26 @@ PRODUCT_PROPERTY_OVERRIDES += \ -include vendor/cm-priv/keys/keys.mk +CM_DISPLAY_VERSION := $(CM_VERSION) + +ifneq ($(DEFAULT_SYSTEM_DEV_CERTIFICATE),build/target/product/security/testkey) + ifneq ($(CM_BUILDTYPE), UNOFFICIAL) + ifndef TARGET_VENDOR_RELEASE_BUILD_ID + ifneq ($(CM_EXTRAVERSION),) + TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION) + else + TARGET_VENDOR_RELEASE_BUILD_ID := -$(shell date -u +%Y%m%d) + endif + else + TARGET_VENDOR_RELEASE_BUILD_ID := -$(TARGET_VENDOR_RELEASE_BUILD_ID) + endif + CM_DISPLAY_VERSION=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)$(TARGET_VENDOR_RELEASE_BUILD_ID) + endif +endif + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.cm.display.version=$(CM_DISPLAY_VERSION) + -include $(WORKSPACE)/hudson/image-auto-bits.mk -include vendor/cyngn/product.mk