android_bootable_recovery/applypatch
Doug Zongker c4351c7910 refactor applypatch and friends
Change the applypatch function to take meaningful arguments instead of
argc and argv.  Move all the parsing of arguments into main.c (for the
standalone binary) and into install.c (for the updater function).
applypatch() takes patches as Value objects, so we can pass in blobs
extracted from the package without ever writing them to temp files.

The patching code is changed to read the patch from memory instead of
a file.

A bunch of compiler warnings (mostly about signed vs unsigned types)
are fixed.

Support for the IMGDIFF1 format is dropped.  (We've been generating
IMGDIFF2 packages for some time now.)

Change-Id: I217563c500012750f27110db821928a06211323f
2010-02-22 15:30:33 -08:00
..
testdata relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
Android.mk refactor applypatch and friends 2010-02-22 15:30:33 -08:00
applypatch.c refactor applypatch and friends 2010-02-22 15:30:33 -08:00
applypatch.h refactor applypatch and friends 2010-02-22 15:30:33 -08:00
applypatch.sh refactor applypatch and friends 2010-02-22 15:30:33 -08:00
bsdiff.c relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
bspatch.c refactor applypatch and friends 2010-02-22 15:30:33 -08:00
freecache.c relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
imgdiff_test.sh relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
imgdiff.c relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
imgdiff.h relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
imgpatch.c refactor applypatch and friends 2010-02-22 15:30:33 -08:00
main.c refactor applypatch and friends 2010-02-22 15:30:33 -08:00
utils.c refactor applypatch and friends 2010-02-22 15:30:33 -08:00
utils.h refactor applypatch and friends 2010-02-22 15:30:33 -08:00