summaryrefslogtreecommitdiff
path: root/tools/releasetools/ota_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/releasetools/ota_utils.py')
-rw-r--r--tools/releasetools/ota_utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/releasetools/ota_utils.py b/tools/releasetools/ota_utils.py
index fa9516edcb..03f7660c01 100644
--- a/tools/releasetools/ota_utils.py
+++ b/tools/releasetools/ota_utils.py
@@ -221,8 +221,12 @@ def UpdateDeviceState(device_state, build_info, boot_variable_values,
# TODO(xunchang) set the boot image's version with kmi. Note the boot
# image doesn't have a file map.
- partition_state.version = build_info.GetPartitionBuildProp(
- 'ro.build.date.utc', partition)
+ try:
+ partition_state.version = build_info.GetPartitionBuildProp(
+ 'ro.build.date.utc', partition)
+ except common.ExternalError:
+ partition_state.version = build_info.GetPartitionBuildProp(
+ 'ro.build.date.utc', 'system')
# TODO(xunchang), we can save a call to ComputeRuntimeBuildInfos.
build_devices, build_fingerprints = \