# Shims
TARGET_LD_SHIM_LIBS += \
/system/lib/libexynoscamera.so|/vendor/lib/libexynoscamera_shim.so \
- /system/lib64/libexynoscamera.so|/vendor/lib64/libexynoscamera_shim.so
+ /system/lib64/libexynoscamera.so|/vendor/lib64/libexynoscamera_shim.so \
+ /system/vendor/lib64/libexynosdisplay.so|/system/vendor/lib64/libexynosdisplay_shim.so \
+ /system/vendor/lib/libexynosdisplay.so|/system/vendor/lib/libexynosdisplay_shim.so \
+ /system/vendor/lib64/hw/hwcomposer.exynos5.so|/system/vendor/lib64/libexynosdisplay_shim.so \
+ /system/vendor/lib/hw/hwcomposer.exynos5.so|/system/vendor/lib/libexynosdisplay_shim.so
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# Shims
PRODUCT_PACKAGES += \
libexynoscamera_shim \
- libmemset
+ libmemset \
+ libexynosdisplay_shim
# stagefright
PRODUCT_PACKAGES += \
--- /dev/null
+#
+# Copyright (C) 2017 The LineageOS Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := libexynosdisplay.c
+LOCAL_SHARED_LIBRARIES := liblog
+LOCAL_MODULE := libexynosdisplay_shim
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_VENDOR_MODULE := true
+include $(BUILD_SHARED_LIBRARY)
--- /dev/null
+/*
+ * Copyright (C) 2017 The LineageOS Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#define LOG_TAG "libexynosdisplay_shim"
+#define LOG_NDEBUG 1
+
+#include <cutils/log.h>
+#include <cutils/native_handle.h>
+
+//int32_t ExynosLayer::setLayerBuffer(buffer_handle_t buffer, int32_t acquireFence)
+bool _ZN11ExynosLayer14setLayerBufferEPK13native_handlei(buffer_handle_t buffer, int32_t acquireFence)
+{
+ ALOGV("SHIM: hijacking %s!", __func__);
+
+ /* Force this check to always return false */
+ return 0;
+}