Make DexFiles opened from files readonly by default, but writable during dex2oat

Bug: 9618388
Change-Id: I83f2e16ee8446a79a94a84971146d807bb0c9ee0
diff --git a/runtime/dex_file.h b/runtime/dex_file.h
index 006b692..26635ae 100644
--- a/runtime/dex_file.h
+++ b/runtime/dex_file.h
@@ -805,9 +805,9 @@
 
   bool IsReadOnly() const;
 
-  bool EnableWrite(uint8_t* addr, size_t size) const;
+  bool EnableWrite() const;
 
-  bool DisableWrite(uint8_t* addr, size_t size) const;
+  bool DisableWrite() const;
 
  private:
   // Opens a .dex file