修訂 | 00733e5b7bd91b6abef81bad11ff182f2e1b31b3 (tree) |
---|---|
時間 | 2019-10-16 19:37:34 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Merge tag 'android-7.1.2_r39' into nougat-x86
Android 7.1.2 Release 39 (5787804)
@@ -1284,6 +1284,11 @@ def WriteABOTAPackageWithBrilloScript(target_file, output_file, | ||
1284 | 1284 | "--target_image", target_file] |
1285 | 1285 | if source_file is not None: |
1286 | 1286 | cmd.extend(["--source_image", source_file]) |
1287 | + if OPTIONS.downgrade: | |
1288 | + max_timestamp = GetBuildProp("ro.build.date.utc", OPTIONS.source_info_dict) | |
1289 | + else: | |
1290 | + max_timestamp = metadata["post-timestamp"] | |
1291 | + cmd.extend(["--max_timestamp", max_timestamp]) | |
1287 | 1292 | p1 = common.Run(cmd, stdout=subprocess.PIPE) |
1288 | 1293 | p1.wait() |
1289 | 1294 | assert p1.returncode == 0, "brillo_update_payload generate failed" |