Make libcrypto_static visible for com.android.neuralnetworks
This reduces com.android.neuralnetworks APEX size and memory use.
After moving libneuralnetworks.so to an APEX module, it can't use
the system libcrypto.so. This results in a copy of the libcrypto.so
being added to the com.android.neuralnetworks APEX. By switching to
static version of libcrypto, we link in just the required SHA functions.
Test: Flashed pixel device & run NNAPI tests.
Bug: 140440028
Change-Id: I8be6c7114df01f0049f724a0daf3912fa3ab1837
diff --git a/Android.bp b/Android.bp
index adb238f..d26dd3d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -186,7 +186,7 @@
"//bootable/recovery/updater",
"//external/conscrypt",
"//external/python/cpython2",
- "//frameworks/ml/nn/runtime/test",
+ "//frameworks/ml/nn/runtime:__subpackages__",
"//hardware/interfaces/confirmationui/1.0/vts/functional",
"//hardware/interfaces/drm/1.0/vts/functional",
"//hardware/interfaces/drm/1.2/vts/functional",