OSDN Git Service

Reimplement ZipFileRO in terms of libziparchive.
authorNarayan Kamath <narayan@google.com>
Tue, 3 Dec 2013 13:16:03 +0000 (13:16 +0000)
committerAdam Lesinski <adamlesinski@google.com>
Mon, 27 Jan 2014 18:31:09 +0000 (10:31 -0800)
commit9636071bdc29df0ed5d801d0499bdb76abade1db
tree00854f2333fa0c45f11497891b3437c215637ef0
parentcd28bd37ea2d88dd72930f032ca73daaad5744b4
Reimplement ZipFileRO in terms of libziparchive.

This lets us share zip archive processing code with both
the runtime (Art, dalvik) and critical java code
(StrictJarFile).

This change also moves several utility methods to ZipUtils
and dedups code across several zip inflation methods.

One of the side effects of this change is that several
processing loops are now O(n) instead of O(n^2).

bug: 10193060

(cherry picked from commit e9d380f9303692950166472b1dfab083e1af8133)

Change-Id: I53e7d0c0af266cb1fe4e293e1177b2590cc44224
tools/aapt/Android.mk