Refactor the imgdiff

This helps us to add a new mode to handle large APKs in the follow
up CL.

Changes include:
1. Create a new interface class 'Image'
1. Create subclasses 'ZipModeImage' and 'ImageModeImage' and move the
   related functions there.

Bug: 63542719
Test: recovery_component_test passes
Change-Id: I7729b0ba39b19a9c84811636a60dd0a0b1acc2f0
This commit is contained in:
Tianjie Xu
2017-07-19 14:16:30 -07:00
parent 64cba55fbc
commit 6b03ba7902
2 changed files with 616 additions and 440 deletions

File diff suppressed because it is too large Load Diff