Add installd support to dex2oat
Change-Id: Id1a64403ccea7dc2c1e8b8340d33d383d4045a33
diff --git a/src/dex_file.h b/src/dex_file.h
index a0363b0..2ca4308 100644
--- a/src/dex_file.h
+++ b/src/dex_file.h
@@ -18,6 +18,8 @@
namespace art {
+class ZipArchive;
+
// TODO: move all of the macro functionality into the DexCache class.
class DexFile {
public:
@@ -189,6 +191,9 @@
return OpenMemory(base, length, location, NULL);
}
+ // Opens .dex file from the classes.dex in a zip archive
+ static const DexFile* Open(const ZipArchive& zip_archive, const std::string& location);
+
// Closes a .dex file.
virtual ~DexFile();