aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2018-04-27 00:04:21 +0100
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-05-02 20:00:00 +0200
commita7c7805f200e03976c7e74980107cce6b82ca61f (patch)
tree496ac18b5384d103b9c21da052b469276657a4c2
parentd43d47a9523a1338595a0c7080ab6fdfcae87688 (diff)
msm8996-common: List additional native libraries to expose to apps
* Example bellow of a failure before one lib was made accessible to a camera app. Before exposing: I CAM_HexagonEnv: Will attempt to load libadsprpc.so from the system partition I CAM_HexagonEnv: Loading libhalide_hexagon_host.so from the app I CAM_CamBoxHelper: Computing layout for window: 1080x1920, and preview: 3000x4000, orientation: PORTRAIT, isMultiWindow: false I CAM_CamBoxHelper: placing extra widgets above the bottom bar I CAM_CamBoxHelper: Computed layout: CameraLayoutBoxes{window=1080x1920, preview=Rect(0, 106 - 1080, 1546), uncoveredPreview=Rect(0, 173 - 1080, 1546), topBar=Rect(0, 0 - 1080, 106), optionsBar=Rect(0, 0 - 1080, 173), bottomBar=Rect(0, 1546 - 1080, 1920), extraBottomWidgets=Rect(0, 1488 - 1080, 1546)} W CAM_HexagonEnv: Failed to load Hexagon library: java.lang.UnsatisfiedLinkError: dlopen failed: library "libadsprpc.so" not found After exposing: I CAM_HexagonEnv: Will attempt to load libadsprpc.so from the system partition I CAM_HexagonEnv: Loading libhalide_hexagon_host.so from the app I CAM_CamBoxHelper: Computed layout: CameraLayoutBoxes{window=1078x1860, preview=Rect(0, 0 - 1078, 808), uncoveredPreview=Rect(0, 173 - 1078, 1437), topBar=Rect(0, 0 - 1078, 106), optionsBar=Rect(0, 0 - 1078, 173), bottomBar=Rect(0, 1437 - 1078, 1860), extraBottomWidgets=Rect(0, 1437 - 1078, 1495)} I CAM_HexagonEnv: Writing libhalide_hexagon_remote_skel.so to /data/user/0/<package_name_removed>/libhalide_hexagon_remote_skel.so I CAM_HexagonEnv: ADSP_LIBRARY_PATH=/data/user/0/<package_name_removed>;/dsp Change-Id: I552dc44a32221d2d3cec48e1c64ed72c470d412e
-rw-r--r--configs/public.libraries.txt3
-rwxr-xr-xmsm8996.mk4
2 files changed, 7 insertions, 0 deletions
diff --git a/configs/public.libraries.txt b/configs/public.libraries.txt
new file mode 100644
index 0000000..1b8eb7e
--- /dev/null
+++ b/configs/public.libraries.txt
@@ -0,0 +1,3 @@
+libadsprpc.so
+libOpenCL.so
+libqti-perfd-client.so
diff --git a/msm8996.mk b/msm8996.mk
index bb3a9c9..ef44810 100755
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -83,6 +83,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_CHARACTERISTICS := nosdcard
+# Additional native libraries
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
+
# Audio
PRODUCT_PACKAGES += \
android.hardware.audio@2.0-impl \