Commit 3c51821d authored by DerTeufel's avatar DerTeufel Committed by fire855
Browse files

libmtkshims: add option to shim symbols from old dpframework

needed by devices with no camera source, for which replacing libcam.camadapter.so leads to very dark camera
parent 3c3ae63d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ PRODUCT_PACKAGES += \
    libmtkshim_ui \
    libmtkshim_gui \
    libmtkshim_omx \
    libmtkshim_camera \
    libmtkshim_gps

# Display
+3 −0
Original line number Diff line number Diff line
@@ -17,3 +17,6 @@ endif
ifeq ($(TARGET_INCLUDE_GPS_SYMBOLS),true)
LINKER_FORCED_SHIM_LIBS := $(LINKER_FORCED_SHIM_LIBS):/system/vendor/bin/mtk_agpsd|libmtkshim_gps.so
endif
ifeq ($(TARGET_INCLUDE_CAMERA_SYMBOLS),true)
LINKER_FORCED_SHIM_LIBS := $(LINKER_FORCED_SHIM_LIBS):/system/vendor/lib/libfeatureio.so|libmtkshim_camera.so:/system/vendor/lib64/libfeatureio.so|libmtkshim_camera.so:/system/vendor/lib/libcam.camnode.so|libmtkshim_camera.so:/system/vendor/lib64/libcam.camnode.so|libmtkshim_camera.so
endif
+12 −0
Original line number Diff line number Diff line
@@ -57,3 +57,15 @@ ifeq ($(TARGET_INCLUDE_OMX_SYMBOLS),true)

    include $(BUILD_SHARED_LIBRARY)
endif


ifeq ($(TARGET_INCLUDE_CAMERA_SYMBOLS),true)
    include $(CLEAR_VARS)

    LOCAL_SRC_FILES := camera.cpp
    LOCAL_SHARED_LIBRARIES := libdpframework
    LOCAL_MODULE := libmtkshim_camera
    LOCAL_PROPRIETARY_MODULE := true

include $(BUILD_SHARED_LIBRARY)
endif

libmtkshims/camera.cpp

0 → 100644
+16 −0
Original line number Diff line number Diff line
extern "C" {
    int _ZN12DpBlitStream10invalidateEP7timeval();
    int _ZN12DpBlitStream10invalidateEv() {
        return _ZN12DpBlitStream10invalidateEP7timeval();
    }

    int _ZN11DpIspStream11startStreamEP7timeval();
    int _ZN11DpIspStream11startStreamEv() {
        return _ZN11DpIspStream11startStreamEP7timeval();
    }

    int _ZN11DpIspStream15dequeueFrameEndEPj();
    int _ZN11DpIspStream15dequeueFrameEndEv() {
        return _ZN11DpIspStream15dequeueFrameEndEPj();
    }
}