Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b03ba79 authored by Tianjie Xu's avatar Tianjie Xu
Browse files

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
parent 64cba55f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -127,7 +127,8 @@ libimgdiff_src_files := imgdiff.cpp
# libbsdiff is compiled with -D_FILE_OFFSET_BITS=64.
libimgdiff_cflags := \
    -Werror \
    -D_FILE_OFFSET_BITS=64
    -D_FILE_OFFSET_BITS=64 \
    -DZLIB_CONST

libimgdiff_static_libraries := \
    libbsdiff \
+567 −392

File changed.

Preview size limit exceeded, changes collapsed.