243 lines
9.0 KiB
Plaintext
243 lines
9.0 KiB
Plaintext
########################### Start of libnfc-hal-st.conf ###########################
|
|
|
|
###############################################################################
|
|
###############################################################################
|
|
NFC_DEBUG_ENABLED=1
|
|
|
|
###############################################################################
|
|
# File used for NFA storage
|
|
NFA_STORAGE="/data/nfc"
|
|
|
|
###############################################################################
|
|
# Keep the nfa storage file.
|
|
PRESERVE_STORAGE=1
|
|
|
|
###############################################################################
|
|
# In Switch OFF mode (phone switched-off), specify the desired CE mode to
|
|
# the controller.
|
|
# 0: No card-emulation; DEFAULT
|
|
# 1: Switch-off card-emulation enabled
|
|
CE_ON_SWITCH_OFF_STATE=1
|
|
|
|
###############################################################################
|
|
# TMS NFCEE Power And Link setting for eSE
|
|
# 0x00: Do not set by config
|
|
# 0x01: Set NFCEE Power And Link with value of TMS_NFCEE_PL_VALUE
|
|
TMS_NFCEE_PL_CFG=0x01
|
|
|
|
###############################################################################
|
|
# TMS NFCEE Power And Link setting for eSE
|
|
# 0x00: NFCC decides.
|
|
# 0x01: NFCEE Power Supply always On.
|
|
# 0x02: NFCC to NFCEE Communication link always active when the NFCEE is powered on.
|
|
# 0x03: NFCEE Power supply and NFCC to NFCEE communication link are always On.
|
|
TMS_NFCEE_PL_VALUE=0x03
|
|
|
|
###############################################################################
|
|
# Max wait time for rAPDU/ATR on apdu gate
|
|
# defaule: 30000ms
|
|
#TMS_MAX_APDU_WAIT_TIME=30000
|
|
|
|
###############################################################################
|
|
# Vendor Specific Proprietary Protocol & Discovery Configuration
|
|
# Set to 0xFF if unsupported
|
|
# byte[0] NCI_PROTOCOL_18092_ACTIVE
|
|
# byte[1] NCI_PROTOCOL_B_PRIME
|
|
# byte[2] NCI_PROTOCOL_DUAL
|
|
# byte[3] NCI_PROTOCOL_15693
|
|
# byte[4] NCI_PROTOCOL_KOVIO
|
|
# byte[5] NCI_PROTOCOL_MIFARE
|
|
# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
|
|
# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
|
|
# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
|
|
NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, 70, FF, FF}
|
|
|
|
###############################################################################
|
|
# Choose the presence-check algorithm for type-4 tag. If not defined,
|
|
# the default value is 1.
|
|
# 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
|
|
# 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
|
|
# 2 NFA_RW_PRES_CHK_RESET; Deactivate to Sleep, then re-activate
|
|
# 3 NFA_RW_PRES_CHK_RB_CH0; Type-4 tag protocol's ReadBinary command on channel 0
|
|
# 4 NFA_RW_PRES_CHK_RB_CH3; Type-4 tag protocol's ReadBinary command on channel 3
|
|
# 5 NFA_RW_PRES_CHK_ISO_DEP_NAK; presence check command ISO-DEP NAK as per NCI2.0
|
|
PRESENCE_CHECK_ALGORITHM=2
|
|
|
|
###############################################################################
|
|
# Name of the NCI HAL module to use
|
|
# If unset, falls back to nfc_nci.bcm2079x
|
|
NCI_HAL_MODULE="nfc_nci.tmsnfc"
|
|
|
|
###############################################################################
|
|
# White list of Hosts
|
|
# This values will be the Hosts(NFCEEs) in the HCI Network.
|
|
DEVICE_HOST_WHITE_LIST={C0, 80, 81}
|
|
|
|
###############################################################################
|
|
# BAIL OUT value for P2P
|
|
# Implements algorithm for NFC-DEP protocol priority over ISO-DEP protocol.
|
|
#POLL_BAIL_OUT_MODE=1
|
|
|
|
POLL_BAIL_OUT_MODE=0
|
|
|
|
###############################################################################
|
|
# Extended APDU length for ISO_DEP
|
|
ISO_DEP_MAX_TRANSCEIVE=0xFEFF
|
|
|
|
###############################################################################
|
|
# Configure the NFC Extras to open and use a static pipe. If the value is
|
|
# not set or set to 0, then the default is use a dynamic pipe based on a
|
|
# destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value
|
|
# for each EE (ESE/SIM1/SIM2)
|
|
OFF_HOST_ESE_PIPE_ID=0x16
|
|
OFF_HOST_SIM_PIPE_ID=0x0A
|
|
OFF_HOST_SIM2_PIPE_ID=0x23
|
|
|
|
###############################################################################
|
|
#Set the T4TNfcee AID Power state :
|
|
#This settings will be used when application does not set this parameter
|
|
# bit pos 0 = Switch On
|
|
# bit pos 1 = Switch Off
|
|
# bit pos 2 = Battery Off
|
|
# bit pos 3 = Screen off unlock
|
|
# bit pos 4 = Screen On lock
|
|
# bit pos 5 = Screen Off lock
|
|
DEFAULT_T4TNFCEE_AID_POWER_STATE=0x3B
|
|
|
|
###############################################################################
|
|
#Set the default Felica T3T System Code OffHost route Location :
|
|
#This settings will be used when application does not set this parameter
|
|
# host 0x00
|
|
# eSE 0xC0
|
|
# UICC 0x80
|
|
# UICC2 0x81
|
|
DEFAULT_SYS_CODE_ROUTE=0x00
|
|
|
|
###############################################################################
|
|
#Set the Felica T3T System Code Power state :
|
|
#This settings will be used when application does not set this parameter
|
|
#Update Power state as per NCI2.0
|
|
DEFAULT_SYS_CODE_PWR_STATE=0x11
|
|
|
|
# TMS_FW_NAME, File name for Firmware, moved to libese-tms.conf
|
|
|
|
TMS_NFC_DEV_NODE="/dev/tms_nfc"
|
|
|
|
###############################################################################
|
|
# Default off-host route for Felica.
|
|
#This settings will be used when application does not set this parameter
|
|
# host 0x00
|
|
# eSE 0xC0
|
|
# UICC 0x80
|
|
# UICC2 0x81
|
|
DEFAULT_NFCF_ROUTE=0x00
|
|
|
|
###############################################################################
|
|
#Default Secure Element route id
|
|
# used for technology A and B routing
|
|
# eSE 0xC0
|
|
# UICC 0x80
|
|
# UICC2 0x81
|
|
DEFAULT_OFFHOST_ROUTE=0x80
|
|
|
|
###############################################################################
|
|
# Configure the default AID route.
|
|
# host 0x00
|
|
# eSE 0xC0
|
|
# UICC 0x80
|
|
# UICC2 0x81
|
|
DEFAULT_ROUTE=0x00
|
|
|
|
###############################################################################
|
|
#OffHost UICC route location for MultiSE
|
|
#UICC1 = 80
|
|
#UICC2 = 81
|
|
OFFHOST_ROUTE_UICC={80:81}
|
|
|
|
###############################################################################
|
|
#OffHost ESE route location for MultiSE
|
|
#ESE = C0
|
|
OFFHOST_ROUTE_ESE={C0}
|
|
|
|
###############################################################################
|
|
#T4T NFCEE ENABLE
|
|
#0x01 = T4T NFCEE Enable
|
|
#0x00 = T4T NFCEE Disable
|
|
TMS_T4T_NFCEE_ENABLE=0x00
|
|
|
|
###############################################################################
|
|
#Set the ISODEP (Mifare Desfire) route Location :
|
|
#This settings will be used when application does not set this parameter
|
|
# host 0x00
|
|
# eSE 0xC0
|
|
# UICC 0x80
|
|
# UICC2 0x81
|
|
DEFAULT_ISODEP_ROUTE=0x00
|
|
|
|
###############################################################################
|
|
# Core configuration settings
|
|
#CORE_CONF_PROP={ 20, 02, 13, 06,
|
|
# a1, 01, 19,
|
|
# a2, 01, 15,
|
|
# 80, 01, 01,
|
|
# 08, 01, 01,
|
|
# 11, 01, 01,
|
|
# 19, 01, 01
|
|
#}
|
|
|
|
###############################################################################
|
|
# TMS proprietary settings
|
|
TMS_ACT_PROP_EXTN={2F, 02, 00}
|
|
|
|
###############################################################################
|
|
# Set configuration optimization decision setting
|
|
# Enable = 0x01
|
|
# Disable = 0x00
|
|
TMS_SET_CONFIG_ALWAYS=0x01
|
|
|
|
###############################################################################
|
|
#All eSE terminals shall be match with the /vendor/etc/vintf/manifest.xml file
|
|
#under android.hardware.secure_element
|
|
# The terminal name shall start from 1
|
|
# Assign terminal number to each interface based on system config
|
|
TMS_SPI_SE_TERMINAL_NUM="eSE1"
|
|
|
|
################################################################################
|
|
#This flags will enable different modes of Lx Debug based on bits of the Byte0
|
|
#Byte 0:
|
|
# |_________Bit Mask_______| Debug Mode
|
|
# b7|b6|b5|b4|b3|b2|b1|b0|
|
|
# 0 | | | | | | | | RFU
|
|
# |x | | | | | | | Enable APDU header and tail data log
|
|
# | |x | | | | | | Enable APDU full data log
|
|
# | | |X | | | | | Enable ISO14443-4 log
|
|
# | | | |X | | | | Enable M1 log
|
|
# | | | | |X | | | Enable Felica SystemCode
|
|
# | | | | | |X | | Enable Felica RF (all Felica CM events)
|
|
# | | | | | | |X | Enable ISO14443-3 log (RF Field ON/OFF)
|
|
#Byte 1: default = 0x00
|
|
# |_________Bit Mask_______| Debug Mode
|
|
# b7|b6|b5|b4|b3|b2|b1|b0|
|
|
# x | | | | | | | | Enable FW all debug log
|
|
# |x | | | | | | | Enable Reader Events(ROW specific)
|
|
# | |0 |0 |0 |0 |0 |0 | RFU
|
|
# Byte1 Byte0
|
|
# \__ __/
|
|
# e.g. TMS_CORE_PROP_SYSTEM_DEBUG=0x0041 ==> Enable APDU header and tail data log, CE ISO14443-3
|
|
TMS_CORE_PROP_SYSTEM_DEBUG=0x0011
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
# Set listen technology when phone is power off
|
|
# 0x00 : Disable Listen
|
|
# 0x01 : tech A
|
|
# 0x02 : tech B
|
|
# 0x04 : tech F
|
|
# 0x07 : tech A&B&F
|
|
TMS_PWR_OFF_LISTEN_TECH_MASK=0x07
|
|
|
|
###############################################################################
|
|
#Last byte 0x01 for Disable Forum Mode, 0x00 for Enable Forum Mode
|
|
TMS_FORUM_DISABLE={20, 02, 05, 01, A0, 44, 01, 01}
|
|
###############################################################################
|