6aa5fb0bbe
Added demo passing http headers to UpdateEngine#applyPayload. Bug: 79483768 Test: manually Change-Id: I3e9c812dba2066acadbcea8d07c933368806e20c Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
25 lines
1.0 KiB
JSON
25 lines
1.0 KiB
JSON
{
|
|
"__name": "name will be visible on UI",
|
|
"__url": "https:// or file:// uri to update package (zip, xz, ...)",
|
|
"__type": "NON_STREAMING (from a local file) OR STREAMING (on the fly)",
|
|
"name": "SAMPLE-cake-release BUILD-12345",
|
|
"url": "http://foo.bar/builds/ota-001.zip",
|
|
"ab_install_type": "NON_STREAMING",
|
|
"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",
|
|
"__offset": "defines beginning of the file in package",
|
|
"__size": "size of the file in package",
|
|
"filename": "payload.bin",
|
|
"offset": 531,
|
|
"size": 5012323
|
|
}
|
|
],
|
|
"authorization": "Basic my-secret-token"
|
|
}
|
|
}
|