├── README.md ├── diffdemo └── BsdiffDemo │ ├── jni │ ├── bzip2 │ │ ├── readMe.txt │ │ ├── randtable.c │ │ ├── crctable.c │ │ ├── bzlib.h │ │ ├── huffman.c │ │ └── bzip2recover.c │ ├── Application.mk │ ├── Android.mk │ ├── cn_wjdiankong_bsdiff_DiffUtils.h │ ├── cn_wjdiankong_bsdiff_PatchUtils.h │ ├── common.h │ └── PatchUtils.c │ ├── .DS_Store │ ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs │ ├── res │ ├── values │ │ ├── strings.xml │ │ └── styles.xml │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── layout │ │ └── activity_main.xml │ ├── bin │ ├── classes.dex │ ├── BsdiffDemo.apk │ ├── resources.ap_ │ ├── res │ │ └── crunch │ │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ │ └── drawable-xhdpi │ │ │ └── ic_launcher.png │ ├── classes │ │ ├── cn_wjdiankong_bsdiff_DiffUtils.h │ │ └── cn_wjdiankong_bsdiff_PatchUtils.h │ └── AndroidManifest.xml │ ├── libs │ ├── .DS_Store │ ├── armeabi │ │ └── libapk_patch_lib.so │ └── armeabi-v7a │ │ └── libapk_patch_lib.so │ ├── obj │ └── local │ │ ├── armeabi │ │ ├── libapk_patch_lib.so │ │ └── objs │ │ │ └── apk_patch_lib │ │ │ ├── DiffUtils.o │ │ │ ├── PatchUtils.o │ │ │ ├── bzip2 │ │ │ ├── bzlib.o │ │ │ ├── compress.o │ │ │ ├── crctable.o │ │ │ ├── huffman.o │ │ │ ├── blocksort.o │ │ │ ├── decompress.o │ │ │ ├── randtable.o │ │ │ ├── bzlib.o.d │ │ │ ├── compress.o.d │ │ │ ├── crctable.o.d │ │ │ ├── huffman.o.d │ │ │ ├── blocksort.o.d │ │ │ ├── randtable.o.d │ │ │ └── decompress.o.d │ │ │ ├── DiffUtils.o.d │ │ │ └── PatchUtils.o.d │ │ └── armeabi-v7a │ │ ├── libapk_patch_lib.so │ │ └── objs │ │ └── apk_patch_lib │ │ ├── DiffUtils.o │ │ ├── PatchUtils.o │ │ ├── bzip2 │ │ ├── bzlib.o │ │ ├── huffman.o │ │ ├── blocksort.o │ │ ├── compress.o │ │ ├── crctable.o │ │ ├── randtable.o │ │ ├── decompress.o │ │ ├── bzlib.o.d │ │ ├── huffman.o.d │ │ ├── compress.o.d │ │ ├── crctable.o.d │ │ ├── blocksort.o.d │ │ ├── decompress.o.d │ │ └── randtable.o.d │ │ ├── DiffUtils.o.d │ │ └── PatchUtils.o.d │ ├── gen │ └── cn │ │ └── wjdiankong │ │ └── bsdifflib │ │ ├── BuildConfig.java │ │ └── R.java │ ├── src │ ├── cn │ │ └── wjdiankong │ │ │ ├── bsdiff │ │ │ ├── PatchUtils.java │ │ │ └── DiffUtils.java │ │ │ └── activity │ │ │ └── MainActivity.java │ ├── cn_wjdiankong_bsdiff_DiffUtils.h │ └── cn_wjdiankong_bsdiff_PatchUtils.h │ ├── project.properties │ ├── .classpath │ ├── proguard-project.txt │ ├── AndroidManifest.xml │ ├── .project │ └── .cproject ├── diff工具 ├── bsdiff4.3-win32 │ ├── 命令.txt │ ├── bsdiff.exe │ ├── demo.patch │ ├── bspatch.exe │ ├── demo_new.apk │ ├── demo_old.apk │ ├── Binary diff.txt │ └── LICENSE ├── bsdiff-4.3.tar.gz └── bsdiff-4.3 │ ├── Makefile │ ├── bspatch.1 │ ├── bsdiff.1 │ ├── bspatch.c │ └── bsdiff.c └── .gitignore /README.md: -------------------------------------------------------------------------------- 1 | # android_diffupdate 2 | Android中增量更新工具 3 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/jni/bzip2/readMe.txt: -------------------------------------------------------------------------------- 1 | bzip2包中文件来来自: 2 | http://www.bzip.org/downloads.html -------------------------------------------------------------------------------- /diff工具/bsdiff4.3-win32/命令.txt: -------------------------------------------------------------------------------- 1 | bsdiff.exe oldfile newfile patchfile 2 | bspatch.exe oldfile newfile patchfile -------------------------------------------------------------------------------- /diff工具/bsdiff-4.3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diff工具/bsdiff-4.3.tar.gz -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/.DS_Store -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | bsdifflib 4 | 5 | -------------------------------------------------------------------------------- /diff工具/bsdiff4.3-win32/bsdiff.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diff工具/bsdiff4.3-win32/bsdiff.exe -------------------------------------------------------------------------------- /diff工具/bsdiff4.3-win32/demo.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diff工具/bsdiff4.3-win32/demo.patch -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/bin/classes.dex -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/libs/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/libs/.DS_Store -------------------------------------------------------------------------------- /diff工具/bsdiff4.3-win32/bspatch.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diff工具/bsdiff4.3-win32/bspatch.exe -------------------------------------------------------------------------------- /diff工具/bsdiff4.3-win32/demo_new.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diff工具/bsdiff4.3-win32/demo_new.apk -------------------------------------------------------------------------------- /diff工具/bsdiff4.3-win32/demo_old.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diff工具/bsdiff4.3-win32/demo_old.apk -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/BsdiffDemo.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/bin/BsdiffDemo.apk -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/bin/resources.ap_ -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/libs/armeabi/libapk_patch_lib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/libs/armeabi/libapk_patch_lib.so -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/libs/armeabi-v7a/libapk_patch_lib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/libs/armeabi-v7a/libapk_patch_lib.so -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/libapk_patch_lib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/libapk_patch_lib.so -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/libapk_patch_lib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/libapk_patch_lib.so -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # The ARMv7 is significanly faster due to the use of the hardware FPU 2 | APP_ABI := armeabi,armeabi-v7a 3 | APP_PLATFORM := android-9 4 | APP_STL := gnustl_static -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/DiffUtils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/DiffUtils.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/PatchUtils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/PatchUtils.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/bzlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/bzlib.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/DiffUtils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/DiffUtils.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/PatchUtils.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/PatchUtils.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/compress.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/compress.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/crctable.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/crctable.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/huffman.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/huffman.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/bzlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/bzlib.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/huffman.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/huffman.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/blocksort.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/blocksort.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/decompress.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/decompress.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/randtable.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi/objs/apk_patch_lib/bzip2/randtable.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/blocksort.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/blocksort.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/compress.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/compress.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/crctable.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/crctable.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/randtable.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/randtable.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/decompress.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fourbrother/android_diffupdate/HEAD/diffdemo/BsdiffDemo/obj/local/armeabi-v7a/objs/apk_patch_lib/bzip2/decompress.o -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/gen/cn/wjdiankong/bsdifflib/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package cn.wjdiankong.bsdifflib; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 12 | hs_err_pid* 13 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /diff工具/bsdiff-4.3/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS += -O3 -lbz2 2 | 3 | PREFIX ?= /usr/local 4 | INSTALL_PROGRAM ?= ${INSTALL} -c -s -m 555 5 | INSTALL_MAN ?= ${INSTALL} -c -m 444 6 | 7 | all: bsdiff bspatch 8 | bsdiff: bsdiff.c 9 | bspatch: bspatch.c 10 | 11 | install: 12 | ${INSTALL_PROGRAM} bsdiff bspatch ${PREFIX}/bin 13 | .ifndef WITHOUT_MAN 14 | ${INSTALL_MAN} bsdiff.1 bspatch.1 ${PREFIX}/man/man1 15 | .endif 16 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/src/cn/wjdiankong/bsdiff/PatchUtils.java: -------------------------------------------------------------------------------- 1 | package cn.wjdiankong.bsdiff; 2 | 3 | public class PatchUtils { 4 | 5 | static PatchUtils instance; 6 | 7 | public static PatchUtils getInstance() { 8 | if (instance == null) 9 | instance = new PatchUtils(); 10 | return instance; 11 | } 12 | 13 | static { 14 | System.loadLibrary("apk_patch_lib"); 15 | } 16 | 17 | public native int patch(String oldApkPath, String newApkPath, String patchPath); 18 | } -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/src/cn/wjdiankong/bsdiff/DiffUtils.java: -------------------------------------------------------------------------------- 1 | package cn.wjdiankong.bsdiff; 2 | 3 | 4 | public class DiffUtils { 5 | 6 | static DiffUtils instance; 7 | 8 | public static DiffUtils getInstance() { 9 | if (instance == null) 10 | instance = new DiffUtils(); 11 | return instance; 12 | } 13 | 14 | static { 15 | System.loadLibrary("apk_patch_lib"); 16 | } 17 | 18 | public native int genDiff(String oldApkPath, String newApkPath, String patchPath); 19 | } -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := apk_patch_lib 6 | LOCAL_SRC_FILES := bzip2/bzlib.c \ 7 | bzip2/crctable.c \ 8 | bzip2/compress.c \ 9 | bzip2/decompress.c \ 10 | bzip2/randtable.c \ 11 | bzip2/blocksort.c \ 12 | bzip2/huffman.c \ 13 | DiffUtils.c \ 14 | PatchUtils.c 15 | 16 | 17 | LOCAL_LDLIBS := -lz -llog 18 | 19 | include $(BUILD_SHARED_LIBRARY) -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-23 15 | #android.library=true 16 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/jni/cn_wjdiankong_bsdiff_DiffUtils.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include "common.h" 3 | /* Header for class cn_wjdiankong_bsdiff_DiffUtils */ 4 | 5 | #ifndef _Included_cn_wjdiankong_bsdiff_DiffUtils 6 | #define _Included_cn_wjdiankong_bsdiff_DiffUtils 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: cn_wjdiankong_bsdiff_DiffUtils 12 | * Method: genDiff 13 | * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_cn_wjdiankong_bsdiff_DiffUtils_genDiff 16 | (JNIEnv *, jobject, jstring, jstring, jstring); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/src/cn_wjdiankong_bsdiff_DiffUtils.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class cn_wjdiankong_bsdiff_DiffUtils */ 4 | 5 | #ifndef _Included_cn_wjdiankong_bsdiff_DiffUtils 6 | #define _Included_cn_wjdiankong_bsdiff_DiffUtils 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: cn_wjdiankong_bsdiff_DiffUtils 12 | * Method: genDiff 13 | * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_cn_wjdiankong_bsdiff_DiffUtils_genDiff 16 | (JNIEnv *, jobject, jstring, jstring, jstring); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/src/cn_wjdiankong_bsdiff_PatchUtils.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class cn_wjdiankong_bsdiff_PatchUtils */ 4 | 5 | #ifndef _Included_cn_wjdiankong_bsdiff_PatchUtils 6 | #define _Included_cn_wjdiankong_bsdiff_PatchUtils 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: cn_wjdiankong_bsdiff_PatchUtils 12 | * Method: patch 13 | * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_cn_wjdiankong_bsdiff_PatchUtils_patch 16 | (JNIEnv *, jobject, jstring, jstring, jstring); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/classes/cn_wjdiankong_bsdiff_DiffUtils.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class cn_wjdiankong_bsdiff_DiffUtils */ 4 | 5 | #ifndef _Included_cn_wjdiankong_bsdiff_DiffUtils 6 | #define _Included_cn_wjdiankong_bsdiff_DiffUtils 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: cn_wjdiankong_bsdiff_DiffUtils 12 | * Method: genDiff 13 | * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_cn_wjdiankong_bsdiff_DiffUtils_genDiff 16 | (JNIEnv *, jobject, jstring, jstring, jstring); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/jni/cn_wjdiankong_bsdiff_PatchUtils.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include "common.h" 3 | /* Header for class cn_wjdiankong_bsdiff_PatchUtils */ 4 | 5 | #ifndef _Included_cn_wjdiankong_bsdiff_PatchUtils 6 | #define _Included_cn_wjdiankong_bsdiff_PatchUtils 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: cn_wjdiankong_bsdiff_PatchUtils 12 | * Method: patch 13 | * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_cn_wjdiankong_bsdiff_PatchUtils_patch 16 | (JNIEnv *, jobject, jstring, jstring, jstring); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/classes/cn_wjdiankong_bsdiff_PatchUtils.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class cn_wjdiankong_bsdiff_PatchUtils */ 4 | 5 | #ifndef _Included_cn_wjdiankong_bsdiff_PatchUtils 6 | #define _Included_cn_wjdiankong_bsdiff_PatchUtils 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: cn_wjdiankong_bsdiff_PatchUtils 12 | * Method: patch 13 | * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I 14 | */ 15 | JNIEXPORT jint JNICALL Java_cn_wjdiankong_bsdiff_PatchUtils_patch 16 | (JNIEnv *, jobject, jstring, jstring, jstring); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/jni/common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright (c) 2015, alipay.com 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /* 19 | * common.h 20 | * 21 | * @author : sanping.li@alipay.com 22 | * 23 | */ 24 | 25 | #ifndef COMMON_H_ 26 | #define COMMON_H_ 27 | 28 | #include 29 | #include 30 | 31 | #define LOG_TAG "jw" 32 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) 33 | #define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__) 34 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) \ 35 | 36 | #endif /* COMMON_H_ */ 37 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /diffdemo/BsdiffDemo/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 19 | 20 | 21 |