new block OTA system tools

Replace the xdelta/xz-based block OTA generation with a new system
based on the existing bsdiff/imgdiff tools.

Bug: 16984795
Change-Id: Ia9732516ffdfc12be86260b2cc4b1dd2d210e886
This commit is contained in:
Doug Zongker
2014-08-26 13:10:25 -07:00
parent e8892aa4ec
commit fc44a515d4
9 changed files with 1074 additions and 438 deletions

View File

@@ -28,8 +28,6 @@ import commands
import shutil
import tempfile
import simg_map
FIXED_SALT = "aee087a5be3b982978c923f566a94613496b417f2af592639bc80d141e34dfe7"
def RunCommand(cmd):
@@ -150,13 +148,6 @@ def UnsparseImage(sparse_image_path, replace=True):
return False, None
return True, unsparse_image_path
def MappedUnsparseImage(sparse_image_path, unsparse_image_path,
map_path, mapped_unsparse_image_path):
if simg_map.ComputeMap(sparse_image_path, unsparse_image_path,
map_path, mapped_unsparse_image_path):
return False
return True
def MakeVerityEnabledImage(out_file, prop_dict):
"""Creates an image that is verifiable using dm-verity.