summaryrefslogtreecommitdiffstats
path: root/sample_updater/res/raw/sample.json
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-04-17 22:20:22 +0200
committerZhomart Mukhamejanov <zhomart@google.com>2018-04-25 20:55:25 +0200
commitf4d280ce40ba0aa50d6b2c70d8031ddf7678d179 (patch)
tree2496e77be97d432a36f0250bebf12dcf498ca851 /sample_updater/res/raw/sample.json
parentMerge "updater: Remove an unneeded strdup()." (diff)
downloadandroid_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.tar
android_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.tar.gz
android_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.tar.bz2
android_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.tar.lz
android_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.tar.xz
android_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.tar.zst
android_bootable_recovery-f4d280ce40ba0aa50d6b2c70d8031ddf7678d179.zip
Diffstat (limited to '')
-rw-r--r--sample_updater/res/raw/sample.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/sample_updater/res/raw/sample.json b/sample_updater/res/raw/sample.json
new file mode 100644
index 000000000..03335cc97
--- /dev/null
+++ b/sample_updater/res/raw/sample.json
@@ -0,0 +1,22 @@
+{
+ "__name": "name will be visible on UI",
+ "__url": "https:// or file:// uri to update file (zip, xz, ...)",
+ "__type": "NON_STREAMING (from local file) OR STREAMING (on the fly)",
+ "name": "SAMPLE-cake-release BUILD-12345",
+ "url": "file:///data/builds/android-update.zip",
+ "type": "NON_STREAMING",
+ "streaming_metadata": {
+ "__": "streaming_metadata is required only for streaming update",
+ "__property_files": "name, offset and size of files",
+ "property_files": [
+ {
+ "__filename": "payload.bin and payload_properties.txt are required",
+ "__offset": "defines beginning of update data in archive",
+ "__size": "size of the update data in archive",
+ "filename": "payload.bin",
+ "offset": 531,
+ "size": 5012323
+ }
+ ]
+ }
+}