diff options
Diffstat (limited to 'runtime/runtime.h')
| -rw-r--r-- | runtime/runtime.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index ca93e2421f..a98e8a81ed 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -579,6 +579,18 @@ class Runtime { return hidden_api_access_event_log_rate_; } + const std::string& GetProcessPackageName() const { + return process_package_name_; + } + + void SetProcessPackageName(const char* package_name) { + if (package_name == nullptr) { + process_package_name_.clear(); + } else { + process_package_name_ = package_name; + } + } + bool IsDexFileFallbackEnabled() const { return allow_dex_file_fallback_; } @@ -1031,10 +1043,13 @@ class Runtime { // when there is a warning. This is only used for testing. bool always_set_hidden_api_warning_flag_; - // How often to log hidden API access to the event log. An integer between 0 (never) - // and 0x10000 (always). + // How often to log hidden API access to the event log. An integer between 0 + // (never) and 0x10000 (always). uint32_t hidden_api_access_event_log_rate_; + // The package of the app running in this process. + std::string process_package_name_; + // Whether threads should dump their native stack on SIGQUIT. bool dump_native_stack_on_sig_quit_; |