]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
initializer: Fix Halium version VNDK detection logic for 12L+
authorJami Kettunen <jami.kettunen@protonmail.com>
Mon, 1 Apr 2024 10:48:28 +0000 (13:48 +0300)
committerAlessandro Astone <ales.astone@gmail.com>
Sat, 20 Apr 2024 08:55:59 +0000 (10:55 +0200)
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

index 41a0be38320bb2d01ad52b83f906b0a6fb805ade..fee12801c9901066dba98289a2c327d40e720966 100644 (file)
@@ -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)