Skip to content

Commit 390553b

Browse files
M1chatechyminati
authored andcommitted
releasetools: ota_from_target_files: add FullOTA_PostValidate
Change-Id: I152412049f90fd546d4516cc064238c3192be553
1 parent 22a0868 commit 390553b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tools/releasetools/common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3195,6 +3195,11 @@ def FullOTA_InstallEnd(self):
31953195
used to install the image for the device's baseband processor."""
31963196
return self._DoCall("FullOTA_InstallEnd")
31973197

3198+
def FullOTA_PostValidate(self):
3199+
"""Called after installing and validating /system; typically this is
3200+
used to resize the system partition after a block based installation."""
3201+
return self._DoCall("FullOTA_PostValidate")
3202+
31983203
def IncrementalOTA_Assertions(self):
31993204
"""Called after emitting the block of assertions at the top of an
32003205
incremental OTA package. Implementations can add whatever

tools/releasetools/non_ab_ota.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ def WriteFullOTAPackage(input_zip, output_file):
258258
common.CheckSize(boot_img.data, "boot.img", target_info)
259259
common.ZipWriteStr(output_zip, "boot.img", boot_img.data)
260260

261+
device_specific.FullOTA_PostValidate()
262+
261263
script.WriteRawImage("/boot", "boot.img")
262264

263265
script.ShowProgress(0.1, 10)

0 commit comments

Comments
 (0)