sweet: Build AIDL NXP NFC HAL

Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
This commit is contained in:
LuK1337 2023-10-19 23:08:10 +02:00 committed by basamaryan
parent 601fddecdf
commit 6ed4c96703
No known key found for this signature in database
GPG Key ID: 0A28C6D8648B81DD
6 changed files with 9 additions and 20 deletions

View File

@ -17,10 +17,6 @@ TARGET_PROVIDES_AUDIO_EXTNS := true
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
DEVICE_MANIFEST_SKUS += sweet
DEVICE_MANIFEST_SWEET_FILES := \
$(DEVICE_MANIFEST_FILE) \
$(DEVICE_PATH)/configs/hidl/manifest-nfc.xml
# Kernel
TARGET_KERNEL_CONFIG += vendor/sweet.config

View File

@ -1,11 +0,0 @@
<manifest version="1.0" type="device">
<hal format="hidl">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
<version>1.2</version>
<interface>
<name>INfc</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@ -47,7 +47,7 @@ PRODUCT_PACKAGES += \
Tag
PRODUCT_PACKAGES += \
android.hardware.nfc@1.2-service
android.hardware.nfc-service.nxp
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \

View File

@ -1,10 +1,9 @@
on property:ro.boot.product.vendor.sku=sweet
enable vendor.nfc_hal_service
service vendor.nfc_hal_service /vendor/bin/hw/android.hardware.nfc@1.2-service
service vendor.nfc_hal_service /vendor/bin/hw/android.hardware.nfc-service.nxp
override
class hal
class early_hal
user nfc
group nfc
writepid /dev/cpuset/system-background/tasks
group nfc drmrpc system
disabled

View File

@ -12,3 +12,6 @@
# Persist subsystem
/mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file:s0
# NFC
/vendor/bin/hw/android\.hardware\.nfc-service\.nxp u:object_r:hal_nfc_default_exec:s0

2
sepolicy/vendor/service_contexts vendored Normal file
View File

@ -0,0 +1,2 @@
# NFC
vendor.nxp.nxpnfc_aidl.INxpNfc/default u:object_r:hal_nfc_service:s0