universal7904: Only start NFC service on supported variants
Change-Id: I6c272eca6b45760679aac4effc7c074444692cf1
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
diff --git a/rootdir/etc/init.exynos7904.rc b/rootdir/etc/init.exynos7904.rc
index ccaf3a5..ed1c29d 100644
--- a/rootdir/etc/init.exynos7904.rc
+++ b/rootdir/etc/init.exynos7904.rc
@@ -602,3 +602,14 @@
group system graphics input
capabilities SYS_BOOT
seclabel u:r:charger:s0
+
+# Start NFC on supported variants
+service nfc_hal_service /vendor/bin/hw/android.hardware.nfc@1.2-service.samsung
+ override
+ class hal
+ user nfc
+ group nfc
+ disabled
+
+on property:ro.boot.product.hardware.sku=NFC
+ start nfc_hal_service