Revert "Clean up init script"

This reverts commit 8d0e6dca79.

Change-Id: I5777501d14ed2d551dba5bb314cdfcd5476b785d
reason: restore the folder if /persist/sensors is missing
Test: flash on a phone without /persist/sensors folder
Test: reboot and verify sensor regsitry is created
Test: and sensors are available to sensor service
Bug: 64065874
This commit is contained in:
Max Shi
2017-07-28 20:51:48 -07:00
parent f96acf2009
commit efce5fb8a0

View File

@@ -31,6 +31,14 @@ on init && property:ro.boot.slot=*
on init && property:ro.boot.revision=*
setprop ro.boot.hardware.revision ${ro.boot.revision}
on post-fs-data
# QC Sensors
mkdir /persist/sensors
chmod 775 /persist/sensors
write /persist/sensors/sensors_settings 1
chmod 664 /persist/sensors/sensors_settings
chown system root /persist/sensors/sensors_settings
on property:init.svc.fps_hal=running && property:ro.boot.revision=rev_0
stop fps_hal