History log of /frameworks/base/libs/androidfw/ZipFileRO.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ead2088efe305320cf860c4eb60b2b0381930635 05-Aug-2015 Yusuke Sato <yusukes@google.com> Fix build breakage caused by r.android.com/162907

Change-Id: Ifeb7b57ce79f3d8c0edadf03d14853e72840d49e
/frameworks/base/libs/androidfw/ZipFileRO.cpp
3251f2aab75c8c905cc59b428d99812b5575ebdb 05-Aug-2015 Yusuke Sato <yusukes@google.com> am 3383b141: am a024acb8: Merge "Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files"

* commit '3383b141c3ac4426279e649ebcee535890203c3f':
Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files
957c23775f46c26142bc6d4f9a592ac4586a9ef8 04-Aug-2015 Yusuke Sato <yusukes@google.com> Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files

for better performance. Without the optimization, these two functions
may check more than 100k file names in the pre-installed APK files,
which can take a few seconds to finish even on a recent device.

(cherry-pick of 34fe3df8519523dbb4bc27010fa57f259d5e868d)

Bug: 21957428
Change-Id: I5ebe0438019958d883a7fda6bd92ea4484211d23
/frameworks/base/libs/androidfw/ZipFileRO.cpp
53a19bb967f45ddfb80699865dc30094024343f6 29-Jun-2015 Yusuke Sato <yusukes@google.com> resolved conflicts for merge of d3d6e9a3 to mnc-dev-plus-aosp

Change-Id: Ie32db11e6c1062df32b16a5cd6fcd219e0bdc017
f162faaa1266ad38c293e1e54911e389f39c2654 25-Jun-2015 Yusuke Sato <yusukes@google.com> Rename ZipEntryName to ZipString

Also add a 4th parameter to StartIteration(). This is for
https://android-review.googlesource.com/#/c/156771/.

Bug: 21957428
Change-Id: Ifbf9aec2f04b214b57e99c306282d7c0d39675a9
/frameworks/base/libs/androidfw/ZipFileRO.cpp
34fe3df8519523dbb4bc27010fa57f259d5e868d 20-Jun-2015 Yusuke Sato <yusukes@google.com> Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files

for better performance. Without the optimization, these two functions
may check more than 100k file names in the pre-installed APK files,
which can take a few seconds to finish even on a recent device.

Bug: 21957428
Change-Id: I315fd3c6d5aa1076b993752525de449a9933de12
/frameworks/base/libs/androidfw/ZipFileRO.cpp
407753c456c1eb2c8556ae7891b6bef43b044e76 16-Jun-2015 Narayan Kamath <narayan@google.com> ZipFileRO: Use precise widths for zip file types.

getEntryInfo crashes on 64-bit devices because "long" types
were being passed int pointers (that pointed to a stack frame)
that were reinterpret_cast'ed to long* (sigh.). To fix this issue
once and for all, use types with explicitly defined widths.

This change also removes some dead invariant checking from
Asset.cpp instead of cleaning it up.

Note that we've introduced a wart in NativeLibraryHelper, where
we need to deal with zlib's uLong type, which is "at least 32 bits
wide".

bug: 21622286

(cherry picked from commit 4600dd053dbdbd4b95f3b11057a1cc55b99f9c77)

Change-Id: I7886cb37a229cc27c625699c80e6a6a6117d2203
/frameworks/base/libs/androidfw/ZipFileRO.cpp
4600dd053dbdbd4b95f3b11057a1cc55b99f9c77 16-Jun-2015 Narayan Kamath <narayan@google.com> ZipFileRO: Use precise widths for zip file types.

getEntryInfo crashes on 64-bit devices because "long" types
were being passed int pointers (that pointed to a stack frame)
that were reinterpret_cast'ed to long* (sigh.). To fix this issue
once and for all, use types with explicitly defined widths.

This change also removes some dead invariant checking from
Asset.cpp instead of cleaning it up.

Note that we've introduced a wart in NativeLibraryHelper, where
we need to deal with zlib's uLong type, which is "at least 32 bits
wide".

bug: 21622286

Change-Id: Iae675a9601db7aae03a8b80b40321d2cc1d97f50
/frameworks/base/libs/androidfw/ZipFileRO.cpp
5a7587fa90732c013bb9266f1bdae0a557455c15 11-May-2015 Narayan Kamath <narayan@google.com> Fix file descriptor leak when opening invalid archives.

I've inspected all other callers of OpenArchive and this seems
to be the only broken one. The easiest way to reproduce this is
by using getPackageArchiveInfo or by adding an asset path that
isn't a valid APK.

bug: https://code.google.com/p/android/issues/detail?id=171099
Change-Id: I41cd85d20f26ad47968e2a6f1384cc03330b558b
/frameworks/base/libs/androidfw/ZipFileRO.cpp
688ff4cf0f93d1a886437884f23874e5595d59a3 23-Feb-2015 Narayan Kamath <narayan@google.com> Track removal of refcounts from FileMap.

Use delete instead of release.

Change-Id: I25c841b368aa9d51e9259399b94cafa2bbb7a076
/frameworks/base/libs/androidfw/ZipFileRO.cpp
2204f0bf56af53b588a01701b8cf9cd05b1b3ff9 22-Oct-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Wall Werror in libs/androidfw

Turn on -Wall -Werror in libs/androidfw. Fix warnings. Refactor
some code.

Change-Id: I66fe54ace433c15dee5de328b149ca142f74b2dd
/frameworks/base/libs/androidfw/ZipFileRO.cpp
e2134a4b5dafc37f2de7e9b4190819f24aac207c 13-Aug-2014 Piotr Jastrzebski <haaawk@google.com> Update ziparchive usage to the new API.

Bug: 16162465

Change-Id: If3064e2be3e7e85366b07434294a7879b0e5f9bc
/frameworks/base/libs/androidfw/ZipFileRO.cpp
1a68b079d714b1de52775e1153359f2867340754 08-Aug-2014 Piotr Jastrzebski <haaawk@google.com> Remove memory leak.

Call EndIteration in endIteration to free memory allocated for cookie in
StartIteration.

Change-Id: I3d58a461c2f3676565cfd7922dc6d8d5c35feae9
/frameworks/base/libs/androidfw/ZipFileRO.cpp
afd31e08299008fdc5c2813f21b2573f29dc53df 03-Dec-2013 Narayan Kamath <narayan@google.com> 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

Change-Id: I3c7188496837a47246c4f342e45485a70fef3169
/frameworks/base/libs/androidfw/ZipFileRO.cpp
1c7cf90af4d81e609dcb6b0f9afa5787e2a8a344 12-Sep-2013 Kenny Root <kroot@google.com> Fix another off-by-one error in ZipFileRO

Bug: 10424836
Change-Id: I491458bd31ef39e87127d061427b32a3d59ac807
/frameworks/base/libs/androidfw/ZipFileRO.cpp
0d6c2d7b9db209d740992045dd3b842e52306598 21-Aug-2013 Kenny Root <kroot@google.com> Reconcile differences between zip implementations

Reconcile the difference between ZipFileRO and java.util.ZipFile to have
the same behavior.

Bug: 10424836
Change-Id: I6bde1bad7e20065ee650945fd43a913c05ce5ac7
/frameworks/base/libs/androidfw/ZipFileRO.cpp
0c4b3646b0feb1bed89bf374ff03af797834d8c3 11-Sep-2013 Kenny Root <kroot@google.com> Revert "Reconcile differences between zip implementations"

This reverts commit 9ffddc7eb50653cf60ce6b27a0e1945eed5b5ce1.

Change-Id: Ifeba63511211bfc2b375f2205e319e91403b7d06
/frameworks/base/libs/androidfw/ZipFileRO.cpp
9ffddc7eb50653cf60ce6b27a0e1945eed5b5ce1 21-Aug-2013 Kenny Root <kroot@google.com> Reconcile differences between zip implementations

Reconcile the difference between ZipFileRO and java.util.ZipFile to have
the same behavior.

Bug: 10424836
Change-Id: Iff159c9e1a91b59f6c5346dc0278cb9e4bbc1a39
/frameworks/base/libs/androidfw/ZipFileRO.cpp
1f5762e646bed2290934280464832782766ee68e 07-May-2013 Mathias Agopian <mathias@google.com> libutils clean-up

Change-Id: I11ee943da23a66828455a9770fc3c5ceb4bbcaa9
/frameworks/base/libs/androidfw/ZipFileRO.cpp
a982dc05d7ca919c07f50e446549ef9dceadf6bd 23-Mar-2012 Colin Cross <ccross@android.com> frameworks/base: move Zip* from libandroidfw to libutils

ZipUtils is needed by build/tools, move it from libandroidfw
(frameworks/base) to libutils (frameworks/native).

Change-Id: I2b4b7adcdf68eb25ee7cba5dd3b69eadf0523af3
/frameworks/base/libs/androidfw/ZipFileRO.cpp
83c64e6b624a876436d2ef5d2f173b10407e27b4 21-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring

create the new libandroidfw from parts of libui and libutils

Change-Id: I1584995616fff5d527a2aba63921b682a6194d58
/frameworks/base/libs/androidfw/ZipFileRO.cpp