Revamp vdex format for better extensibility.
- Remove class loader context and boot classpath checksum sections.
Those are not needed now that VerifierDeps don't depend on them.
- Remove remaining quickening encoding.
- Introduce sections in a vdex file, which can be extended without
requiring a version change.
Test: test.py
Bug: 160294863
Change-Id: I4e3e25f34d242dc4de37f30ba9d78bcffbc1436d
diff --git a/runtime/oat_file_assistant.cc b/runtime/oat_file_assistant.cc
index 0fee0ef..245ae36 100644
--- a/runtime/oat_file_assistant.cc
+++ b/runtime/oat_file_assistant.cc
@@ -337,7 +337,7 @@
return true;
}
- uint32_t number_of_dex_files = file.GetVerifierDepsHeader().GetNumberOfDexFiles();
+ uint32_t number_of_dex_files = file.GetNumberOfDexFiles();
if (required_dex_checksums->size() != number_of_dex_files) {
*error_msg = StringPrintf("expected %zu dex files but found %u",
required_dex_checksums->size(),