mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-11-27 00:03:59 +00:00
Take the extensions, the camera unit SDK they drive and its sepolicy
from vendor/oplus/camera, and declare Night and Bokeh on the main
camera in camera_unit_config, which predates the SDK's
cameraExtensionConfig. Pin the Night preview sizes, as newer Oplus
devices do, since the SDK otherwise derives portrait oriented ones from
the screen and CameraX finds no output size.
The rear portrait preview is configured for two cameras, but an
extension session has a single stream, so APS rejects every frame
("dispatchInputData() undefined case!!") and the viewfinder stays black.
Configure it for one camera.
Front Night is left out: the HAL aborts on the capture request.
Assisted-by: LLM
Change-Id: Iecbc00963d94c3f13a01a91f218b2ea10d08e443
31 lines
707 B
Makefile
31 lines
707 B
Makefile
#
|
|
# Copyright (C) 2021-2026 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Include the common OEM chipset BoardConfig.
|
|
include device/oneplus/sm8450-common/BoardConfigCommon.mk
|
|
|
|
DEVICE_PATH := device/realme/ferrari
|
|
|
|
# Camera
|
|
include vendor/oplus/camera/BoardConfigVendor.mk
|
|
|
|
# HIDL
|
|
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
|
|
|
|
# Properties
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
|
|
|
# Recovery
|
|
TARGET_RECOVERY_DENSITY := xxhdpi
|
|
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 126
|
|
|
|
# VINTF
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
|
|
$(DEVICE_PATH)/vintf/compatibility_matrix.xml
|
|
|
|
# Include the proprietary files BoardConfig.
|
|
include vendor/realme/ferrari/BoardConfigVendor.mk
|