diff options
author | Jesse Zhao <jessezhao@google.com> | 2015-01-06 10:59:53 -0800 |
---|---|---|
committer | Xi Zhao <jessezhao@google.com> | 2015-01-07 21:44:09 +0000 |
commit | 75bcea0267ae94ef865de60d2e40a99f7a65e998 (patch) | |
tree | ccd05ad1338370139da91316e9321f667ea0e841 /tools/releasetools/ota_from_target_files | |
parent | 02be18043c1fe0a0109139caf65694a29035a1d2 (diff) | |
download | build-75bcea0267ae94ef865de60d2e40a99f7a65e998.zip build-75bcea0267ae94ef865de60d2e40a99f7a65e998.tar.gz build-75bcea0267ae94ef865de60d2e40a99f7a65e998.tar.bz2 |
verify system and vendor image together before patching.
Change-Id: Ia43657ed6cd8860b0edb78cc2dd6388c761e1f8b
Bug: 17919909
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-x | tools/releasetools/ota_from_target_files | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files index 755e5c2..945f11a 100755 --- a/tools/releasetools/ota_from_target_files +++ b/tools/releasetools/ota_from_target_files @@ -558,6 +558,7 @@ else if get_stage("%(bcb_dev)s") == "3/3" then system_items = ItemSet("system", "META/filesystem_config.txt") script.ShowProgress(system_progress, 0) + if block_based: # Full OTA is done as an "incremental" against an empty source # image. This has the effect of writing new data from the package @@ -845,6 +846,11 @@ reboot_now("%(bcb_dev)s", ""); else """ % bcb_dev) + # Verify the existing partitions. + system_diff.WriteVerifyScript(script) + if vendor_diff: + vendor_diff.WriteVerifyScript(script) + script.Comment("---- start making changes here ----") device_specific.IncrementalOTA_InstallBegin() |