diff options
Diffstat (limited to 'runtime/sdk_checker.h')
-rw-r--r-- | runtime/sdk_checker.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/sdk_checker.h b/runtime/sdk_checker.h index 29cb98d538..8d82237a60 100644 --- a/runtime/sdk_checker.h +++ b/runtime/sdk_checker.h @@ -60,10 +60,15 @@ class SdkChecker { // Similar to ShouldDenyAccess(ArtMethod* art_method). bool ShouldDenyAccess(const char* type_descriptor) const; + // Enabled/Disable the checks. + void SetEnabled(bool enabled) { enabled_ = enabled; } + private: SdkChecker(); std::vector<std::unique_ptr<const DexFile>> sdk_dex_files_; + + bool enabled_; }; } // namespace art |