summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--support/src/test/java/libcore/java/security/CpuFeatures.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/src/test/java/libcore/java/security/CpuFeatures.java b/support/src/test/java/libcore/java/security/CpuFeatures.java
index 319056a6d0..28b4321b1c 100644
--- a/support/src/test/java/libcore/java/security/CpuFeatures.java
+++ b/support/src/test/java/libcore/java/security/CpuFeatures.java
@@ -47,6 +47,7 @@ public class CpuFeatures {
try {
Class<?> nativeCrypto = Class.forName("com.android.org.conscrypt.NativeCrypto");
Method EVP_has_aes_hardware = nativeCrypto.getDeclaredMethod("EVP_has_aes_hardware");
+ EVP_has_aes_hardware.setAccessible(true);
return ((Integer) EVP_has_aes_hardware.invoke(null)) == 1;
} catch (ClassNotFoundException | NoSuchMethodException | SecurityException
| IllegalAccessException | IllegalArgumentException ignored) {