From: Jami Kettunen Date: Mon, 1 Apr 2024 10:48:28 +0000 (+0300) Subject: initializer: Fix Halium version VNDK detection logic for 12L+ X-Git-Tag: 1.4.3~8 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/068a143be99bf57fe649395ad9d95ef966fc49d8?ds=inline 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. --- 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)