Revert "sm8350-common: Move to Xiaomi IR AIDL"

*need roolback if device not support using AIDL

This reverts commit 3969a26b43.
This commit is contained in:
vherawidatama
2025-08-30 09:27:35 +02:00
committed by Ammar Bahtiar
parent 8fced6fc8a
commit b436b54f6c
5 changed files with 20 additions and 1 deletions

View File

@@ -270,7 +270,8 @@ PRODUCT_PACKAGES += \
# IR
PRODUCT_PACKAGES += \
android.hardware.ir-service.lineage
android.hardware.ir@1.0-impl \
android.hardware.ir@1.0-service
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml

View File

@@ -1,4 +1,13 @@
<manifest version="1.0" type="device">
<hal format="hidl">
<name>android.hardware.ir</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IConsumerIr</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.campostproc</name>
<transport>hwbinder</transport>

View File

@@ -753,6 +753,9 @@ vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service
vendor/etc/init/vendor.qti.hardware.capabilityconfigstore@1.0-service.rc
vendor/lib64/hw/vendor.qti.hardware.capabilityconfigstore@1.0-impl.so
# Consumer IR
vendor/lib64/hw/consumerir.lahaina.so
# Diag
vendor/bin/diag-router
vendor/etc/init/vendor.qti.diag.rc

View File

@@ -41,6 +41,9 @@
/(odm|vendor/odm)/bin/hw/vendor\.dolby_sp\.hardware\.dmssp@2\.0-service u:object_r:hal_dms_default_exec:s0
/(vendor|odm)/bin/hw/vendor\.dolby_sp\.media\.c2@1\.0-service u:object_r:mediacodec_exec:s0
# IR
/dev/ir_spi u:object_r:ir_spi_device:s0
# Hexagon DSP-side executable needed for Halide operation
# This is labeled as public_adsprpcd_file as it needs to be read by apps
# (e.g. Google Camera App)

3
sepolicy/vendor/hal_ir_default.te vendored Normal file
View File

@@ -0,0 +1,3 @@
type ir_spi_device, dev_type;
allow hal_ir_default ir_spi_device:chr_file rw_file_perms;