From 5d319b96eb62fdf9d53232bae303819c3a17f619 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sat, 27 Jan 2018 13:23:31 +0100 Subject: [PATCH] Set ro.build.version.security_patch and ro.build.version.sdk in system/etc/prop.default --- base.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base.mk b/base.mk index 0d29c3c..ebe629f 100644 --- a/base.mk +++ b/base.mk @@ -14,3 +14,10 @@ DEVICE_PACKAGE_OVERLAYS += device/phh/treble/overlay $(call inherit-product, vendor/hardware_overlay/overlay.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +#Those overrides are here because Huawei's init read properties +#from /system/etc/prop.default, then /vendor/build.prop, then /system/build.prop +#So we need to set our props in prop.default +PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ + ro.build.version.security_patch=$(PLATFORM_SECURITY_PATCH) \ + ro.build.version.sdk=$(PLATFORM_SDK_VERSION)