summaryrefslogtreecommitdiff
path: root/scripts/gen_build_prop.py
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-12-06 20:37:05 +0000
committer Spandan Das <spandandas@google.com> 2024-12-06 20:58:38 +0000
commit876c1c946646632f6c05b85fcf2cf95a2d03fa2a (patch)
tree59e0487607aa7374d3881b95a7391b11e6dc8a18 /scripts/gen_build_prop.py
parentd2505873e521984f6d4732d4acd9f87fe338d159 (diff)
Use unmodified TARGET_USES_VULKAN in ro.hwui.use_vulkan
This will create an empty ro.hwui.use_vulkan if TARGET_USES_VULKAN is empty. This matches the make behavior, and helps with validating the contents of soong vendor filesystem. Bug: 382295862 Test: lunch aosp_cf_x86_64_phone-trunk_staging-userdebug Test: m out/soong/.intermediates/build/soong/fsgen/aosp_cf_x86_64_phone_generated_vendor_image/android_common/aosp_cf_x86_64_phone_generated_vendor_image.img Test: Verified that ro.hwui.use_vulkan is same between make and soong (empty string) Change-Id: I9f80e613f7539dd2e895cfa96bd2ba481ddd6974
Diffstat (limited to 'scripts/gen_build_prop.py')
-rw-r--r--scripts/gen_build_prop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_build_prop.py b/scripts/gen_build_prop.py
index 5f52d6f9e..47bbf590a 100644
--- a/scripts/gen_build_prop.py
+++ b/scripts/gen_build_prop.py
@@ -450,7 +450,7 @@ def append_additional_vendor_props(args):
props.append(f"ro.vendor.build.security_patch={config['VendorSecurityPatch']}")
props.append(f"ro.product.board={config['BootloaderBoardName']}")
props.append(f"ro.board.platform={config['BoardPlatform']}")
- props.append(f"ro.hwui.use_vulkan={'true' if config['UsesVulkan'] else 'false'}")
+ props.append(f"ro.hwui.use_vulkan={config['UsesVulkan']}")
if config["ScreenDensity"]:
props.append(f"ro.sf.lcd_density={config['ScreenDensity']}")