summaryrefslogtreecommitdiffstats
path: root/runtime/dex_file.h
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-08-29 09:36:15 -0700
committerBrian Carlstrom <bdc@google.com>2013-08-29 09:45:43 -0700
commite0948e13d5a4552e6a2728087573c07961e4a4f9 (patch)
tree6162dd8b5e4f05c00f5414e10d1b1ab6fba61a0d /runtime/dex_file.h
parenta7d56cf5e0fe6da41969f6dd841aef0d73f09d93 (diff)
downloadart-e0948e13d5a4552e6a2728087573c07961e4a4f9.zip
art-e0948e13d5a4552e6a2728087573c07961e4a4f9.tar.gz
art-e0948e13d5a4552e6a2728087573c07961e4a4f9.tar.bz2
Make DexFiles opened from files readonly by default, but writable during dex2oat
Bug: 9618388 Change-Id: I83f2e16ee8446a79a94a84971146d807bb0c9ee0
Diffstat (limited to 'runtime/dex_file.h')
-rw-r--r--runtime/dex_file.h4
1 files changed, 2 insertions, 2 deletions
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 @@ class DexFile {
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