libcamera: switch to aidl hal

* 20c227e0c3
This commit is contained in:
Konsta
2025-06-22 01:59:36 +03:00
parent de401a1c18
commit 3f5dba6729
6 changed files with 9 additions and 32 deletions

View File

@@ -1,10 +0,0 @@
service vendor.camera-provider-2-5 /vendor/bin/hw/android.hardware.camera.provider@2.5-service_64
class hal
user cameraserver
group audio camera input drmrpc
ioprio rt 4
capabilities SYS_NICE
task_profiles CameraServiceCapacity MaxPerformance
override
setenv LIBCAMERA_LOG_LEVELS *:WARN
setenv LIBCAMERA_LOG_FILE syslog

View File

@@ -62,13 +62,10 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.external.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.external.xml frameworks/native/data/etc/android.hardware.camera.external.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.external.xml
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.camera.provider@2.5-service_64 \ android.hardware.camera.provider-V1-libcamera-service \
camera.libcamera \ camera.libcamera \
ipa_rpi_pisp ipa_rpi_pisp
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/camera/android.hardware.camera.provider@2.5-service_64.rpi.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.camera.provider@2.5-service_64.rpi.rc
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/camera/camera_hal.yaml:$(TARGET_COPY_OUT_VENDOR)/etc/libcamera/camera_hal.yaml \ $(DEVICE_PATH)/camera/camera_hal.yaml:$(TARGET_COPY_OUT_VENDOR)/etc/libcamera/camera_hal.yaml \
external/libcamera/src/ipa/rpi/pisp/data/imx219.json:$(TARGET_COPY_OUT_VENDOR)/etc/libcamera/ipa/rpi/pisp/imx219.json \ external/libcamera/src/ipa/rpi/pisp/data/imx219.json:$(TARGET_COPY_OUT_VENDOR)/etc/libcamera/ipa/rpi/pisp/imx219.json \

View File

@@ -1,13 +1,4 @@
<compatibility-matrix version="1.0" type="framework"> <compatibility-matrix version="1.0" type="framework">
<hal format="hidl">
<name>android.hardware.camera.provider</name>
<transport>hwbinder</transport>
<version>2.5</version>
<interface>
<name>ICameraProvider</name>
<instance>legacy/0</instance>
</interface>
</hal>
<hal format="aidl"> <hal format="aidl">
<name>android.hardware.media.c2</name> <name>android.hardware.media.c2</name>
<version>1</version> <version>1</version>

View File

@@ -23,15 +23,7 @@
<interface> <interface>
<name>ICameraProvider</name> <name>ICameraProvider</name>
<instance>external/0</instance> <instance>external/0</instance>
</interface> <instance>libcamera/0</instance>
</hal>
<hal format="hidl">
<name>android.hardware.camera.provider</name>
<transport>hwbinder</transport>
<version>2.5</version>
<interface>
<name>ICameraProvider</name>
<instance>legacy/0</instance>
</interface> </interface>
</hal> </hal>
</manifest> </manifest>

View File

@@ -1,3 +1,6 @@
# Camera
/vendor/bin/hw/android\.hardware\.camera\.provider-V1-libcamera-service u:object_r:hal_camera_default_exec:s0
# CEC # CEC
/dev/cec0 u:object_r:cec_device:s0 /dev/cec0 u:object_r:cec_device:s0
/dev/cec1 u:object_r:cec_device:s0 /dev/cec1 u:object_r:cec_device:s0

View File

@@ -1,3 +1,7 @@
# Camera
android.hardware.camera.provider.ICameraProvider/external/0 u:object_r:hal_camera_service:s0
android.hardware.camera.provider.ICameraProvider/libcamera/0 u:object_r:hal_camera_service:s0
# DRM # DRM
android.hardware.drm.IDrmFactory/widevine u:object_r:hal_drm_service:s0 android.hardware.drm.IDrmFactory/widevine u:object_r:hal_drm_service:s0