mirror of
https://github.com/Evolution-X-Devices/device_google_taimen
synced 2026-02-01 03:27:12 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user