Clean up kAccWritable in the verifier.
kAccVerifier was deprecated, instead memory permissions were used in its
stead.
Move dead code scanning in the verifier to be enabled when the results
will be logged.
Change-Id: Id20e62eefe958bd577b86bd7396a439d7a01c1b3
diff --git a/src/dex_file.h b/src/dex_file.h
index 993716c..f1f76a8 100644
--- a/src/dex_file.h
+++ b/src/dex_file.h
@@ -789,6 +789,14 @@
void ChangePermissions(int prot) const;
+ int GetPermissions() const {
+ if (mem_map_.get() == NULL) {
+ return 0;
+ } else {
+ return mem_map_->GetProtect();
+ }
+ }
+
private:
// Opens a .dex file
static const DexFile* OpenFile(const std::string& filename,