OSDN Git Service

Move extract native libraries to JNI code
authorKenny Root <kroot@google.com>
Tue, 12 Jul 2011 21:14:01 +0000 (14:14 -0700)
committerKenny Root <kroot@google.com>
Tue, 26 Jul 2011 17:14:58 +0000 (10:14 -0700)
commit49a65e5526ed3a5353765b3e429c49543d1f3b8c
treeaef4700f9ccea623c3a136c9ea622a5aeef85bb5
parent355240e6db6d8c12765df46481f64cce52b10404
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
include/utils/ZipFileRO.h
libs/utils/tests/Android.mk
libs/utils/tests/ZipFileRO_test.cpp [new file with mode: 0644]