Files
device_xiaomi_rosemary/rootdir/etc/init.stnfc.rc
Matsvei Niaverau f0b02514a1 rosemary: Set up SKU-based ST NFC stack
* Based on miatoll implementation (7c21e60b93)

Change-Id: Ibb852acd55e4c0bc6928236637493520af221db2
2023-04-15 14:36:56 +02:00

34 lines
914 B
Plaintext

# This file needs to be executed by vendor_init at boot of the device,
# in normal and FM mode.
# Start the HAL service in all modes (FM, meta, normal)
on post-fs && property:ro.boot.hwname=rosemary
start nfc_hal_service
setprop ro.vendor.se.type HCE,UICC
# For factory mode, nfcstackp to create the socket as vendor here
on post-fs-data
mkdir /data/vendor/nfc_socket 0770 nfc nfc
# start STFlashTool at boot to ensure a NFC FW is loaded for factory tests
service stflashtool /vendor/bin/STFlashTool
class late_start
user nfc
group nfc
disabled
oneshot
service nfcstackp_vendor /vendor/bin/nfcstackp-vendor
class late_start
user nfc
group nfc
disabled
# start nfcstackp_vendor by properties (FM or EM HIDL will set value)
on property:vendor.nfc.nfcstackp.enable=0
stop nfcstackp_vendor
on property:vendor.nfc.nfcstackp.enable=1
start nfcstackp_vendor