blob: f188c233b8c63297b8d6db04f5f30d8e330a28db [file] [log] [blame]
Zhomart Mukhamejanovf4d280c2018-04-17 13:20:22 -07001{
2 "__name": "name will be visible on UI",
Zhomart Mukhamejanovda7e2372018-05-01 12:50:55 -07003 "__url": "https:// or file:// uri to update package (zip, xz, ...)",
Zhomart Mukhamejanovbb8a2152018-05-10 12:19:16 -07004 "__ab_install_type": "NON_STREAMING (from a local file) OR STREAMING (on the fly)",
Zhomart Mukhamejanovf4d280c2018-04-17 13:20:22 -07005 "name": "SAMPLE-cake-release BUILD-12345",
Zhomart Mukhamejanovda7e2372018-05-01 12:50:55 -07006 "url": "http://foo.bar/builds/ota-001.zip",
7 "ab_install_type": "NON_STREAMING",
8 "ab_streaming_metadata": {
Zhomart Mukhamejanovf4d280c2018-04-17 13:20:22 -07009 "__": "streaming_metadata is required only for streaming update",
10 "__property_files": "name, offset and size of files",
Zhomart Mukhamejanov6aa5fb02018-05-09 14:28:49 -070011 "__authorization": "it will be sent to OTA package server as value of HTTP header - Authorization",
Zhomart Mukhamejanovf4d280c2018-04-17 13:20:22 -070012 "property_files": [
13 {
Zhomart Mukhamejanovda7e2372018-05-01 12:50:55 -070014 "__filename": "name of the file in package",
15 "__offset": "defines beginning of the file in package",
16 "__size": "size of the file in package",
Zhomart Mukhamejanovf4d280c2018-04-17 13:20:22 -070017 "filename": "payload.bin",
18 "offset": 531,
19 "size": 5012323
20 }
Zhomart Mukhamejanov6aa5fb02018-05-09 14:28:49 -070021 ],
22 "authorization": "Basic my-secret-token"
Zhomart Mukhamejanov238beb72018-05-09 16:25:40 -070023 },
24 "ab_config": {
25 "__": "A/B (seamless) update configurations",
26 "__force_switch_slot": "if set true device will boot to a new slot, otherwise user manually switches slot on the screen",
27 "force_switch_slot": false
Zhomart Mukhamejanovf4d280c2018-04-17 13:20:22 -070028 }
29}