@@ -88,6 +88,7 @@ namespace edxp {
8888 deopt_boot_image_enabled_ = access (GetConfigPath (" deoptbootimage" ).c_str (), F_OK) == 0 ;
8989 resources_hook_enabled_ = access (GetConfigPath (" disable_resources" ).c_str (), F_OK) != 0 ;
9090 no_module_log_enabled_ = access (GetConfigPath (" disable_modules_log" ).c_str (), F_OK) == 0 ;
91+ hidden_api_bypass_enabled_ = access (GetConfigPath (" disable_hidden_api_bypass" ).c_str (), F_OK) != 0 ;
9192
9293 // use_white_list snapshot
9394 use_white_list_snapshot_ = access (use_whitelist_path_.c_str (), F_OK) == 0 ;
@@ -98,6 +99,7 @@ namespace edxp {
9899 LOGI (" resources hook: %s" , BoolToString (resources_hook_enabled_));
99100 LOGI (" deopt boot image: %s" , BoolToString (deopt_boot_image_enabled_));
100101 LOGI (" no module log: %s" , BoolToString (no_module_log_enabled_));
102+ LOGI (" hidden api bypass: %s" , BoolToString (hidden_api_bypass_enabled_));
101103 if (black_white_list_enabled_) {
102104 SnapshotBlackWhiteList ();
103105 }
@@ -183,6 +185,10 @@ namespace edxp {
183185 return deopt_boot_image_enabled_;
184186 }
185187
188+ ALWAYS_INLINE bool ConfigManager::IsHiddenAPIBypassEnabled () const {
189+ return hidden_api_bypass_enabled_;
190+ }
191+
186192 ALWAYS_INLINE std::string ConfigManager::GetInstallerPackageName () const {
187193 return installer_pkg_name_;
188194 }
0 commit comments