summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.h
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-01-31 16:10:13 +0800
committer Treehugger Robot <treehugger-gerrit@google.com> 2023-02-06 14:18:01 +0000
commit6f915c7388797cdaabaf4df2bef3b66413942948 (patch)
tree8634706f13bcd084dcf313fe69c594139ec6788b /compiler/optimizing/loop_optimization.h
parent705172506b04980a89366f395f0fe832faa08c1f (diff)
Do not fail when loading an APK without dex files.
There are some packages that claims to have dex code but actually doesn't. There isn't a way to filter them out using Package Manager APIs. Before this change, when ART Service tries to dexopt them, profman prints annoying errors like "OpenZip failed for ... Entry not found". See details in b/263245950. This CL updates ArtDexFileLoader to just return an empty vector of dex files if the APK doesn't have any dex file. Bug: 263245950 Test: atest art_standalone_libdexfile_tests Test: - 1. adb shell pm art dexopt-package -m speed-profile com.google.android.storagemanager.auto_generated_rro_product__ 2. See no error in the logs. Change-Id: If2c4c923f254fb4c2ae7a579543cc1c429b98ce1 Merged-In: If2c4c923f254fb4c2ae7a579543cc1c429b98ce1 (cherry picked from commit db9a49c27e9ab07b3c851a93165db2695c985841)
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
0 files changed, 0 insertions, 0 deletions