wahoo: init: ensure sensor registry directory is available

Test: remove /persist/sensors directory from device
Test: flash image with this change
Test: verify that sensor stack recovers
Bug: 64065874
Change-Id: Ib7efdb44512badbf3d1f443aecb1993359dba402
This commit is contained in:
Max Shi
2017-07-31 14:02:46 -07:00
parent f93a0d3c94
commit f4a04d5c3d

View File

@@ -336,8 +336,9 @@ on zygote-start
chmod 2770 /data/system/perfd
# Setup sensors-related directories and permissions
mkdir /persist/sensors 0775
chown root system /persist/sensors
chmod 775 /persist/sensors
write /persist/sensors/sensors_settings 1
chown root system /persist/sensors/sensors_settings
chmod 664 /persist/sensors/sensors_settings
chown root system /persist/sensors/sns.reg