From e8689d091419280d10b042505fa8d39373f50a17 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Fri, 22 Feb 2019 17:58:39 +0100 Subject: [PATCH] add missing symbol for libcam.utils.sensorlistener.so Change-Id: I00ba721657da422b4304266d1c15b1335eae5ef4 --- BoardConfig.mk | 4 +++- libmtk_symbols/mtk_gui.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 49a6785..711717e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -109,7 +109,9 @@ TARGET_LD_SHIM_LIBS := \ /system/lib/libcam_utils.so|libmtk_symbols.so \ /system/lib/libcam.utils.sensorlistener.so|libmtk_symbols.so \ /system/vendor/lib/libwvm.so|libmtk_symbols.so \ - /system/lib/hw/gps.mt8127.so|libboringssl-compat.so + /system/lib/libcam.utils.sensorlistener.so|libmtk_symbols.so \ + /system/lib/hw/gps.mt8127.so|libboringssl-compat.so + # SELinux BOARD_SECCOMP_POLICY := $(DEVICE_DIR)/seccomp #BOARD_SEPOLICY_DIRS += $(DEVICE_DIR)/sepolicy diff --git a/libmtk_symbols/mtk_gui.cpp b/libmtk_symbols/mtk_gui.cpp index 3196930..eef0caa 100644 --- a/libmtk_symbols/mtk_gui.cpp +++ b/libmtk_symbols/mtk_gui.cpp @@ -5,6 +5,7 @@ #include extern "C" { + void _ZN7android13SensorManager16getDefaultSensorEi() {} void _ZN7android13GraphicBufferC1EjjijNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE( void *(pthis), uint32_t inWidth, uint32_t inHeight, int inFormat, uint32_t inUsage, std::string requestorName); -- 2.20.1