LeOS-GSI/patches/LeOS-V/leos/platform_build_make/Ungespeichertes Dokument 2

29 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-10-24 09:22:44 +02:00
From cb235e82382b312accc90a0fe821cc96c04655d7 Mon Sep 17 00:00:00 2001
From: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Thu, 18 Aug 2022 21:29:34 +0530
Subject: [PATCH 4/4] core: sysprop: Write build display id to product prop
Some vendors override build id in odm or vendor, such as oplus.
Change-Id: I1c2de43ba7c3544710897ad9127d320dd02293fe
---
core/sysprop.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/sysprop.mk b/core/sysprop.mk
index 47d8a41a38..2cb1fdd0c2 100644
--- a/core/sysprop.mk
+++ b/core/sysprop.mk
@@ -74,6 +74,9 @@ define generate-common-build-props
echo "ro.$(1).product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\
)\
)\
+ $(if $(filter product,$(1)),\
+ echo "ro.build.display.id=$(BUILD_DISPLAY_ID)" >> $(2);\
+ )\
echo "ro.$(1).build.date=`$(DATE_FROM_FILE)`" >> $(2);\
echo "ro.$(1).build.date.utc=`$(DATE_FROM_FILE) +%s`" >> $(2);\
# Allow optional assignments for ARC forward-declarations (b/249168657)
--
2.34.1