summaryrefslogtreecommitdiff
path: root/runtime/hidden_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/hidden_api.h')
-rw-r--r--runtime/hidden_api.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/hidden_api.h b/runtime/hidden_api.h
index 1eb5e1751f..281c1f3cb3 100644
--- a/runtime/hidden_api.h
+++ b/runtime/hidden_api.h
@@ -29,7 +29,6 @@
#include "mirror/class_loader.h"
#include "reflection.h"
#include "runtime.h"
-#include "well_known_classes.h"
namespace art {
namespace hiddenapi {
@@ -123,7 +122,7 @@ class AccessContext {
if (domain == Domain::kApplication &&
klass->ShouldSkipHiddenApiChecks() &&
- Runtime::Current()->IsJavaDebuggable()) {
+ Runtime::Current()->IsJavaDebuggableAtInit()) {
// Class is known, it is marked trusted and we are in debuggable mode.
domain = ComputeDomain(/* is_trusted= */ true);
}