aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-01-18 19:08:50 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-01-18 19:09:32 +0000
commit04ecc0ca2c4b42adf287af3d49540e01eece39dd (patch)
treef285f0b3632608c09894e599a789dcff34d058b3
parent4fe054ff3a4f99fe294f055bea56dfc815f2fbc8 (diff)
parent9de91d94e8224314f856d0d3c884142ef5d71f44 (diff)
downloadbuild-04ecc0ca2c4b42adf287af3d49540e01eece39dd.tar.gz
Make change and version bump to OPM1.171019.020
Change-Id: I536342bbbf0715464f8196f61601a7b4245b155d
-rw-r--r--core/build_id.mk2
-rw-r--r--core/version_defaults.mk2
-rwxr-xr-xtools/releasetools/ota_from_target_files.py5
3 files changed, 7 insertions, 2 deletions
diff --git a/core/build_id.mk b/core/build_id.mk
index ed089653a6..0006d909e0 100644
--- a/core/build_id.mk
+++ b/core/build_id.mk
@@ -18,4 +18,4 @@
# (like "CRB01"). It must be a single word, and is
# capitalized by convention.
-export BUILD_ID=OPM1.171019.019
+export BUILD_ID=OPM1.171019.020
diff --git a/core/version_defaults.mk b/core/version_defaults.mk
index 7ebda5594f..f03d9ba34e 100644
--- a/core/version_defaults.mk
+++ b/core/version_defaults.mk
@@ -181,7 +181,7 @@ ifndef PLATFORM_SECURITY_PATCH
# It must be of the form "YYYY-MM-DD" on production devices.
# It must match one of the Android Security Patch Level strings of the Public Security Bulletins.
# If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
- PLATFORM_SECURITY_PATCH := 2018-02-05
+ PLATFORM_SECURITY_PATCH := 2018-03-05
endif
ifndef PLATFORM_BASE_OS
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index 1b0f68b73b..3baacdc9d5 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -1077,6 +1077,11 @@ def WriteABOTAPackageWithBrilloScript(target_file, output_file,
"--target_image", target_file]
if source_file is not None:
cmd.extend(["--source_image", source_file])
+ if OPTIONS.downgrade:
+ max_timestamp = GetBuildProp("ro.build.date.utc", OPTIONS.source_info_dict)
+ else:
+ max_timestamp = metadata["post-timestamp"]
+ cmd.extend(["--max_timestamp", max_timestamp])
p1 = common.Run(cmd, stdout=log_file, stderr=subprocess.STDOUT)
p1.communicate()
assert p1.returncode == 0, "brillo_update_payload generate failed"