diff --git a/app/build.gradle b/app/build.gradle index f4cf7568..58239e10 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -49,7 +49,7 @@ preBuild { } dependencies { - provided fileTree(include: ['*.jar'], dir: 'libs') + provided fileTree(include: ['android.jar', 'libcore.jar'], dir: 'libs') - compile group: 'commons-io', name: 'commons-io', version: '2.6' + compile fileTree(include: ['commons-io-2.6.jar'], dir: 'libs') } diff --git a/app/libs/commons-io-2.6.jar b/app/libs/commons-io-2.6.jar new file mode 100644 index 00000000..00556b11 Binary files /dev/null and b/app/libs/commons-io-2.6.jar differ diff --git a/app/src/main/Android.mk b/app/src/main/Android.mk index 124eda74..b83908e9 100644 --- a/app/src/main/Android.mk +++ b/app/src/main/Android.mk @@ -22,6 +22,13 @@ LOCAL_MODULE_TAGS := optional LOCAL_REQUIRED_MODULES := permissions_com.stevesoltys.backup.xml whitelist_com.stevesoltys.backup.xml LOCAL_PRIVILEGED_MODULE := true LOCAL_PRIVATE_PLATFORM_APIS := true +LOCAL_STATIC_JAVA_LIBRARIES := commons-io LOCAL_SRC_FILES := $(call all-java-files-under, java) LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res include $(BUILD_PACKAGE) + +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ + commons-io:../../libs/commons-io-2.6.jar +include $(BUILD_MULTI_PREBUILT) \ No newline at end of file