Add support for ssdiff patches compressed using Brotli algorithm 04/270404/8
authorMateusz Moscicki <m.moscicki2@samsung.com>
Tue, 1 Feb 2022 10:37:09 +0000 (11:37 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 21 Feb 2022 14:59:47 +0000 (15:59 +0100)
commit4ebae86e6edd8cc77809fe4d69a8055d846cea28
treef7b514e0c1564bc2abcd8717163bf96af0bff8e0
parentf403ec8c5981d842b9b118e531ae92ea0081a8c2
Add support for ssdiff patches compressed using Brotli algorithm

Add new partition upgrade type - DELTA_IMG_AB
A patch is a binary diff between two partition that is compressed with
the Brotli algorithm.
Brotli has a good compression ratio and allows decompression using a
small amount of memory (during tests, it did not exceed 17MB).

Change-Id: I7f251054f07f7860749dd95a2b90ca018ca5a899
CMakeLists.txt
bsdiff/ss_brotli_patch.c [new file with mode: 0644]
bsdiff/ss_brotli_patch.h [new file with mode: 0644]
packaging/libtota.spec
ss_engine/SS_Common.c
ss_engine/SS_Common.h
ss_engine/SS_PatchDelta.c
ss_engine/SS_UPI.c
ss_engine/SS_UPI.h
ss_engine/ua_types.h