Merge "Add comments explaining how secondary OTA works" am: d8e23f9519 am: a1c42f5b17

Original change: https://android-review.googlesource.com/c/platform/build/+/2527438

Change-Id: I56d60c850c851f47905d5c23a5543b3e67b29008
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-04-07 22:37:28 +00:00
committed by Automerger Merge Worker

View File

@@ -423,6 +423,13 @@ def GetTargetFilesZipForSecondaryImages(input_file, skip_postinstall=False):
slot will be used. This is to ensure that we always have valid boot, vbmeta,
bootloader images in the inactive slot.
After writing system_other to inactive slot's system partiiton,
PackageManagerService will read `ro.cp_system_other_odex`, and set
`sys.cppreopt` to "requested". Then, according to
system/extras/cppreopts/cppreopts.rc , init will mount system_other at
/postinstall, and execute `cppreopts` to copy optimized APKs from
/postinstall to /data .
Args:
input_file: The input target-files.zip file.
skip_postinstall: Whether to skip copying the postinstall config file.