From 778800e334a3fd0f29dbeabad114032bc849a9d1 Mon Sep 17 00:00:00 2001 From: Mythri Alle Date: Wed, 14 Sep 2022 12:13:07 +0000 Subject: Revert "Reland "Update instrumentation support for non-java debuggable runtimes"" This reverts commit 322ef183e602f304e3d093c083490dd2e766b254. Reason for revert: Failures on art-tracing: https://android-build.googleplex.com/builds/submitted/9062353/art-tracing/latest/view/logs/build_error.log Change-Id: I59f39e2833b63be15e7507a53ddb5ff6a30d55f3 --- runtime/native/dalvik_system_VMDebug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/native/dalvik_system_VMDebug.cc') diff --git a/runtime/native/dalvik_system_VMDebug.cc b/runtime/native/dalvik_system_VMDebug.cc index 1d5ac02c8b..2e09c9f2fe 100644 --- a/runtime/native/dalvik_system_VMDebug.cc +++ b/runtime/native/dalvik_system_VMDebug.cc @@ -466,7 +466,7 @@ static void VMDebug_allowHiddenApiReflectionFrom(JNIEnv* env, jclass, jclass j_c Runtime* runtime = Runtime::Current(); ScopedObjectAccess soa(env); - if (!runtime->IsJavaDebuggableAtInit()) { + if (!runtime->IsJavaDebuggable()) { ThrowSecurityException("Can't exempt class, process is not debuggable."); return; } -- cgit v1.2.3-59-g8ed1b