summaryrefslogtreecommitdiff
path: root/libdexfile/dex/dex_file_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdexfile/dex/dex_file_loader.h')
-rw-r--r--libdexfile/dex/dex_file_loader.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libdexfile/dex/dex_file_loader.h b/libdexfile/dex/dex_file_loader.h
index 9b5f7d56cd..1c7348214f 100644
--- a/libdexfile/dex/dex_file_loader.h
+++ b/libdexfile/dex/dex_file_loader.h
@@ -23,6 +23,7 @@
#include <optional>
#include <string>
#include <string_view>
+#include <utility>
#include <vector>
#include "base/os.h"
@@ -72,6 +73,15 @@ class DexFileLoader {
// index == 0, and dex_location + multi-dex-separator + GetMultiDexClassesDexName(index) else.
static std::string GetMultiDexLocation(size_t index, const char* dex_location);
+ // Returns the multidex location and the checksum for each dex file in a zip or a dex container.
+ //
+ // This uses the source path provided to DexFileLoader constructor.
+ //
+ // Returns false on error.
+ bool GetMultiDexChecksums(/*out*/ std::vector<std::pair<std::string, uint32_t>>* checksums,
+ /*out*/ std::string* error_msg,
+ /*out*/ bool* only_contains_uncompressed_dex = nullptr);
+
// Returns combined checksum of one or more dex files (one checksum for the whole multidex set).
//
// This uses the source path provided to DexFileLoader constructor.