-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from sisong/dev
support Android 15+ run with 16KB page size
- Loading branch information
Showing
22 changed files
with
470 additions
and
287 deletions.
There are no files selected for viewing
Submodule HDiffPatch
updated
38 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
Lzma_Files := $(LOCAL_PATH)/../../lzma/C/LzmaDec.c \ | ||
$(LOCAL_PATH)/../../lzma/C/Lzma2Dec.c | ||
ifeq ($(TARGET_ARCH_ABI),arm64-v8a) | ||
Lzma_Files += $(LOCAL_PATH)/../../lzma/Asm/arm64/LzmaDecOpt.S | ||
endif | ||
|
||
ZLIB_PATH := $(LOCAL_PATH)/../../zlib1.3.1 | ||
Zlib_Files := $(ZLIB_PATH)/crc32.c \ | ||
$(ZLIB_PATH)/deflate.c \ | ||
$(ZLIB_PATH)/inflate.c \ | ||
$(ZLIB_PATH)/zutil.c \ | ||
$(ZLIB_PATH)/adler32.c \ | ||
$(ZLIB_PATH)/trees.c \ | ||
$(ZLIB_PATH)/inftrees.c \ | ||
$(ZLIB_PATH)/inffast.c | ||
|
||
HDP_PATH := $(LOCAL_PATH)/../../HDiffPatch | ||
Hdp_Files := $(HDP_PATH)/file_for_patch.c \ | ||
$(HDP_PATH)/libHDiffPatch/HPatch/patch.c \ | ||
$(HDP_PATH)/libParallel/parallel_import.cpp \ | ||
$(HDP_PATH)/libParallel/parallel_channel.cpp | ||
|
||
ADP_PATH := $(LOCAL_PATH)/../../src/patch | ||
Adp_Files := $(ADP_PATH)/NewStream.cpp \ | ||
$(ADP_PATH)/OldStream.cpp \ | ||
$(ADP_PATH)/Patcher.cpp \ | ||
$(ADP_PATH)/ZipDiffData.cpp \ | ||
$(ADP_PATH)/Zipper.cpp | ||
|
||
Src_Files := $(LOCAL_PATH)/apk_patch_jni.cpp \ | ||
$(LOCAL_PATH)/apk_patch.cpp | ||
|
||
LOCAL_SRC_FILES := $(Src_Files) $(Lzma_Files) $(Zlib_Files) $(Hdp_Files) $(Adp_Files) | ||
|
||
LOCAL_LDLIBS := -llog | ||
LOCAL_CFLAGS := -Os -DANDROID_NDK -D_IS_USED_MULTITHREAD=1 -D_IS_USED_PTHREAD=1 -D_IS_NEED_CACHE_OLD_BY_COVERS=0 | ||
ifneq ($(TARGET_ARCH_ABI),armeabi) | ||
LOCAL_CFLAGS += -DUNALIGNED_OK | ||
endif | ||
ifeq ($(TARGET_ARCH_ABI),arm64-v8a) | ||
LOCAL_CFLAGS += -DZ7_LZMA_DEC_OPT | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.