sweet: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
This commit is contained in:
parent
601fddecdf
commit
6ed4c96703
@ -17,10 +17,6 @@ TARGET_PROVIDES_AUDIO_EXTNS := true
|
|||||||
|
|
||||||
# HIDL
|
# HIDL
|
||||||
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
|
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
|
# Kernel
|
||||||
TARGET_KERNEL_CONFIG += vendor/sweet.config
|
TARGET_KERNEL_CONFIG += vendor/sweet.config
|
||||||
|
@ -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>
|
|
@ -47,7 +47,7 @@ PRODUCT_PACKAGES += \
|
|||||||
Tag
|
Tag
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.nfc@1.2-service
|
android.hardware.nfc-service.nxp
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
|
$(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
on property:ro.boot.product.vendor.sku=sweet
|
on property:ro.boot.product.vendor.sku=sweet
|
||||||
enable vendor.nfc_hal_service
|
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
|
override
|
||||||
class hal
|
class early_hal
|
||||||
user nfc
|
user nfc
|
||||||
group nfc
|
group nfc drmrpc system
|
||||||
writepid /dev/cpuset/system-background/tasks
|
|
||||||
disabled
|
disabled
|
||||||
|
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
@ -12,3 +12,6 @@
|
|||||||
|
|
||||||
# Persist subsystem
|
# Persist subsystem
|
||||||
/mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file:s0
|
/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
2
sepolicy/vendor/service_contexts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# NFC
|
||||||
|
vendor.nxp.nxpnfc_aidl.INxpNfc/default u:object_r:hal_nfc_service:s0
|
Loading…
Reference in New Issue
Block a user