From f2b6016e53a7b0de866ef1cbfc1d2850c703c427 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Tue, 21 Nov 2023 19:25:07 +0900 Subject: [PATCH] Define ro.llndk.api_level If RELEASE_BOARD_API_LEVEL is defined, set the API level to ro.llndk.api_level to show the maximum api level that the LLNDK in the system partition supports. Bug: 312098788 Test: getprop ro.llndk.api_level Change-Id: Ia65bf6c30ea19b229543d35df788eb202fd50dd4 --- core/main.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/main.mk b/core/main.mk index 1fccc60331..348a964e0a 100644 --- a/core/main.mk +++ b/core/main.mk @@ -182,6 +182,12 @@ ADDITIONAL_SYSTEM_PROPERTIES += ro.treble.enabled=${PRODUCT_FULL_TREBLE} $(KATI_obsolete_var PRODUCT_FULL_TREBLE,\ Code should be written to work regardless of a device being Treble) +# Set ro.llndk.api_level to show the maximum vendor API level that the LLNDK in +# the system partition supports. +ifdef RELEASE_BOARD_API_LEVEL +ADDITIONAL_SYSTEM_PROPERTIES += ro.llndk.api_level=$(RELEASE_BOARD_API_LEVEL) +endif + # Sets ro.actionable_compatible_property.enabled to know on runtime whether the # allowed list of actionable compatible properties is enabled or not. ADDITIONAL_SYSTEM_PROPERTIES += ro.actionable_compatible_property.enabled=true