Skip to content

Commit

Permalink
initializer: Fix Halium version VNDK detection logic for 12L+
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JamiKettunen authored and aleasto committed Apr 20, 2024
1 parent 2be58d1 commit 068a143
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/actions/initializer.py
Expand Up @@ -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)

Expand Down

0 comments on commit 068a143

Please sign in to comment.