OSDN Git Service

new image diffing tool and support for image patches in applypatch
authorDoug Zongker <dougz@android.com>
Thu, 28 May 2009 01:24:03 +0000 (18:24 -0700)
committerDoug Zongker <dougz@android.com>
Fri, 29 May 2009 04:18:46 +0000 (21:18 -0700)
commit02d444b07e293e6485f2d7b76a9ce79dcfb9055c
tree119408af0a10378b493f13cc8dbcb6619a8c4ad7
parent8b70e8c6574e6e6e80aaa84fe1a9426995fa0a78
new image diffing tool and support for image patches in applypatch

Images (like boot and recovery) consist of large sections of gzipped
data interspersed with other data.  To do effective binary patching of
these files, we need to apply patches to the gzipped parts in
'uncompressed space', that is, we decompress, apply a patch, then
recompress to obtain the desired output.

This change defines a new format with these patches, which is
basically a description of how the source and target files are to be
divided up into chunks and a bsdiff patch for each chunk.  We add a
new host executable, "imgdiff", for generating these patches from
source and target images, and add support in applypatch for
recognizing this format and applying it on the device.
tools/applypatch/Android.mk
tools/applypatch/applypatch.c
tools/applypatch/applypatch.h
tools/applypatch/bsdiff.c
tools/applypatch/imgdiff.c [new file with mode: 0644]
tools/applypatch/imgdiff.h [new file with mode: 0644]
tools/applypatch/imgpatch.c [new file with mode: 0644]