summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2018-03-05 10:54:53 -0800
committer Mathieu Chartier <mathieuc@google.com> 2018-03-05 10:55:35 -0800
commit8b2f3ace473ea130e02c0eb6b899dce07839fc7c (patch)
tree562e697ee04563223e47c310064fe2e9a60dec2e
parent4927ba0f5011b7394e52dca2c3cec52f265f8529 (diff)
Avoid verifying output dex for dexlayout in FixedUpDexFile::Create
Verification will fail if the input dex has hidden API flags. Test: test-art-host Bug: 74063493 Change-Id: Ia0f48a07ac774b0f3409817d4e8134804f9ff849
-rw-r--r--openjdkjvmti/fixed_up_dex_file.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/openjdkjvmti/fixed_up_dex_file.cc b/openjdkjvmti/fixed_up_dex_file.cc
index 16bbee4037..ee83c4a4e8 100644
--- a/openjdkjvmti/fixed_up_dex_file.cc
+++ b/openjdkjvmti/fixed_up_dex_file.cc
@@ -115,6 +115,9 @@ std::unique_ptr<FixedUpDexFile> FixedUpDexFile::Create(const art::DexFile& origi
// this before unquickening.
art::Options options;
options.compact_dex_level_ = art::CompactDexLevel::kCompactDexLevelNone;
+ // Never verify the output since hidden API flags may cause the dex file verifier to fail.
+ // See b/74063493
+ options.verify_output_ = false;
// Add a filter to only include the class that has the matching descriptor.
static constexpr bool kFilterByDescriptor = true;
if (kFilterByDescriptor) {