diff options
Diffstat (limited to 'runtime/oat.cc')
| -rw-r--r-- | runtime/oat.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/oat.cc b/runtime/oat.cc index c787b9adb1..4948558f84 100644 --- a/runtime/oat.cc +++ b/runtime/oat.cc @@ -466,6 +466,10 @@ bool OatHeader::IsDebuggable() const { return IsKeyEnabled(OatHeader::kDebuggableKey); } +bool OatHeader::IsExtractOnly() const { + return IsKeyEnabled(OatHeader::kExtractOnlyKey); +} + bool OatHeader::IsKeyEnabled(const char* key) const { const char* key_value = GetStoreValueByKey(key); return (key_value != nullptr && strncmp(key_value, kTrueValue, sizeof(kTrueValue)) == 0); |