platform_build/tools/finalization
Devin Moore a1339afbb3 Add new function to create a new compat matrix for finalization
Creates the next version of the file based on the previous.
Replaces the "level" value with the new one in the file.
Adds a new Android.bp module that inherits from the previous.
Adds the current matrix file unconditional to all builds.
Adds the new matrix file contintionally based on release config.
This is used in finalize-vintf-resources.sh.

Ignore-AOSP-First: b/304316873#comment10

Test: ./finalize-vintf-resources.sh
Bug: 279809333
Change-Id: Ic14b3b82a33af3cce7a738dce5ad48112b8fb33d
2024-01-13 00:21:44 +00:00
..
build-step-1-and-2.sh Split finalization scripts between vFRC and sFRC. 2023-12-27 00:24:00 +00:00
build-step-1-and-m.sh Refresh the latest script versions + preparation for local mode. 2023-02-21 04:56:37 +00:00
build-step-1.sh Split finalization scripts between vFRC and sFRC. 2023-12-27 00:24:00 +00:00
build_soong_java_droidstubs.go.apply_hack.diff Refresh the latest script versions + preparation for local mode. 2023-02-21 04:56:37 +00:00
build_soong_java_droidstubs.go.revert_hack.diff Refresh the latest script versions + preparation for local mode. 2023-02-21 04:56:37 +00:00
cleanup.sh Refactor finalization scripts. 2023-02-10 02:32:42 +00:00
environment.sh Set BUILD_FROM_SOURCE_STUB=true for finalization 2023-11-15 00:38:41 +00:00
finalize-sdk-rel.sh Finalization for Trunk Stable, REL. 2023-11-09 05:02:11 +00:00
finalize-sdk-resources.sh Split finalization scripts between vFRC and sFRC. 2023-12-27 00:24:00 +00:00
finalize-vintf-resources.sh Add new function to create a new compat matrix for finalization 2024-01-13 00:21:44 +00:00
frameworks_base.apply_hack.diff Refresh the latest script versions + preparation for local mode. 2023-02-21 04:56:37 +00:00
frameworks_base.apply_resource_sdk_int.diff Finalization script fixes. 2023-04-16 21:15:18 -07:00
frameworks_base.revert_hack.diff Refresh the latest script versions + preparation for local mode. 2023-02-21 04:56:37 +00:00
frameworks_base.revert_resource_sdk_int.diff Finalization script fixes. 2023-04-16 21:15:18 -07:00
localonly-steps.sh Finalization for Trunk Stable, REL. 2023-11-09 05:02:11 +00:00
OWNERS Refactor finalization scripts. 2023-02-10 02:32:42 +00:00
README.md Split finalization scripts between vFRC and sFRC. 2023-12-27 00:24:00 +00:00
step-1.sh Split finalization scripts between vFRC and sFRC. 2023-12-27 00:24:00 +00:00
step-2.sh Refresh the latest script versions + preparation for local mode. 2023-02-21 04:56:37 +00:00

Finalization tools

This folder contains automation and CI scripts for finalizing Android before release.

Automation:

  1. Environment setup. Set values for varios finalization constants.
  2. Finalize VINTF. Prepare the branch for VINTF release.
  3. Finalize SDK. Prepare the branch for SDK release. SDK contains Android Java APIs and other stable APIs. Commonly referred as a 1st step.
  4. Finalize Android. Mark branch as "REL", i.e. prepares for Android release. Any signed build containing these changes will be considered an official Android Release. Referred as a 2nd finalization step.
  5. Finalize SDK and submit. Do Finalize VINTF and Finalize SDK step, create CLs, organize them into topic and send to Gerrit.
  6. Finalize Android and submit. Do Finalize Android step, create CLs, organize them into topic and send to Gerrit.

CI:

Performed in build targets in Finalization branches.

  1. Finalization Step 1, git_main-fina-1-release. Test Finalize VINTF, Finalize SDK.
  2. Finalization Step 2, git_main-fina-2-release. Test Finalize VINTF, Finalize SDK, and 2nd step/Finalize Android. Use local finalization to build and copy presubmits.
  3. Local finalization steps are done only during local testing or in the CI lab. Normally these steps use artifacts from other builds.

Utility:

Full cleanup. Remove all local changes and switch each project into head-less state. This is the best state to sync/rebase/finalize the branch.