Fix s to t OTA

Android S update_engine has a smaller minor version, we should use
update_engine version number from source build when generating an
incremental OTA.

Test: th
Bug: 277837157
Change-Id: Ic1ccdccd26c19bf9fb13d146a9151e699e481201
This commit is contained in:
Kelvin Zhang 2023-04-11 21:08:27 -07:00
parent ea84d42199
commit 629bc8dc1c

View file

@ -839,6 +839,9 @@ class PayloadGenerator(object):
major_version, minor_version = ParseUpdateEngineConfig(
os.path.join(target_dir, "META", "update_engine_config.txt"))
if source_file:
major_version, minor_version = ParseUpdateEngineConfig(
os.path.join(source_dir, "META", "update_engine_config.txt"))
if self.minor_version:
minor_version = self.minor_version
cmd.extend(["--major_version", str(major_version)])