diff options
author | Brian Carlstrom <bdc@google.com> | 2013-08-29 09:36:15 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-08-29 09:45:43 -0700 |
commit | e0948e13d5a4552e6a2728087573c07961e4a4f9 (patch) | |
tree | 6162dd8b5e4f05c00f5414e10d1b1ab6fba61a0d /runtime/dex_file.h | |
parent | a7d56cf5e0fe6da41969f6dd841aef0d73f09d93 (diff) | |
download | art-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.h | 4 |
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 |