diff --git a/device.mk b/device.mk index 51efc90..a83bd4b 100644 --- a/device.mk +++ b/device.mk @@ -407,7 +407,7 @@ PRODUCT_PACKAGES += \ # NFC PRODUCT_PACKAGES += \ - android.hardware.nfc@1.2.vendor \ + android.hardware.nfc@1.2-service.st \ android.hardware.secure_element@1.2.vendor \ com.android.nfc_extras \ SecureElement \ diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 3ddef3e..1486fae 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -30,8 +30,10 @@ /dev/opfeature u:object_r:opf_file:s0 /dev/param u:object_r:param_device:s0 /dev/skin_thermal u:object_r:therm_device:s0 +/dev/st21nfc u:object_r:nfc_device:s0 # HALs +/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.st u:object_r:hal_nfc_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.1-service\.oneplus u:object_r:hal_lineage_livedisplay_qti_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.powershare@1\.0-service\.oneplus u:object_r:hal_lineage_powershare_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.oneplus u:object_r:hal_lineage_touch_default_exec:s0 diff --git a/sepolicy/vendor/hal_nfc_default.te b/sepolicy/vendor/hal_nfc_default.te index 9486137..17bb5a1 100644 --- a/sepolicy/vendor/hal_nfc_default.te +++ b/sepolicy/vendor/hal_nfc_default.te @@ -1,2 +1,4 @@ allow hal_nfc_default vendor_nfc_vendor_data_file:dir create_dir_perms; allow hal_nfc_default vendor_nfc_vendor_data_file:file create_file_perms; + +get_prop(hal_nfc_default, vendor_nfc_prop) \ No newline at end of file