From a910f0d5f9ca20751d4fa7d4a422e979be16158a Mon Sep 17 00:00:00 2001 From: George Chang Date: Tue, 12 Sep 2023 07:48:20 +0000 Subject: [PATCH] [NFC] Update customize settings Remove legacy eSE1 HIDL settings Add SKU IDs for secure NFC Update default libnfc-nci settings Enable STNFC_REMOTE_FIELD_TIMER Bug: 287710897 Bug: 287568687 Test: manual Change-Id: I97db76f97d1e345aeb65655e2d09b201c66c8429 --- .../packages/apps/Nfc/res/values/config.xml | 25 +++++++++++++++++++ device-ripcurrent24.mk | 5 +--- .../packages/apps/Nfc/res/values/config.xml | 25 +++++++++++++++++++ nfc/libnfc-hal-st.conf | 6 +++++ nfc/libnfc-nci.conf | 2 +- .../packages/apps/Nfc/res/values/config.xml | 25 +++++++++++++++++++ 6 files changed, 83 insertions(+), 5 deletions(-) create mode 100644 caiman/overlay/packages/apps/Nfc/res/values/config.xml create mode 100644 komodo/overlay/packages/apps/Nfc/res/values/config.xml create mode 100644 tokay/overlay/packages/apps/Nfc/res/values/config.xml diff --git a/caiman/overlay/packages/apps/Nfc/res/values/config.xml b/caiman/overlay/packages/apps/Nfc/res/values/config.xml new file mode 100644 index 00000000..5058cfa5 --- /dev/null +++ b/caiman/overlay/packages/apps/Nfc/res/values/config.xml @@ -0,0 +1,25 @@ + + + + false + true + + GR83Y + GEC77 + GWVK6 + + true + diff --git a/device-ripcurrent24.mk b/device-ripcurrent24.mk index c2203cfc..0e061514 100644 --- a/device-ripcurrent24.mk +++ b/device-ripcurrent24.mk @@ -70,16 +70,13 @@ PRODUCT_PACKAGES += \ # SecureElement PRODUCT_PACKAGES += \ - android.hardware.secure_element@1.2-service-gto + android.hardware.secure_element-service.thales PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ device/google/caimito/nfc/libse-gto-hal-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf -DEVICE_MANIFEST_FILE += \ - device/google/caimito/nfc/manifest_se.xml - # Bluetooth HAL PRODUCT_COPY_FILES += \ device/google/caimito/bluetooth/bt_vendor_overlay_ripcurrent24.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf diff --git a/komodo/overlay/packages/apps/Nfc/res/values/config.xml b/komodo/overlay/packages/apps/Nfc/res/values/config.xml new file mode 100644 index 00000000..265f2c9a --- /dev/null +++ b/komodo/overlay/packages/apps/Nfc/res/values/config.xml @@ -0,0 +1,25 @@ + + + + false + true + + GGX8B + GQ57S + GZC4K + + true + diff --git a/nfc/libnfc-hal-st.conf b/nfc/libnfc-hal-st.conf index 2700a20b..442e785e 100644 --- a/nfc/libnfc-hal-st.conf +++ b/nfc/libnfc-hal-st.conf @@ -147,6 +147,12 @@ DEFAULT_ISODEP_ROUTE=0x00 # disable 0x00 default value STNFC_CONTROL_CLK=0x00 +############################################################################### +# Configure the Field on timer +# enable 0x01 +# disable 0x00 default value +STNFC_REMOTE_FIELD_TIMER=0x01 + ############################################################################### # Configure the ACTIVE_RW timer # Default 0x00, set 0x01 to enable it diff --git a/nfc/libnfc-nci.conf b/nfc/libnfc-nci.conf index 3940b1f5..be65f66d 100644 --- a/nfc/libnfc-nci.conf +++ b/nfc/libnfc-nci.conf @@ -118,4 +118,4 @@ RECOVERY_OPTION=1 # NFCEE Power Supply and Communication Link Control Configuration # Set when SetAlwaysOn enabled # Default 0x00 when SetAlways on disabled -ALWAYS_ON_SET_EE_POWER_AND_LINK_CONF=0x03 +ALWAYS_ON_SET_EE_POWER_AND_LINK_CONF=0x00 diff --git a/tokay/overlay/packages/apps/Nfc/res/values/config.xml b/tokay/overlay/packages/apps/Nfc/res/values/config.xml new file mode 100644 index 00000000..5d908286 --- /dev/null +++ b/tokay/overlay/packages/apps/Nfc/res/values/config.xml @@ -0,0 +1,25 @@ + + + + false + true + + G2YBB + GUR25 + G1B60 + + true +