Include standard headers when allocating space am: 027eb382f9
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2568975
Change-Id: Icc549288da7de8fb84e0c52ca7f195d278711f08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/scripts/update_device.py b/scripts/update_device.py
index f94774b..8b9fbe9 100755
--- a/scripts/update_device.py
+++ b/scripts/update_device.py
@@ -517,10 +517,12 @@
metadata_path = "/data/ota_package/metadata"
if args.allocate_only:
+ with zipfile.ZipFile(args.otafile, "r") as zfp:
+ headers = zfp.read("payload_properties.txt").decode()
if PushMetadata(dut, args.otafile, metadata_path):
dut.adb([
"shell", "update_engine_client", "--allocate",
- "--metadata={}".format(metadata_path)])
+ "--metadata={} --headers='{}'".format(metadata_path, headers)])
# Return 0, as we are executing ADB commands here, no work needed after
# this point
return 0