summaryrefslogtreecommitdiff
path: root/runtime/native/dalvik_system_DexFile.cc
diff options
context:
space:
mode:
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 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;
}