OSDN Git Service

pass blobs to applypatch in incremental OTAs
authorDoug Zongker <dougz@android.com>
Mon, 22 Feb 2010 23:41:53 +0000 (15:41 -0800)
committerDoug Zongker <dougz@android.com>
Mon, 22 Feb 2010 23:41:53 +0000 (15:41 -0800)
commitc8d446bcde877ec94f8e68dd5af68fe34eb1b1f9
tree5dc97330dcdce5fed9c6d7666e5949aed031c28b
parent1af09dea7c5d25c806935975da1697af52b5af57
pass blobs to applypatch in incremental OTAs

applypatch now takes patches as blob-valued arguments instead of just
filenames, eliminating the need to unpack all patches to /tmp before
starting to apply them.

Revert the last change I made where sha1_check(read_file(...)) was
substituted for apply_patch_check(...).  apply_patch_check() knows to
check /cache/saved.file if the original source file is missing or has
a bad checksum, which is important if the device loses power or
otherwise restarts during patching.

Change-Id: Ia5b761474b0f809a5a5eed29455b1b145145699e
tools/releasetools/amend_generator.py
tools/releasetools/both_generator.py
tools/releasetools/edify_generator.py
tools/releasetools/ota_from_target_files