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