diff options
author | Trevor Bunker <trevorbunker@google.com> | 2015-07-08 07:09:15 -0700 |
---|---|---|
committer | Thierry Strudel <tstrudel@google.com> | 2015-07-08 11:33:33 -0700 |
commit | 8cc3cffaeb22126336a3de3404bd6a741dce3896 (patch) | |
tree | 87f63ba3abbb9b4f7c59807dbd78c086096ff934 /init.bullhead.sensorhub.rc | |
parent | 5ef573e2992e48f2e0f8983d1932eb32d76c2f15 (diff) | |
download | bullhead-8cc3cffaeb22126336a3de3404bd6a741dce3896.tar.gz |
bullhead.sensorhub: enforce calibration file owner/permissions
Bug: 22286420
Change-Id: I6a22ec5444a32910fa482f51c00da9cd239b5ea8
Signed-off-by: Trevor Bunker <trevorbunker@google.com>
Diffstat (limited to 'init.bullhead.sensorhub.rc')
-rw-r--r-- | init.bullhead.sensorhub.rc | 4 |
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 |