History log of /art/libdexfile/dex/dex_file_loader.cc
Revision Date Author Comments
16cb948fb9b4df4b169729dc6911c041884cb667 10-May-2018 Nicolas Geoffray <ngeoffray@google.com> Handle multidex in LocationIsOnSystemFramework.

bug: 79111915
Test: art_dex_file_loader_test.cc

(cherry picked from commit 0d0f3164160e50ddb78022f662c5438fc167f50d)

Change-Id: I1ee65e6a410f2a7610d0bf210eacd3cf3df13b18
e8a494d5937ed9d2a05be6cdb888b6784f14f733 22-Mar-2018 Mathieu Chartier <mathieuc@google.com> Run dex verifier for OOB + compact-dex-level combination

Previously, there was logic to not run the dex verifier if
compact-dex-level was not "none". The idea was that the dex writing
would have run the verifier. This caused issues for OOB APKs since
these don't write out the DEX. This CL moves the dex verifier
avoidance logic to the dex loader for the compact dex input case.

Bug: 75970654
Test: test-art-host

(cherry picked from commit d45863a976c2fd10cf179d8ff42926a7a37c70f0)

Merged-In: Ic7af6857edb8f7d8e449fee6a544f184aad79b3a
Change-Id: I755e706822db189373b3f6983e5f6ceaae5f98ed
66ff8a8b82ff103d48d40e8dad01342c2d6f6d0d 28-Feb-2018 Nicolas Geoffray <ngeoffray@google.com> Revert "Revert "Full-stack integrity: check vdex contents.""

bug: 30972906

Initial revert due to 'check' file of the test needing updating for target tests.

This reverts commit a19b7649faf8780737be7ce3ec48a12d81c6d69f.

Change-Id: I455780bd88cd89ff80c9084d399e2beeb819b95f
a19b7649faf8780737be7ce3ec48a12d81c6d69f 27-Feb-2018 Nicolas Geoffray <ngeoffray@google.com> Revert "Full-stack integrity: check vdex contents."

bug: 30972906

Test fails on device.

This reverts commit d6f914ea4bd09f2d60db2783f7a3fd93d3ec0afb.

Change-Id: I53902b0d6d4dbe8237f61bf01542acf538229c71
d6f914ea4bd09f2d60db2783f7a3fd93d3ec0afb 15-Feb-2018 Nicolas Geoffray <ngeoffray@google.com> Full-stack integrity: check vdex contents.

For priv-apps, if a vdex on /data has dex code, it must
be because the APK has compressed dex code.

Fall back to APK if not.

For test convenience, update --copy-dex-files to also
take a "always" variant.

bug: 30972906
Test: 677-fsi

Change-Id: I49f0eab46650145316a86de2971a3b9c140bcff7
ccb0019c9c60617dcd420c6c92a931e1d82c4920 18-Feb-2018 George Burgess IV <gbiv@google.com> Fix a memory leak

dex_file is meant to take ownership of `container`. There's at least
one path (`error_msg = "Invalid or truncated dex file";`) where
`container` never gets passed along to a dex_file.

Caught by the static analyzer:
art/runtime/dex/dex_file_loader.cc:406:45: warning: Potential memory
leak

Bug: None
Test: Reran the analyzer. Memory leak complaints are gone.
Change-Id: Ib57008e444d32b366bb2beabec8e39b8e84fd9db
334b9d73482fba9c335d9b758041fc0865ef74d4 13-Feb-2018 David Sehr <sehr@google.com> Move libdexfile out of runtime

Move the files out of runtime, leaving unfortunate dependences still
there on runtime/base (for the moment). Also separates the build logic
into two Android.bp files.

Bug: 22322814
Test: make -j 50 test-art-host
Change-Id: Ib0a1cda833b29ecfa4c8c50f23fab89ba666f491