From 6aa5fb0bbe8d074208648593d177553e732e6d9d Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Wed, 9 May 2018 14:28:49 -0700 Subject: updater_sample: add http header demo Added demo passing http headers to UpdateEngine#applyPayload. Bug: 79483768 Test: manually Change-Id: I3e9c812dba2066acadbcea8d07c933368806e20c Signed-off-by: Zhomart Mukhamejanov --- updater_sample/res/raw/sample.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'updater_sample/res/raw') diff --git a/updater_sample/res/raw/sample.json b/updater_sample/res/raw/sample.json index b6f4cdce6..7ac8ffab7 100644 --- a/updater_sample/res/raw/sample.json +++ b/updater_sample/res/raw/sample.json @@ -8,6 +8,7 @@ "ab_streaming_metadata": { "__": "streaming_metadata is required only for streaming update", "__property_files": "name, offset and size of files", + "__authorization": "it will be sent to OTA package server as value of HTTP header - Authorization", "property_files": [ { "__filename": "name of the file in package", @@ -17,6 +18,7 @@ "offset": 531, "size": 5012323 } - ] + ], + "authorization": "Basic my-secret-token" } } -- cgit v1.2.3