Go to file
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
applypatch refactor applypatch and friends 2010-02-22 15:30:33 -08:00
edify refactor applypatch and friends 2010-02-22 15:30:33 -08:00
etc auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
minui simplify construction of the recovery progress bar 2009-10-08 16:32:58 -07:00
minzip add a one-argument version of package_extract_file 2010-02-01 14:40:12 -08:00
mtdutils make offsets in firmware update header not point to bad blocks 2010-01-13 09:21:25 -08:00
res/images bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
testdata add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
tools remove amend 2009-07-14 16:58:42 -07:00
updater refactor applypatch and friends 2010-02-22 15:30:33 -08:00
Android.mk relocate applypatch; add type system and new functions to edify 2010-02-18 14:22:12 -08:00
bootloader.c bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
bootloader.h bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
common.h bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
default_recovery_ui.c change log recovery to generic device_recovery_start function 2010-02-01 15:59:12 -08:00
efs_migration.c Recovery changes for Encrypted File Systems. 2009-12-10 14:49:04 -08:00
efs_migration.h Recovery changes for Encrypted File Systems. 2009-12-10 14:49:04 -08:00
install.c bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
install.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
NOTICE Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:42 -07:00
recovery_ui.h change log recovery to generic device_recovery_start function 2010-02-01 15:59:12 -08:00
recovery.c bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
roots.c add function for device-specific wipe data features 2009-06-18 15:07:14 -07:00
roots.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
test_roots.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
ui.c bump updater API version to 3; deprecate firmware update command 2010-02-03 09:20:07 -08:00
verifier_test.c add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
verifier_test.sh add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
verifier.c add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
verifier.h do not merge: cherry-picked 60151a295c from master branch 2009-08-17 13:21:04 -07:00