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:
parent
ea84d42199
commit
629bc8dc1c
1 changed files with 3 additions and 0 deletions
|
@ -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)])
|
||||
|
|
Loading…
Reference in a new issue