Conscrypt APEX: Add linker config for boringssl_self_test{32,64}.

Those binaries need to load the copy of libcrypto from the APEX,
as opposed to the copy in /system/lib.

Test: Checked that this CL makes some of the SELinux denials
      that would otherwise be introduced by disappear.
Bug: 137267623
Change-Id: I242e5d5635e6c987abdfa602020acd3e18493ce8
2 files changed
tree: 1edb600e00c607fa2144637bdeb9ce4d91ddb79c
  1. .clang-format
  2. .gitignore
  3. .travis.yml
  4. Android.bp
  8. CPPLINT.cfg
  12. NOTICE
  13. OWNERS
  14. PREUPLOAD.cfg
  17. android-stub/
  18. android/
  19. apex/
  20. api-doclet/
  21. appveyor.yml
  22. benchmark-android/
  23. benchmark-base/
  24. benchmark-graphs/
  25. benchmark-jmh/
  26. build.gradle
  27. common/
  28. constants/
  29. gradle/
  30. gradlew
  31. gradlew.bat
  32. libcore-stub/
  33. licenses/
  34. openjdk-integ-tests/
  35. openjdk-uber/
  36. openjdk/
  37. platform/
  38. publicapi/
  39. release/
  40. repackaged/
  41. settings.gradle
  42. srcgen/
  44. testing/

Conscrypt - A Java Security Provider

Conscrypt is a Java Security Provider (JSP) that implements parts of the Java Cryptography Extension (JCE) and Java Secure Socket Extension (JSSE). It uses BoringSSL to provide cryptographic primitives and Transport Layer Security (TLS) for Java applications on Android and OpenJDK. See the capabilities documentation for detailed information on what is provided.

The core SSL engine has borrowed liberally from the Netty project and their work on netty-tcnative, giving Conscrypt similar performance.


Conscrypt supports Java 7 or later on OpenJDK and Gingerbread (API Level 9) or later on Android. The build artifacts are available on Maven Central.

Download JARs

You can download the JARs directly from the Maven repositories.

OpenJDK (i.e. non-Android)

Native Classifiers

The OpenJDK artifacts are platform-dependent since each embeds a native library for a particular platform. We publish artifacts to Maven Central for the following platforms:

linux-x86_64Linuxx86_64 (64-bit)
osx-x86_64Macx86_64 (64-bit)
windows-x86Windowsx86 (32-bit)
windows-x86_64Windowsx86_64 (64-bit)


Use the os-maven-plugin to add the dependency:




Use the osdetector-gradle-plugin (which is a wrapper around the os-maven-plugin) to add the dependency:

buildscript {
  repositories {
  dependencies {
    classpath ''

// Use the osdetector-gradle-plugin
apply plugin: ""

dependencies {
  compile 'org.conscrypt:conscrypt-openjdk:2.2.1:' + osdetector.classifier

Uber JAR

For convenience, we also publish an Uber JAR to Maven Central that contains the shared libraries for all of the published platforms. While the overall size of the JAR is larger than depending on a platform-specific artifact, it greatly simplifies the task of dependency management for most platforms.

To depend on the uber jar, simply use the conscrypt-openjdk-uber artifacts.

dependencies {
  compile 'org.conscrypt:conscrypt-openjdk-uber:2.2.1'


The Android AAR file contains native libraries for x86, x86_64, armeabi-v7a, and arm64-v8a.


dependencies {
  implementation 'org.conscrypt:conscrypt-android:2.2.1'

How to Build

If you are making changes to Conscrypt, see the building instructions.