From 068a143be99bf57fe649395ad9d95ef966fc49d8 Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Mon, 1 Apr 2024 13:48:28 +0300 Subject: [PATCH] initializer: Fix Halium version VNDK detection logic for 12L+ API 32 (12L) was getting detected as HALIUM_13 which wouldn't work on devices when official images ship with support for these newer versions. --- tools/actions/initializer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/actions/initializer.py b/tools/actions/initializer.py index 41a0be3..fee1280 100644 --- a/tools/actions/initializer.py +++ b/tools/actions/initializer.py @@ -23,6 +23,8 @@ def get_vendor_type(args): ret = "MAINLINE" if vndk_str != "": vndk = int(vndk_str) + if vndk > 31: + vndk -= 1 # 12L -> Halium 12 if vndk > 19: ret = "HALIUM_" + str(vndk - 19) -- 2.47.3