diff options
author | 2022-08-12 06:52:18 +0000 | |
---|---|---|
committer | 2022-08-12 07:23:03 +0000 | |
commit | 7cc22bb96e4e05cf63661eed7fd3dda5304bdacc (patch) | |
tree | b39731daca19a3873c32bc9147147fd0de77e635 /runtime/native/dalvik_system_DexFile.cc | |
parent | 889403b999b236c055df6e64019dcca8622322fc (diff) |
Revert "Update instrumentation support for non-java debuggable runtimes"
This reverts commit 6ecfa91a040bb1a58e57ad99ab2765cd911e845a.
Reason for revert: Failures on jit-on-first-use config: https://android-build.googleplex.com/builds/submitted/8937466/art-jit-on-first-use/latest/view/logs/build.log
Change-Id: I5d910abf27f5b2dcf3af646b4077af78290c5fdc
Diffstat (limited to 'runtime/native/dalvik_system_DexFile.cc')
-rw-r--r-- | runtime/native/dalvik_system_DexFile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_DexFile.cc b/runtime/native/dalvik_system_DexFile.cc index 9b6fb3e844..d714206241 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->IsJavaDebuggableAtInit()) { + if (!runtime->IsJavaDebuggable()) { ThrowSecurityException("Can't exempt class, process is not debuggable."); return; } |