forked from openkylin/platform_build
include build timestamp in OTA metadata
Change-Id: I44292c6346db3356dfafbd044027e37a9b467cfe
This commit is contained in:
parent
068986605b
commit
3b85269cfe
|
@ -355,6 +355,7 @@ def WriteFullOTAPackage(input_zip, output_zip):
|
||||||
|
|
||||||
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
|
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
|
||||||
"pre-device": GetBuildProp("ro.product.device", input_zip),
|
"pre-device": GetBuildProp("ro.product.device", input_zip),
|
||||||
|
"post-timestamp": GetBuildProp("ro.build.date.utc", input_zip),
|
||||||
}
|
}
|
||||||
|
|
||||||
device_specific = common.DeviceSpecificParams(
|
device_specific = common.DeviceSpecificParams(
|
||||||
|
@ -602,6 +603,7 @@ def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
|
||||||
raise ValueError('unknown script mode "%s"' % (OPTIONS.script_mode,))
|
raise ValueError('unknown script mode "%s"' % (OPTIONS.script_mode,))
|
||||||
|
|
||||||
metadata = {"pre-device": GetBuildProp("ro.product.device", source_zip),
|
metadata = {"pre-device": GetBuildProp("ro.product.device", source_zip),
|
||||||
|
"post-timestamp": GetBuildProp("ro.build.date.utc", target_zip),
|
||||||
}
|
}
|
||||||
|
|
||||||
device_specific = common.DeviceSpecificParams(
|
device_specific = common.DeviceSpecificParams(
|
||||||
|
|
Loading…
Reference in New Issue