Name Date Size #Lines LOC

..--

OWNERSH A D25-Apr-2025148 87

README.mdH A D25-Apr-20252.5 KiB2622

build-step-0-and-m.shH A D25-Apr-2025653 2116

build-step-0.shH A D25-Apr-20251.3 KiB3321

build-step-1-and-2.shH A D25-Apr-2025887 3016

build-step-1-and-m.shH A D25-Apr-2025439 198

build-step-1.shH A D25-Apr-2025555 2212

build_soong_java_droidstubs.go.apply_hack.diffH A D25-Apr-20251 KiB3126

build_soong_java_droidstubs.go.revert_hack.diffH A D25-Apr-2025932 2722

cleanup.shH A D25-Apr-2025632 2211

command-line-options.shH A D25-Apr-2025235 98

dryrun-cleanup.shH A D25-Apr-2025871 2614

dryrun-step-1-and-2.shH A D25-Apr-20251.4 KiB4025

dryrun-step-1.shH A D25-Apr-20251.3 KiB3623

environment.shH A D25-Apr-20251.4 KiB3816

finalize-sdk-rel.shH A D25-Apr-20251.9 KiB4327

finalize-sdk-resources.shH A D25-Apr-20257.9 KiB174108

finalize-vintf-resources.shH A D25-Apr-20253.1 KiB7037

frameworks_base.apply_hack.diffH A D25-Apr-20256.1 KiB130120

frameworks_base.revert_hack.diffH A D25-Apr-20256 KiB126115

localonly-steps.shH A D25-Apr-20251.3 KiB2810

step-0.shH A D25-Apr-20251.3 KiB4025

step-1.shH A D25-Apr-20251.5 KiB4027

step-2.shH A D25-Apr-20251.4 KiB3925

README.md

1# Finalization tools
2This folder contains automation and CI scripts for [finalizing](https://go/android-finalization) Android before release.
3
4## Automation:
51. [Environment setup](./environment.sh). Set values for varios finalization constants.
61. [Finalize VINTF](./finalize-vintf-resources.sh). Prepare the branch for VINTF release.
71. [Finalize SDK](./finalize-sdk-resources.sh). Prepare the branch for SDK release. SDK contains Android Java APIs and other stable APIs. Commonly referred as a 1st step.
81. [Finalize Android](./finalize-sdk-rel.sh). 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.
91. [Finalize VINTF and submit](./step-0.sh). Do Finalize VINTF step, create CLs, organize them into topic and send to Gerrit.
101. [Finalize SDK and submit](./step-1.sh). Do Finalize SDK step, create CLs, organize them into topic and send to Gerrit.
111. [Finalize Android and submit](./step-2.sh). Do [Finalize Android](./finalize-sdk-rel.sh) step, create  CLs, organize them into topic and send to Gerrit.
12
13## CI:
14Performed in build targets in Finalization branches.
151. [Finalization Step 0, git_main-fina-0-release](https://android-build.corp.google.com/build_explorer/branch/git_main-fina-0-release). Test Finalize VINTF.
161. [Finalization Step 1, git_main-fina-1-release](https://android-build.corp.google.com/build_explorer/branch/git_main-fina-1-release). Test Finalize VINTF, Finalize SDK.
171. [Finalization Step 2, git_main-fina-2-release](https://android-build.corp.google.com/build_explorer/branch/git_main-fina-2-release). Test Finalize VINTF, Finalize SDK, and [2nd step/Finalize Android](./finalize-sdk-rel.sh). Use [local finalization](./localonly-steps.sh) to build and copy presubmits.
181. [Local finalization steps](./localonly-steps.sh) are done only during local testing or in the CI lab. Normally these steps use artifacts from other builds.
19
20## Utility:
21[Full cleanup](./cleanup.sh). Remove all local changes and switch each project into head-less state. This is the best state to sync/rebase/finalize the branch.
22
23## Dry run:
24[Full cleanup](./dryrun-cleanup.sh). Remove all local changes and switch each project into head-less state. Also removes "DryRun" branches.
25[SDK](./dryrun-step-1.sh). Perform SDK finalization and upload the CLs to Gerrit.
26[SDK and REL](./dryrun-step-1-and-2.sh). Perform SDK finalization, plus all necessary changes to switch configuration to REL, and upload the CLs to Gerrit.