From 96eb59e4b13b07a18fc1a6a85786f2c287bd21db Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Fri, 4 May 2018 12:17:01 -0700 Subject: updater_sample: update tools - Allow gen_update_config.py to use ota_from_target_files from $ANDROID_BUILD_TOP/build/make/tools/releasetools/ - tests/res/raw/ota_002_package.zip re-generated using functions from $ANDROID_BUILD_TOP/build/make/tools/releasetools/test_ota_from_target_files.py - sample app tests updated Test: ./tools/gen_update_config_test.py Change-Id: I5c492ec22782ba54fe481f592a44e797c695684e Signed-off-by: Zhomart Mukhamejanov --- updater_sample/tests/res/raw/ota_002_package.zip | Bin 638 -> 2181 bytes .../tests/res/raw/update_config_stream_002.json | 23 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) (limited to 'updater_sample/tests/res') diff --git a/updater_sample/tests/res/raw/ota_002_package.zip b/updater_sample/tests/res/raw/ota_002_package.zip index 145c62e6a..6bf2a23b2 100644 Binary files a/updater_sample/tests/res/raw/ota_002_package.zip and b/updater_sample/tests/res/raw/ota_002_package.zip differ diff --git a/updater_sample/tests/res/raw/update_config_stream_002.json b/updater_sample/tests/res/raw/update_config_stream_002.json index f00f19ce6..cf4469b1c 100644 --- a/updater_sample/tests/res/raw/update_config_stream_002.json +++ b/updater_sample/tests/res/raw/update_config_stream_002.json @@ -3,30 +3,35 @@ "ab_install_type": "STREAMING", "ab_streaming_metadata": { "property_files": [ + { + "filename": "payload_metadata.bin", + "offset": 41, + "size": 827 + }, { "filename": "payload.bin", "offset": 41, - "size": 7 + "size": 1392 }, { "filename": "payload_properties.txt", - "offset": 100, - "size": 18 + "offset": 1485, + "size": 147 }, { "filename": "care_map.txt", - "offset": 160, - "size": 8 + "offset": 1674, + "size": 12 }, { "filename": "compatibility.zip", - "offset": 215, - "size": 13 + "offset": 1733, + "size": 17 }, { "filename": "metadata", - "offset": 287, - "size": 8 + "offset": 1809, + "size": 29 } ] }, -- cgit v1.2.3