summaryrefslogtreecommitdiff
path: root/init.bullhead.sensorhub.rc
diff options
context:
space:
mode:
Diffstat (limited to 'init.bullhead.sensorhub.rc')
-rw-r--r--init.bullhead.sensorhub.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.bullhead.sensorhub.rc b/init.bullhead.sensorhub.rc
index 8812880..4326220 100644
--- a/init.bullhead.sensorhub.rc
+++ b/init.bullhead.sensorhub.rc
@@ -3,6 +3,10 @@ on post-fs
## set gpio75 as input to power the hall sensor when connected to AP
write /sys/class/gpio/export 75
write /sys/class/gpio/gpio75/direction in
+ ## ensure correct calibration file permissions
+ chown root system /persist/sensorcal.json
+ chmod 0640 /persist/sensorcal.json
+ ## Update SH FW if needed
start flash-sh-fw
service flash-sh-fw /system/bin/sensortool.bullhead -f /vendor/firmware/nano4x1.bin