aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.nfc.rc
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/etc/init.nfc.rc')
-rw-r--r--rootdir/etc/init.nfc.rc15
1 files changed, 15 insertions, 0 deletions
diff --git a/rootdir/etc/init.nfc.rc b/rootdir/etc/init.nfc.rc
new file mode 100644
index 0000000..895fcee
--- /dev/null
+++ b/rootdir/etc/init.nfc.rc
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2021 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+service vendor.nfc_hal_service /vendor/bin/hw/android.hardware.nfc@1.2-service
+ override
+ class hal
+ user nfc
+ group nfc
+ disabled
+
+on boot && property:ro.boot.product.hardware.sku=nfc
+ enable vendor.nfc_hal_service