summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/well_known_classes.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/well_known_classes.cc b/runtime/well_known_classes.cc
index f4f5420190..5fe10f5c12 100644
--- a/runtime/well_known_classes.cc
+++ b/runtime/well_known_classes.cc
@@ -278,12 +278,6 @@ uint32_t WellKnownClasses::StringInitToEntryPoint(ArtMethod* string_init) {
#undef STRING_INIT_LIST
void WellKnownClasses::Init(JNIEnv* env) {
- // The following initializers use JNI to get handles on hidden methods/fields.
- // Temporarily disable hidden API checks as they would see these calls coming
- // from an unattached thread and assume the caller is not in boot class path.
- const bool hidden_api_checks_enabled = Runtime::Current()->AreHiddenApiChecksEnabled();
- Runtime::Current()->SetHiddenApiChecksEnabled(false);
-
dalvik_annotation_optimization_CriticalNative =
CacheClass(env, "dalvik/annotation/optimization/CriticalNative");
dalvik_annotation_optimization_FastNative = CacheClass(env, "dalvik/annotation/optimization/FastNative");
@@ -407,9 +401,6 @@ void WellKnownClasses::Init(JNIEnv* env) {
InitStringInit(env);
Thread::Current()->InitStringEntryPoints();
-
- // Reenable hidden API checks if necessary.
- Runtime::Current()->SetHiddenApiChecksEnabled(hidden_api_checks_enabled);
}
void WellKnownClasses::LateInit(JNIEnv* env) {