summaryrefslogtreecommitdiff
path: root/runtime/native/dalvik_system_DexFile.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2022-08-10 04:34:22 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-08-10 04:34:22 +0000
commit7d97b03d77ad3ede77813cec449f9f333da6ac18 (patch)
treec1dddd4d2efba7ad5fcd395807591f35e2f0ebcd /runtime/native/dalvik_system_DexFile.cc
parentf5545a9773fbd676795f4366039326088921abcb (diff)
parent6ecfa91a040bb1a58e57ad99ab2765cd911e845a (diff)
Update instrumentation support for non-java debuggable runtimes am: 6ecfa91a04
Original change: https://android-review.googlesource.com/c/platform/art/+/2169088 Change-Id: I1086ee1b27c5a86b4d8a2af14ffe1d52c9044c4d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'runtime/native/dalvik_system_DexFile.cc')
-rw-r--r--runtime/native/dalvik_system_DexFile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_DexFile.cc b/runtime/native/dalvik_system_DexFile.cc
index d714206241..9b6fb3e844 100644
--- a/runtime/native/dalvik_system_DexFile.cc
+++ b/runtime/native/dalvik_system_DexFile.cc
@@ -904,7 +904,7 @@ static void DexFile_setTrusted(JNIEnv* env, jclass, jobject j_cookie) {
ScopedObjectAccess soa(env);
// Currently only allow this for debuggable apps.
- if (!runtime->IsJavaDebuggable()) {
+ if (!runtime->IsJavaDebuggableAtInit()) {
ThrowSecurityException("Can't exempt class, process is not debuggable.");
return;
}