summaryrefslogtreecommitdiffstats
path: root/core/jni/Android.mk
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-07-12 14:14:01 -0700
committerKenny Root <kroot@google.com>2011-07-26 10:14:58 -0700
commit66269ea6f68f2f25888ce1080c94ac782742fafc (patch)
tree0ecbefcdbecf98cbacd428a422e6a2a846ac726e /core/jni/Android.mk
parente432a0005180ba9ac2c1d7822c4761b475fddc51 (diff)
downloadframeworks_base-66269ea6f68f2f25888ce1080c94ac782742fafc.zip
frameworks_base-66269ea6f68f2f25888ce1080c94ac782742fafc.tar.gz
frameworks_base-66269ea6f68f2f25888ce1080c94ac782742fafc.tar.bz2
Move extract native libraries to JNI code
The built-in ZipFile class was quite a long time to find an unpack libraries. Move everything to using the libutils ZipFileRO class that goes quite a bit faster. Initial measurements are 6 times faster than the Java code. Also, read files off the disk and compare their CRC against the APK's CRC to see if we need to write the new file to disk. This also cuts down the bootup time by up to a second per APK that has native files. Change-Id: Ic464a7969a17368fb6a6b81d026888c4136c7603
Diffstat (limited to 'core/jni/Android.mk')
-rw-r--r--core/jni/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/jni/Android.mk b/core/jni/Android.mk
index 514e59d..6e73889 100644
--- a/core/jni/Android.mk
+++ b/core/jni/Android.mk
@@ -29,6 +29,7 @@ LOCAL_SRC_FILES:= \
ActivityManager.cpp \
AndroidRuntime.cpp \
Time.cpp \
+ com_android_internal_content_NativeLibraryHelper.cpp \
com_google_android_gles_jni_EGLImpl.cpp \
com_google_android_gles_jni_GLImpl.cpp.arm \
android_app_NativeActivity.cpp \
@@ -178,6 +179,7 @@ LOCAL_C_INCLUDES += \
external/icu4c/common \
external/jpeg \
external/harfbuzz/src \
+ external/zlib \
frameworks/opt/emoji \
libcore/include
@@ -211,6 +213,7 @@ LOCAL_SHARED_LIBRARIES := \
libnfc_ndef \
libusbhost \
libharfbuzz \
+ libz \
ifeq ($(USE_OPENGL_RENDERER),true)
LOCAL_SHARED_LIBRARIES += libhwui