From 3be9ba0bce2f99782de7d797ec0b1544d3156ea1 Mon Sep 17 00:00:00 2001 From: Megad Lu Date: Sat, 18 Jan 2020 10:18:02 +0800 Subject: [PATCH] [ALPS04709027] ST SE HAL for ST54H (SPI) support [Detail] New ST NFC stack for Android compatible with native SecureElement service. Added also SE HAL for ST54H (SPI) support. SE HAL files are for internal reference only. MTK-Commit-Id: 1ad8ab131a2acbdf66133db290e4206627a5f50b Change-Id: Ief43e503b7147ab96185100ae3c02ecb2ce82640 CR-Id: ALPS04709027 Feature: NFC Chipset Capability --- non_plat/device.te | 1 + non_plat/file_contexts | 2 ++ non_plat/st54spi_hal_secure_element.te | 9 +++++++++ 3 files changed, 12 insertions(+) create mode 100644 non_plat/st54spi_hal_secure_element.te diff --git a/non_plat/device.te b/non_plat/device.te index adf47cc..e9a0529 100644 --- a/non_plat/device.te +++ b/non_plat/device.te @@ -106,6 +106,7 @@ type eemcs_device, dev_type; type emd_device, dev_type; type mt6605_device, dev_type; type st21nfc_device, dev_type; +type st54spi_device, dev_type; type exm0_device, dev_type; type mmcblk_device, dev_type; type BOOT_device, dev_type; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 3c5512e..da24ae4 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -196,6 +196,7 @@ /dev/MT6516_MP4_ENC(/.*)? u:object_r:MT6516_MP4_ENC_device:s0 /dev/mt6605 u:object_r:mt6605_device:s0 /dev/st21nfc u:object_r:st21nfc_device:s0 +/dev/st54spi u:object_r:st54spi_device:s0 /dev/mt9p012(/.*)? u:object_r:mt9p012_device:s0 /dev/mtfreqhopping(/.*)? u:object_r:mtfreqhopping_device:s0 /dev/mtgpio(/.*)? u:object_r:mtgpio_device:s0 @@ -587,6 +588,7 @@ /(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.keymaster_attestation@1\.1-service u:object_r:hal_keymaster_attestation_exec:s0 #ST NFC 1.2 hidl service /(system\/vendor|vendor)/bin/hw/android\.hardware\.nfc@1\.2-service-st u:object_r:hal_nfc_default_exec:s0 +/(system\/vendor|vendor)/bin/hw/android\.hardware\.secure_element@1\.0-service-st54spi u:object_r:st54spi_hal_secure_element_exec:s0 # MTK Wifi Hal /(system\/vendor|vendor)/bin/hw/android\.hardware\.wifi@1\.0-service-mediatek u:object_r:mtk_hal_wifi_exec:s0 /(system\/vendor|vendor)/bin/hw/android\.hardware\.wifi@1\.0-service-lazy-mediatek u:object_r:mtk_hal_wifi_exec:s0 diff --git a/non_plat/st54spi_hal_secure_element.te b/non_plat/st54spi_hal_secure_element.te new file mode 100644 index 0000000..f949e19 --- /dev/null +++ b/non_plat/st54spi_hal_secure_element.te @@ -0,0 +1,9 @@ +type st54spi_hal_secure_element, domain; +hal_server_domain(st54spi_hal_secure_element, hal_secure_element) +type st54spi_hal_secure_element_exec, exec_type, vendor_file_type, file_type; + +allow st54spi_hal_secure_element st54spi_device:chr_file rw_file_perms; + +init_daemon_domain(st54spi_hal_secure_element) + +