OpenDelta: fix for 5.1

added missing recovery permission
added setting max_winsize in decoder config

Change-Id: I298d1647f0b34b30d2f3b16e5c8a9dae78b65a1e
This commit is contained in:
maxwen 2015-06-25 22:52:18 +02:00
parent 881df48a24
commit 2c8248f9bd
3 changed files with 32 additions and 4 deletions

View File

@ -16,17 +16,18 @@
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
<uses-permission android:name="android.permission.REBOOT" />
<uses-permission android:name="android.permission.RECOVERY" />
<application
android:name="eu.chainfire.opendelta.Application"
android:allowBackup="false"
android:label="@string/app_name"
android:theme="@style/Theme.OpenDelta"
android:icon="@drawable/ic_launcher_settings" >
<activity
android:name="eu.chainfire.opendelta.MainActivity"
android:label="@string/title"

View File

@ -11,3 +11,29 @@ LOCAL_C_INCLUDES += external/zlib
LOCAL_SHARED_LIBRARIES := libz
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_CFLAGS += -Ofast
LOCAL_MODULE := dedelta
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES += xdelta3-3.0.7/xdelta3.c delta.c delta_run.c
LOCAL_LDLIBS := -lz
LOCAL_C_INCLUDES += external/zlib
LOCAL_SHARED_LIBRARIES := libz
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_CFLAGS += -Ofast
LOCAL_MODULE := zipadjust
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES += zipadjust.c zipadjust_run.c
LOCAL_LDLIBS := -lz
LOCAL_C_INCLUDES += external/zlib
LOCAL_SHARED_LIBRARIES := libz
include $(BUILD_EXECUTABLE)

View File

@ -62,6 +62,7 @@ int dedelta(char* filenameSource, char* filenameDelta, char* filenameOut) {
source.blksize = CHUNK;
source.curblkno = (xoff_t) -1;
source.curblk = bsource;
source.max_winsize = CHUNK;
ret = xd3_set_source (&stream, &source);