diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-04-26 02:10:33 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-04-26 02:10:33 +0200 |
commit | a544bfab2bbaf71bf56511ff33a7cca88ef73846 (patch) | |
tree | 1dc6010dec08f2af591b6f174d22507fd5792740 /updater_sample/res/raw | |
parent | Merge "sample_updater: add non-streaming demo" (diff) | |
parent | Rename the dir for SystemUpdaterSample. (diff) | |
download | android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.tar android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.tar.gz android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.tar.bz2 android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.tar.lz android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.tar.xz android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.tar.zst android_bootable_recovery-a544bfab2bbaf71bf56511ff33a7cca88ef73846.zip |
Diffstat (limited to 'updater_sample/res/raw')
-rw-r--r-- | updater_sample/res/raw/sample.json | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/updater_sample/res/raw/sample.json b/updater_sample/res/raw/sample.json new file mode 100644 index 000000000..03335cc97 --- /dev/null +++ b/updater_sample/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 + } + ] + } +} |