Skip to content
Snippets Groups Projects
Commit c716a59f authored by Erfan Abdi's avatar Erfan Abdi :volcano: Committed by rahulsnair
Browse files

evert: fix camera


Change-Id: If58025a05713c76853707e4cdf328bf1c4eba1c5
Signed-off-by: default avatarErfan Abdi <erfangplus@gmail.com>
parent 91e38785
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,10 @@ PRODUCT_COPY_FILES += \
TARGET_SCREEN_HEIGHT := 2160
TARGET_SCREEN_WIDTH := 1080
# Cmaera Shim
PRODUCT_PACKAGES += \
libcamera_hal_shim
# Fingerprint Gestures
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
......
......@@ -40,3 +40,10 @@ sed -i "s|/system/lib/hw/|/vendor/lib/hw/|g" "$CAMERA_IMX386"
# Load ZAF configs from vendor
ZAF_CORE="$BLOB_ROOT"/vendor/lib/libzaf_core.so
sed -i "s|/system/etc/zaf|/vendor/etc/zaf|g" "$ZAF_CORE"
# Using in vendor libgui for O cam blobs
sed -i "s|libgui.so|libPui.so|g" "$BLOB_ROOT"/vendor/lib/libmmcamera_ppeiscore.so
sed -i "s|libgui.so|libPui.so|g" "$BLOB_ROOT"/vendor/lib/libmmcamera_vstab_module.so
# Using patchelf to add cam shims
patchelf --add-needed libcamera_hal_shim.so "$BLOB_ROOT"/vendor/lib/hw/camera.sdm660.so
# Copyright (C) 2018 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)
# Camera
include $(CLEAR_VARS)
LOCAL_SRC_FILES := camera_hal_shim.cpp
LOCAL_SHARED_LIBRARIES := libutils
LOCAL_MODULE := libcamera_hal_shim
LOCAL_MODULE_TAGS := optional
LOCAL_PROPRIETARY_MODULE := true
include $(BUILD_SHARED_LIBRARY)
#include <stdint.h>
namespace android {
extern "C" void _ZN7android9StopWatchC1EPKci(const char* name, int clock);
extern "C" void _ZN7android9StopWatchC1EPKcij(const char* name, int clock, uint32_t flags) {
_ZN7android9StopWatchC1EPKci(name, clock);
}
}
......@@ -429,9 +429,13 @@ vendor/lib64/libubifocus.so
vendor/lib/libS5k2l7Pdaf.so
vendor/lib/libS5k2l7PdafCamif.so
vendor/lib/libmm-qcamera.so
vendor/lib/libmot_gpu_mapper.so
lib/libcamera_metadata.so:vendor/lib/libcamera_metadata.so
# Cam from P
vendor/lib/libmot_gpu_mapper.so|a7477c7604bf9ac8b7b2ead6283eb6ddb80051fa
vendor/lib/libgui_vendor.so|2289516454cceae50bb3963f9255bc113a24b508
vendor/lib/libPui.so|2289516454cceae50bb3963f9255bc113a24b508
# Camera - Firmware
vendor/firmware/cpp_firmware_v1_10_0.fw
vendor/firmware/cpp_firmware_v1_12_0.fw
......
......@@ -12,6 +12,11 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.audio.calfile5=/vendor/etc/acdbdata/common/Headset_cal.acdb \
persist.audio.calfile6=/vendor/etc/acdbdata/common/Speaker_cal.acdb
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.preview.ubwc=0 \
video.disable.ubwc=1
# Sensors
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.sensors=evert \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment