summaryrefslogtreecommitdiff
path: root/runtime/jni/jni_internal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jni/jni_internal.cc')
-rw-r--r--runtime/jni/jni_internal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jni/jni_internal.cc b/runtime/jni/jni_internal.cc
index f1ea88da4e..588c2cd04d 100644
--- a/runtime/jni/jni_internal.cc
+++ b/runtime/jni/jni_internal.cc
@@ -494,7 +494,7 @@ ArtMethod* FindMethodJNI(const ScopedObjectAccess& soa,
method = c->FindClassMethod(name, sig, pointer_size);
}
if (method != nullptr &&
- ShouldDenyAccessToMember(method, soa.Self(), hiddenapi::AccessMethod::kNone)) {
+ ShouldDenyAccessToMember(method, soa.Self(), hiddenapi::AccessMethod::kCheckWithPolicy)) {
// The resolved method that we have found cannot be accessed due to
// hiddenapi (typically it is declared up the hierarchy and is not an SDK
// method). Try to find an interface method from the implemented interfaces which is