diff --git a/legacy/whitechapel_pro/property.te b/legacy/whitechapel_pro/property.te index 7fe48175..ff5ef044 100644 --- a/legacy/whitechapel_pro/property.te +++ b/legacy/whitechapel_pro/property.te @@ -1,4 +1,6 @@ +# Vendor vendor_internal_prop(vendor_nfc_prop) +vendor_restricted_prop(vendor_nfc_antenna_prop) vendor_internal_prop(vendor_secure_element_prop) vendor_internal_prop(vendor_battery_profile_prop) vendor_internal_prop(vendor_camera_prop) diff --git a/legacy/whitechapel_pro/property_contexts b/legacy/whitechapel_pro/property_contexts index fa5c9170..a4222060 100644 --- a/legacy/whitechapel_pro/property_contexts +++ b/legacy/whitechapel_pro/property_contexts @@ -3,6 +3,7 @@ persist.vendor.testing_battery_profile u:object_r:vendor_battery_profile_pro # NFC persist.vendor.nfc. u:object_r:vendor_nfc_prop:s0 +persist.vendor.nfc.antenna. u:object_r:vendor_nfc_antenna_prop:s0 # SecureElement persist.vendor.se. u:object_r:vendor_secure_element_prop:s0 diff --git a/vendor/hal_nfc_default.te b/vendor/hal_nfc_default.te index d71d9e28..d4dcf471 100644 --- a/vendor/hal_nfc_default.te +++ b/vendor/hal_nfc_default.te @@ -1,5 +1,9 @@ # HAL NFC property -get_prop(hal_nfc_default, vendor_nfc_prop) +set_prop(hal_nfc_default, vendor_nfc_prop) +set_prop(hal_nfc_default, vendor_nfc_antenna_prop) +userdebug_or_eng( + get_prop(untrusted_app, vendor_nfc_antenna_prop) +) # SecureElement property set_prop(hal_nfc_default, vendor_secure_element_prop)