Define step-0 for vintf finalization
Define `vintf` state that have completed vintf finalization only.
Only if FINAL_STATE is 'unfinalized' run the vintf finalization
process to finalize vintf.
The new step-0 only runs the vintf finalization.
Ignore-AOSP-First: trunk-stable changes (b/304316873)
Bug: 318883690
Test: build-step-0.sh && build/soong/soong_ui.bash \
--make-mode TARGET_PRODUCT=cf_x86_64_phone TARGET_RELEASE=fina_0 \
TARGET_BUILD_VARIANT=userdebug droid dist
Change-Id: If3525f38204fa546744b9ccf8dc9e63711823abd
diff --git a/tools/finalization/environment.sh b/tools/finalization/environment.sh
index b2d75bb..701f797 100755
--- a/tools/finalization/environment.sh
+++ b/tools/finalization/environment.sh
@@ -19,11 +19,14 @@
# Options:
# 'unfinalized' - branch is in development state,
-# 'sdk' - SDK/API is finalized
+# 'vintf' - VINTF is finalized
+# 'sdk' - VINTF and SDK/API are finalized
# 'rel' - branch is finalized, switched to REL
export FINAL_STATE='unfinalized'
export BUILD_FROM_SOURCE_STUB=true
# FINAL versions for VINTF
-export FINAL_BOARD_API_LEVEL=$(TARGET_RELEASE=fina_1 $top/build/soong/soong_ui.bash --dumpvar-mode RELEASE_BOARD_API_LEVEL)
+# TODO(b/323985297): The version must match with that from the release configuration.
+# Instead of hardcoding the version here, read it from a release configuration.
+export FINAL_BOARD_API_LEVEL='202404'