summaryrefslogtreecommitdiffstats
path: root/NativeCode.mk
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2013-11-29 17:59:15 +0000
committerNarayan Kamath <narayan@google.com>2013-12-06 16:44:21 +0000
commit0c1869ed7f46baf764f9daf4e64c77cd7fbd3516 (patch)
treec875291743de77d75acbafceddf98973077f035f /NativeCode.mk
parent41e602b737b920f5599e5e317f0b90e8e37ff2ff (diff)
downloadlibcore-0c1869ed7f46baf764f9daf4e64c77cd7fbd3516.zip
libcore-0c1869ed7f46baf764f9daf4e64c77cd7fbd3516.tar.gz
libcore-0c1869ed7f46baf764f9daf4e64c77cd7fbd3516.tar.bz2
Add a JNI wrapper over libziparchive.
All functions delegate directly to the native code. We do not perform any sort of central directory or local file related lookups in the java layer. For each entry, libziparchive gives us an offset to the start of data for the entry and the compressed size. We use a RandomAccessFile to seek to that offset and then construct an InputStream that's bounded between [offset, offset + compressed_size). We reuse existing code (JarVerifier / Manifest) for certificate validation & collection. bug: 10193060 Change-Id: I21eb4e6dc6aa8749e3f63830f9799e1f621d26e6
Diffstat (limited to 'NativeCode.mk')
-rw-r--r--NativeCode.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/NativeCode.mk b/NativeCode.mk
index f8312ae..ec9aca5 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -83,7 +83,7 @@ LOCAL_CPPFLAGS += $(core_cppflags)
LOCAL_SRC_FILES += $(core_src_files)
LOCAL_C_INCLUDES += $(core_c_includes)
LOCAL_SHARED_LIBRARIES += $(core_shared_libraries) libcrypto libexpat libicuuc libicui18n libnativehelper libz
-LOCAL_STATIC_LIBRARIES += $(core_static_libraries)
+LOCAL_STATIC_LIBRARIES += $(core_static_libraries) libziparchive
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libjavacore
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/NativeCode.mk
@@ -123,7 +123,7 @@ ifeq ($(WITH_HOST_DALVIK),true)
LOCAL_MODULE := libjavacore
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/NativeCode.mk
LOCAL_SHARED_LIBRARIES += $(core_shared_libraries) libexpat-host libicuuc-host libicui18n-host libcrypto-host libz-host
- LOCAL_STATIC_LIBRARIES += $(core_static_libraries)
+ LOCAL_STATIC_LIBRARIES += $(core_static_libraries) libziparchive-host
include $(BUILD_HOST_SHARED_LIBRARY)
ifeq ($(LIBCORE_SKIP_TESTS),)