X1: Initial Vendor tree and sync with dt changes
Change-Id: I272f0d8cfd5b8718ab650a00496ebbca7907fea4 Signed-off-by: vlxlxlv <fajarslebew31@gmail.com>
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
# 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
|
||||
start nfc_hal_service
|
||||
|
||||
# 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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user