From 32118f6690a5677b509b08730b896304150d4d63 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 25 Apr 2018 15:19:47 -0700 Subject: Rename the dir for SystemUpdaterSample. Also replace the occurrence in README.md and PREUPLOAD.cfg. Test: mmma -j bootable/recovery Change-Id: I04c0ef00dd64f49e008ad2a4a2c1e8eaed76bf8d --- updater_sample/res/raw/sample.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 updater_sample/res/raw/sample.json (limited to 'updater_sample/res/raw/sample.json') 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 + } + ] + } +} -- cgit v1.2.3