mediatek: vibrator: Set permissions for thunderquake_engine nodes
Change-Id: I2ddceb2d8b183d0c551eb6660c9dbc0e9fc61af9
diff --git a/vibrator/vibrator-mtk.rc b/vibrator/vibrator-mtk.rc
index c8de475..71b3d21 100644
--- a/vibrator/vibrator-mtk.rc
+++ b/vibrator/vibrator-mtk.rc
@@ -1,3 +1,7 @@
+on init
+ chown system system /sys/kernel/thunderquake_engine/level
+ chown 644 /sys/kernel/thunderquake_engine/level
+
service vendor.vibrator-mtk /vendor/bin/hw/android.hardware.vibrator-service.mediatek
class hal
user system