Zhomart Mukhamejanov | f4d280c | 2018-04-17 13:20:22 -0700 | [diff] [blame] | 1 | { |
| 2 | "__name": "name will be visible on UI", |
Zhomart Mukhamejanov | da7e237 | 2018-05-01 12:50:55 -0700 | [diff] [blame] | 3 | "__url": "https:// or file:// uri to update package (zip, xz, ...)", |
Zhomart Mukhamejanov | bb8a215 | 2018-05-10 12:19:16 -0700 | [diff] [blame] | 4 | "__ab_install_type": "NON_STREAMING (from a local file) OR STREAMING (on the fly)", |
Zhomart Mukhamejanov | f4d280c | 2018-04-17 13:20:22 -0700 | [diff] [blame] | 5 | "name": "SAMPLE-cake-release BUILD-12345", |
Zhomart Mukhamejanov | da7e237 | 2018-05-01 12:50:55 -0700 | [diff] [blame] | 6 | "url": "http://foo.bar/builds/ota-001.zip", |
| 7 | "ab_install_type": "NON_STREAMING", |
| 8 | "ab_streaming_metadata": { |
Zhomart Mukhamejanov | f4d280c | 2018-04-17 13:20:22 -0700 | [diff] [blame] | 9 | "__": "streaming_metadata is required only for streaming update", |
| 10 | "__property_files": "name, offset and size of files", |
Zhomart Mukhamejanov | 6aa5fb0 | 2018-05-09 14:28:49 -0700 | [diff] [blame] | 11 | "__authorization": "it will be sent to OTA package server as value of HTTP header - Authorization", |
Zhomart Mukhamejanov | f4d280c | 2018-04-17 13:20:22 -0700 | [diff] [blame] | 12 | "property_files": [ |
| 13 | { |
Zhomart Mukhamejanov | da7e237 | 2018-05-01 12:50:55 -0700 | [diff] [blame] | 14 | "__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 Mukhamejanov | f4d280c | 2018-04-17 13:20:22 -0700 | [diff] [blame] | 17 | "filename": "payload.bin", |
| 18 | "offset": 531, |
| 19 | "size": 5012323 |
| 20 | } |
Zhomart Mukhamejanov | 6aa5fb0 | 2018-05-09 14:28:49 -0700 | [diff] [blame] | 21 | ], |
| 22 | "authorization": "Basic my-secret-token" |
Zhomart Mukhamejanov | 238beb7 | 2018-05-09 16:25:40 -0700 | [diff] [blame] | 23 | }, |
| 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 Mukhamejanov | f4d280c | 2018-04-17 13:20:22 -0700 | [diff] [blame] | 28 | } |
| 29 | } |